@wular/pnext 0.1.5 → 0.1.7
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/bin/pnext +9 -2
- package/dist/server/_chunks/aliases-j47a10ce.js +44 -0
- package/dist/server/_chunks/analyze-arswqe6s.js +445 -0
- package/dist/server/_chunks/boot-af0mv3dy.js +36 -0
- package/dist/server/_chunks/build-spy3dxp4.js +84 -0
- package/dist/server/_chunks/build-t9h0hec3.js +3550 -0
- package/dist/server/_chunks/build-tier-m7yvqz61.js +2472 -0
- package/dist/server/_chunks/compile-53j02j27.js +22 -0
- package/dist/server/_chunks/config-1yzwexq6.js +27 -0
- package/dist/server/_chunks/config-n2z7yxps.js +22 -0
- package/dist/server/_chunks/create-meec9hs6.js +134 -0
- package/dist/server/_chunks/dev-fjmqg6en.js +220 -0
- package/dist/server/_chunks/esbuild-yyktfrtt.js +15 -0
- package/dist/server/_chunks/generate-n9sh6hzt.js +21 -0
- package/dist/server/_chunks/index-0374j2b9.js +66 -0
- package/dist/server/_chunks/index-06nyqntx.js +213 -0
- package/dist/server/_chunks/index-1011cscr.js +5263 -0
- package/dist/server/_chunks/index-11sfk4hb.js +170 -0
- package/dist/server/_chunks/index-20ppawv7.js +297 -0
- package/dist/server/_chunks/index-2dv4y4wd.js +1065 -0
- package/dist/server/_chunks/index-2vz0wzdn.js +59 -0
- package/dist/server/_chunks/index-2wfv4kvx.js +182 -0
- package/dist/server/_chunks/index-357na4a8.js +109 -0
- package/dist/server/_chunks/index-3b3at80h.js +109 -0
- package/dist/server/_chunks/index-3tf1xjsp.js +6166 -0
- package/dist/server/_chunks/index-3xbr4eyv.js +105 -0
- package/dist/server/_chunks/index-4399bvd2.js +18 -0
- package/dist/server/_chunks/index-4hgjrqh7.js +851 -0
- package/dist/server/_chunks/index-4q2gbfwk.js +2530 -0
- package/dist/server/_chunks/index-4t92hdxd.js +172 -0
- package/dist/server/_chunks/index-4zzebszd.js +10 -0
- package/dist/server/_chunks/index-5gyr4emz.js +107 -0
- package/dist/server/_chunks/index-5hr4062s.js +70 -0
- package/dist/server/_chunks/index-68m3mwbd.js +84 -0
- package/dist/server/_chunks/index-6b009mt0.js +56 -0
- package/dist/server/_chunks/index-6e4fqv30.js +588 -0
- package/dist/server/_chunks/index-6gex3pfa.js +15 -0
- package/dist/server/_chunks/index-6kp9r0d9.js +11 -0
- package/dist/server/_chunks/index-6q7zvrap.js +134 -0
- package/dist/server/_chunks/index-73z4esab.js +38 -0
- package/dist/server/_chunks/index-79ngvam8.js +60 -0
- package/dist/server/_chunks/index-7wc9n8be.js +25 -0
- package/dist/server/_chunks/index-8k7pfejn.js +1599 -0
- package/dist/server/_chunks/index-8kcxdfya.js +206 -0
- package/dist/server/_chunks/index-91x12ykq.js +274 -0
- package/dist/server/_chunks/index-9ch50vtq.js +18 -0
- package/dist/server/_chunks/index-9hx2641q.js +28 -0
- package/dist/server/_chunks/index-9n2914ww.js +535 -0
- package/dist/server/_chunks/index-9ych9ma8.js +207 -0
- package/dist/server/_chunks/index-b6wtkdp4.js +24 -0
- package/dist/server/_chunks/index-bcws5eh2.js +35 -0
- package/dist/server/_chunks/index-c0g2wf3z.js +92 -0
- package/dist/server/_chunks/index-cf4rvxv6.js +95 -0
- package/dist/server/_chunks/index-cjgqs13g.js +65 -0
- package/dist/server/_chunks/index-ckkdpht5.js +41 -0
- package/dist/server/_chunks/index-cyfednwb.js +87 -0
- package/dist/server/_chunks/index-danncfhy.js +311 -0
- package/dist/server/_chunks/index-dg0f05zs.js +199 -0
- package/dist/server/_chunks/index-e3a6yx84.js +18 -0
- package/dist/server/_chunks/index-e88tyv35.js +45 -0
- package/dist/server/_chunks/index-eajaspjk.js +1253 -0
- package/dist/server/_chunks/index-eeaanp2e.js +483 -0
- package/dist/server/_chunks/index-egykcqg3.js +101 -0
- package/dist/server/_chunks/index-en7n9f7m.js +22 -0
- package/dist/server/_chunks/index-ezgj0tr1.js +88 -0
- package/dist/server/_chunks/index-fkp000p1.js +590 -0
- package/dist/server/_chunks/index-fn1chkkd.js +214 -0
- package/dist/server/_chunks/index-fp8r0sqs.js +64 -0
- package/dist/server/_chunks/index-ggk2j965.js +9432 -0
- package/dist/server/_chunks/index-grta8ap3.js +238 -0
- package/dist/server/_chunks/index-h2a70tg4.js +7 -0
- package/dist/server/_chunks/index-h4xy648y.js +51 -0
- package/dist/server/_chunks/index-hkdfj58q.js +92 -0
- package/dist/server/_chunks/index-j2zrcp1k.js +66 -0
- package/dist/server/_chunks/index-jcsjq3d1.js +20 -0
- package/dist/server/_chunks/index-jepjvcrf.js +198 -0
- package/dist/server/_chunks/index-jks0x0a1.js +14 -0
- package/dist/server/_chunks/index-jx7bqvw1.js +57 -0
- package/dist/server/_chunks/index-k1g3epw0.js +1299 -0
- package/dist/server/_chunks/index-knp0s912.js +7 -0
- package/dist/server/_chunks/index-kq8kpzye.js +472 -0
- package/dist/server/_chunks/index-kqyy1d4f.js +50 -0
- package/dist/server/_chunks/index-kresp2n8.js +445 -0
- package/dist/server/_chunks/index-ms9v9tnx.js +31 -0
- package/dist/server/_chunks/index-n4hxpng2.js +11 -0
- package/dist/server/_chunks/index-ncnes8c6.js +17 -0
- package/dist/server/_chunks/index-nqh3xhdc.js +57 -0
- package/dist/server/_chunks/index-nyrba2kr.js +4130 -0
- package/dist/server/_chunks/index-p77b4kcx.js +296 -0
- package/dist/server/_chunks/index-pym1cezq.js +39 -0
- package/dist/server/_chunks/index-q738kkhj.js +100 -0
- package/dist/server/_chunks/index-qjj6gddn.js +54 -0
- package/dist/server/_chunks/index-qm6kmhqs.js +110 -0
- package/dist/server/_chunks/index-qn4z5s3c.js +819 -0
- package/dist/server/_chunks/index-qpwsgt3a.js +158 -0
- package/dist/server/_chunks/index-r97ptz1q.js +97 -0
- package/dist/server/_chunks/index-ras0sdab.js +26 -0
- package/dist/server/_chunks/index-rcs322t1.js +19 -0
- package/dist/server/_chunks/index-rn8dyr1f.js +126 -0
- package/dist/server/_chunks/index-rt9qq1va.js +4 -0
- package/dist/server/_chunks/index-rthrsed5.js +356 -0
- package/dist/server/_chunks/index-sctcgyvv.js +185 -0
- package/dist/server/_chunks/index-sjpckxqn.js +213 -0
- package/dist/server/_chunks/index-sq3kvz3g.js +200 -0
- package/dist/server/_chunks/index-stbk3jhn.js +31 -0
- package/dist/server/_chunks/index-sv8m6789.js +266 -0
- package/dist/server/_chunks/index-tgcakdxc.js +125 -0
- package/dist/server/_chunks/index-tgsfjmep.js +74 -0
- package/dist/server/_chunks/index-tq0pc7eg.js +154 -0
- package/dist/server/_chunks/index-tq1f96v7.js +51 -0
- package/dist/server/_chunks/index-tqn2qnnn.js +241 -0
- package/dist/server/_chunks/index-tvqkq6e6.js +128 -0
- package/dist/server/_chunks/index-v1ags1na.js +132 -0
- package/dist/server/_chunks/index-vvmmknm1.js +1431 -0
- package/dist/server/_chunks/index-vvq7rqtn.js +329 -0
- package/dist/server/_chunks/index-vz0km5qk.js +33 -0
- package/dist/server/_chunks/index-w6h8m6vp.js +138 -0
- package/dist/server/_chunks/index-web361b8.js +138 -0
- package/dist/server/_chunks/index-wpfhfbs4.js +194 -0
- package/dist/server/_chunks/index-x0y005nh.js +283 -0
- package/dist/server/_chunks/index-x3yn4ywm.js +22 -0
- package/dist/server/_chunks/index-x93hv0sc.js +271 -0
- package/dist/server/_chunks/index-xvj80c3a.js +30 -0
- package/dist/server/_chunks/index-xywjg2vc.js +100 -0
- package/dist/server/_chunks/index-y2jr2n72.js +152 -0
- package/dist/server/_chunks/index-y36a0ybw.js +57 -0
- package/dist/server/_chunks/index-ye9hmsvf.js +47 -0
- package/dist/server/_chunks/index-yhxkxghe.js +56 -0
- package/dist/server/_chunks/index-ym67zqxp.js +130 -0
- package/dist/server/_chunks/index-ytjvpbm2.js +736 -0
- package/dist/server/_chunks/index-yz54pxrh.js +960 -0
- package/dist/server/_chunks/index-z4z9zv3b.js +733 -0
- package/dist/server/_chunks/index-z84ab1w0.js +1270 -0
- package/dist/server/_chunks/index-z88qv16t.js +11 -0
- package/dist/server/_chunks/index-zqpqyg8p.js +666 -0
- package/dist/server/_chunks/loader-7yw0j98z.js +78 -0
- package/dist/server/_chunks/modules-jn8bmbn8.js +74 -0
- package/dist/server/_chunks/pipeline-yy9jhydf.js +832 -0
- package/dist/server/_chunks/production-jar9ztm3.js +44 -0
- package/dist/server/_chunks/proxy-config-j84dgksn.js +21 -0
- package/dist/server/_chunks/proxy-w1d0wmsn.js +33 -0
- package/dist/server/_chunks/router-k1reahfn.js +498 -0
- package/dist/server/_chunks/routes-2s277fc6.js +64 -0
- package/dist/server/_chunks/run-pvd8bs1t.js +696 -0
- package/dist/server/_chunks/server-mt4a994c.js +1835 -0
- package/dist/server/_chunks/tsconfig-defaults-1nb3308g.js +20 -0
- package/dist/server/_chunks/typegen-0qr0459b.js +35 -0
- package/dist/server/api/client-cache.js +14 -0
- package/dist/server/cli/index.js +378 -0
- package/dist/server/cli/start.js +137 -0
- package/dist/server/client/reference.js +16 -0
- package/dist/server/compat/next/cache.js +56 -0
- package/dist/server/compat/next/canonical-url.js +13 -0
- package/dist/server/compat/next/client-cache.js +57 -0
- package/dist/server/compat/next/client-navigation.js +232 -0
- package/dist/server/compat/next/client-only.js +1 -0
- package/dist/server/compat/next/client-script.js +178 -0
- package/dist/server/compat/next/client-server.js +34 -0
- package/dist/server/compat/next/config-headers.js +32 -0
- package/dist/server/compat/next/config-loader.js +25 -0
- package/dist/server/compat/next/config.js +10 -0
- package/dist/server/compat/next/constants.js +18 -0
- package/dist/server/compat/next/custom-server.js +10 -0
- package/dist/server/compat/next/dist/client/components/app-router-headers.js +48 -0
- package/dist/server/compat/next/dist/server/web/spec-extension/revalidate.js +27 -0
- package/dist/server/compat/next/dist/server/web/spec-extension/unstable-cache.js +25 -0
- package/dist/server/compat/next/dist/server/web/spec-extension/unstable-no-store.js +25 -0
- package/dist/server/compat/next/dynamic.js +32 -0
- package/dist/server/compat/next/error.js +112 -0
- package/dist/server/compat/next/font/cache.js +14 -0
- package/dist/server/compat/next/font/google.js +3 -0
- package/dist/server/compat/next/font/index.js +1 -0
- package/dist/server/compat/next/font/local.js +22 -0
- package/dist/server/compat/next/font/runtime-client.js +33 -0
- package/dist/server/compat/next/font/runtime.js +41 -0
- package/dist/server/compat/next/font/shared.js +22 -0
- package/dist/server/compat/next/form.js +129 -0
- package/dist/server/compat/next/head.js +10 -0
- package/dist/server/compat/next/headers.js +30 -0
- package/dist/server/compat/next/image/client.js +11 -0
- package/dist/server/compat/next/image/config.js +18 -0
- package/dist/server/compat/next/image/optimizer.js +25 -0
- package/dist/server/compat/next/image/patterns.js +12 -0
- package/dist/server/compat/next/image/props.js +16 -0
- package/dist/server/compat/next/image/shared.js +86 -0
- package/dist/server/compat/next/image/static-metadata.js +32 -0
- package/dist/server/compat/next/image/validate.js +8 -0
- package/dist/server/compat/next/image.js +59 -0
- package/dist/server/compat/next/index.js +1 -0
- package/dist/server/compat/next/legacy-image.js +78 -0
- package/dist/server/compat/next/legacy-request-apis.js +24 -0
- package/dist/server/compat/next/link-transform.js +14 -0
- package/dist/server/compat/next/link.js +14 -0
- package/dist/server/compat/next/navigation.js +190 -0
- package/dist/server/compat/next/offline.js +45 -0
- package/dist/server/compat/next/og.js +8 -0
- package/dist/server/compat/next/preferred-region.js +8 -0
- package/dist/server/compat/next/redirects.js +30 -0
- package/dist/server/compat/next/resource-hints.js +30 -0
- package/dist/server/compat/next/rewrites.js +41 -0
- package/dist/server/compat/next/root-params.js +121 -0
- package/dist/server/compat/next/route-state.js +23 -0
- package/dist/server/compat/next/router.js +103 -0
- package/dist/server/compat/next/script.js +37 -0
- package/dist/server/compat/next/server-only.js +1 -0
- package/dist/server/compat/next/server.js +131 -0
- package/dist/server/compat/next/svgr.js +14 -0
- package/dist/server/compat/next/telemetry.js +10 -0
- package/dist/server/compat/next/usage.js +13 -0
- package/dist/server/compat/next/user-agent.js +12 -0
- package/dist/server/compat/next/web-vitals.js +35 -0
- package/dist/server/compat/react/action-state.js +11 -0
- package/dist/server/compat/react/client-lite.js +83 -0
- package/dist/server/compat/react/client.js +131 -0
- package/dist/server/compat/react/compiler-runtime.js +42 -0
- package/dist/server/compat/react/dom-client.js +106 -0
- package/dist/server/compat/react/dom-react-server.js +37 -0
- package/dist/server/compat/react/dom-server.js +40 -0
- package/dist/server/compat/react/dom.js +52 -0
- package/dist/server/compat/react/hooks-extra.js +12 -0
- package/dist/server/compat/react/internals.js +14 -0
- package/dist/server/compat/react/parity.js +11 -0
- package/dist/server/compat/react/preact.js +113 -0
- package/dist/server/compat/react/react-server.js +133 -0
- package/dist/server/compat/react/router-shim.js +8 -0
- package/dist/server/compat/react/server-component-use.js +14 -0
- package/dist/server/compat/react/server-inserted-html.js +14 -0
- package/dist/server/compat/react/server.js +194 -0
- package/dist/server/compat/react/style-values.js +10 -0
- package/dist/server/compat/react/use.js +10 -0
- package/dist/server/compat/react/view-transition.js +12 -0
- package/dist/server/generation.json +1 -0
- package/package.json +4 -1
- package/src/api/dynamic.tsx +2 -0
- package/src/api/server.ts +24 -6
- package/src/cli/adapters/vercel-warm.ts +315 -61
- package/src/cli/adapters/vercel.ts +348 -71
- package/src/cli/build.ts +58 -33
- package/src/cli/index.ts +23 -10
- package/src/cli/serve/entry.ts +21 -159
- package/src/cli/serve/immutable.ts +31 -0
- package/src/cli/serve/pipeline.ts +82 -84
- package/src/cli/start.ts +3 -1
- package/src/client/chunk-fold.ts +19 -6
- package/src/client/react-tier.ts +3 -2
- package/src/client/reference-stub.ts +21 -2
- package/src/compat/actions/client-plugin.ts +4 -2
- package/src/compat/actions/config.ts +6 -5
- package/src/compat/actions/extensions.ts +2 -3
- package/src/compat/aliases.ts +8 -1
- package/src/compat/bundler/config.ts +88 -0
- package/src/compat/bundler/optimize-package-imports.ts +86 -26
- package/src/compat/bundler/relay-transform.ts +15 -3
- package/src/compat/cache-control.ts +16 -8
- package/src/compat/css/modules.ts +18 -5
- package/src/compat/lifecycle/error-funnel.ts +1 -1
- package/src/compat/lifecycle/instrumentation.ts +117 -24
- package/src/compat/lifecycle/testmode.ts +3 -2
- package/src/compat/next/config-loader.ts +137 -13
- package/src/compat/next/font/runtime.ts +22 -2
- package/src/compat/next/og.ts +3 -3
- package/src/compat/next/usage.ts +3 -2
- package/src/compat/pages/api.ts +83 -14
- package/src/compat/pages/router.ts +30 -14
- package/src/compat/register/bundler.ts +3 -1
- package/src/compat/register/middleware.ts +1 -1
- package/src/compat/register/otel.ts +5 -9
- package/src/compat/register/render.ts +3 -1
- package/src/compat/register/use-cache.ts +3 -1
- package/src/compat/release.ts +46 -0
- package/src/compat/segment/serve.ts +1 -1
- package/src/compat/validation/validate.ts +10 -7
- package/src/config.ts +51 -7
- package/src/css/assets.ts +213 -0
- package/src/css/build.ts +174 -238
- package/src/dev/server.ts +27 -8
- package/src/extensions.ts +4 -0
- package/src/render/hooks.ts +13 -0
- package/src/render/renderer.ts +52 -32
- package/src/request/context.ts +9 -0
- package/src/resolve/dynamic.ts +3 -1
- package/src/resolve/imports.ts +12 -52
- package/src/resolve/package-json.ts +56 -0
- package/src/resolve/scan-facts.ts +65 -0
- package/src/routing/href.ts +10 -3
- package/src/routing/match.ts +287 -0
- package/src/routing/metadata-files.ts +19 -5
- package/src/routing/proxy-config.ts +137 -0
- package/src/routing/proxy.ts +35 -134
- package/src/routing/routes.ts +22 -281
- package/src/runtime/fingerprint.ts +23 -8
- package/src/runtime/load.ts +170 -0
- package/src/runtime/loader.ts +215 -43
- package/src/runtime/module-cache.ts +13 -0
- package/src/runtime/modules.ts +370 -81
- package/src/runtime/prebundle.ts +81 -0
- package/src/runtime/production.ts +391 -0
- package/src/runtime/release-graph.ts +334 -0
- package/src/runtime/vendor-build.ts +724 -13
- package/src/runtime/vendor.ts +16 -3
- package/src/types.ts +2 -0
- package/src/utils/fs.ts +89 -3
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
accumulateRootVaryParam,
|
|
4
|
+
generateStaticParamsScope
|
|
5
|
+
} from "../../_chunks/index-x0y005nh.js";
|
|
6
|
+
import {
|
|
7
|
+
insideUseCacheProducer,
|
|
8
|
+
recordUseCacheRootParamRead
|
|
9
|
+
} from "../../_chunks/index-eajaspjk.js";
|
|
10
|
+
import {
|
|
11
|
+
currentRenderCacheMeta,
|
|
12
|
+
insideUnstableCacheProducer
|
|
13
|
+
} from "../../_chunks/index-9n2914ww.js";
|
|
14
|
+
import"../../_chunks/index-bcws5eh2.js";
|
|
15
|
+
import"../../_chunks/index-6e4fqv30.js";
|
|
16
|
+
import"../../_chunks/index-cjgqs13g.js";
|
|
17
|
+
import"../../_chunks/index-jks0x0a1.js";
|
|
18
|
+
import"../../_chunks/index-6b009mt0.js";
|
|
19
|
+
import"../../_chunks/index-4zzebszd.js";
|
|
20
|
+
import"../../_chunks/index-sq3kvz3g.js";
|
|
21
|
+
import"../../_chunks/index-ckkdpht5.js";
|
|
22
|
+
import"../../_chunks/index-jcsjq3d1.js";
|
|
23
|
+
import {
|
|
24
|
+
currentParams,
|
|
25
|
+
currentRequest,
|
|
26
|
+
getWorkUnit
|
|
27
|
+
} from "../../_chunks/index-grta8ap3.js";
|
|
28
|
+
import {
|
|
29
|
+
cacheComponents,
|
|
30
|
+
hangingPromise,
|
|
31
|
+
isPrerendering,
|
|
32
|
+
isRuntimePrefetchPrerender
|
|
33
|
+
} from "../../_chunks/index-kresp2n8.js";
|
|
34
|
+
import"../../_chunks/index-e3a6yx84.js";
|
|
35
|
+
import"../../_chunks/index-7wc9n8be.js";
|
|
36
|
+
import"../../_chunks/index-qjj6gddn.js";
|
|
37
|
+
import"../../_chunks/index-rt9qq1va.js";
|
|
38
|
+
|
|
39
|
+
// src/compat/next/root-params.ts
|
|
40
|
+
function currentRoutePattern() {
|
|
41
|
+
let pathname;
|
|
42
|
+
try {
|
|
43
|
+
pathname = new URL(currentRequest()?.url ?? "").pathname;
|
|
44
|
+
} catch {
|
|
45
|
+
return "";
|
|
46
|
+
}
|
|
47
|
+
const paramNamesByValue = new Map;
|
|
48
|
+
for (const [name, value] of Object.entries(currentParams())) {
|
|
49
|
+
if (typeof value === "string")
|
|
50
|
+
paramNamesByValue.set(value, name);
|
|
51
|
+
}
|
|
52
|
+
return pathname.split("/").map((segment) => {
|
|
53
|
+
try {
|
|
54
|
+
const name = paramNamesByValue.get(decodeURIComponent(segment));
|
|
55
|
+
return name ? `[${name}]` : segment;
|
|
56
|
+
} catch {
|
|
57
|
+
return segment;
|
|
58
|
+
}
|
|
59
|
+
}).join("/");
|
|
60
|
+
}
|
|
61
|
+
function rootParamContextError(name) {
|
|
62
|
+
const unit = getWorkUnit();
|
|
63
|
+
const specifier = ["next", "root-params"].join("/");
|
|
64
|
+
const call = `\`import('${specifier}').${name}()\``;
|
|
65
|
+
const route = currentRoutePattern();
|
|
66
|
+
const inUseCache = insideUseCacheProducer();
|
|
67
|
+
const inUnstableCache = insideUnstableCacheProducer();
|
|
68
|
+
if (inUseCache && inUnstableCache) {
|
|
69
|
+
return Object.assign(new Error(`Route ${route} used ${call} inside \`"use cache"\` nested within \`unstable_cache\`. Root params are not available in this context.`), { digest: "E1140" });
|
|
70
|
+
}
|
|
71
|
+
if (inUseCache) {
|
|
72
|
+
recordUseCacheRootParamRead(name);
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
if (inUnstableCache) {
|
|
76
|
+
return Object.assign(new Error(`Route ${route} used ${call} inside \`unstable_cache\`. This is not supported. Use \`"use cache"\` instead.`), { digest: "E1141" });
|
|
77
|
+
}
|
|
78
|
+
if (!unit)
|
|
79
|
+
return;
|
|
80
|
+
if (unit.phase === "action") {
|
|
81
|
+
return new Error(`${call} was used inside a Server Action. This is not supported. ` + `Functions from '${specifier}' can only be called in the context of a route.`);
|
|
82
|
+
}
|
|
83
|
+
if (unit.phase !== "after" && unit.routeKind === "route-handler") {
|
|
84
|
+
return new Error(`Route ${route} used ${call} inside a Route Handler. ` + `Support for this API in Route Handlers is planned for a future version of Next.js.`);
|
|
85
|
+
}
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
function rootParam(name) {
|
|
89
|
+
const gsp = generateStaticParamsScope();
|
|
90
|
+
if (gsp) {
|
|
91
|
+
if (name in gsp.provided)
|
|
92
|
+
return Promise.resolve(gsp.provided[name]);
|
|
93
|
+
const route = (currentRenderCacheMeta()?.route ?? "").replace(/:\.\.\.([^/*]+)\*?/g, "[...$1]").replace(/:([^/*]+)\*/g, "[...$1]").replace(/:([^/*]+)/g, "[$1]");
|
|
94
|
+
return Promise.reject(new Error(`Route ${route} used \`import('${["next", "root-params"].join("/")}').${name}()\` inside \`generateStaticParams\`, ` + `but the \`${name}\` parameter was not provided by a parent \`generateStaticParams\`. ` + `In \`generateStaticParams\`, root params are only available for segments nested below the segment that provides them.`));
|
|
95
|
+
}
|
|
96
|
+
accumulateRootVaryParam(name);
|
|
97
|
+
const error = rootParamContextError(name);
|
|
98
|
+
if (error)
|
|
99
|
+
return Promise.reject(error);
|
|
100
|
+
if (!insideUseCacheProducer() && cacheComponents() && isPrerendering() && !isRuntimePrefetchPrerender()) {
|
|
101
|
+
return hangingPromise(`rootParam(${name})`);
|
|
102
|
+
}
|
|
103
|
+
const value = currentParams()[name];
|
|
104
|
+
return Promise.resolve(Array.isArray(value) && value.length === 0 ? undefined : value);
|
|
105
|
+
}
|
|
106
|
+
var rootParamsModule = new Proxy({}, {
|
|
107
|
+
get(_target, prop) {
|
|
108
|
+
if (typeof prop !== "string")
|
|
109
|
+
return;
|
|
110
|
+
if (prop === "__esModule")
|
|
111
|
+
return true;
|
|
112
|
+
if (prop === "default")
|
|
113
|
+
return;
|
|
114
|
+
return () => rootParam(prop);
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
var root_params_default = rootParamsModule;
|
|
118
|
+
export {
|
|
119
|
+
root_params_default as default,
|
|
120
|
+
rootParam
|
|
121
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
nextClientRouteState,
|
|
4
|
+
staticSiblingNames,
|
|
5
|
+
staticSiblingNamesBySegment
|
|
6
|
+
} from "../../_chunks/index-cf4rvxv6.js";
|
|
7
|
+
import"../../_chunks/index-z88qv16t.js";
|
|
8
|
+
import"../../_chunks/index-6e4fqv30.js";
|
|
9
|
+
import"../../_chunks/index-cjgqs13g.js";
|
|
10
|
+
import"../../_chunks/index-jks0x0a1.js";
|
|
11
|
+
import"../../_chunks/index-6b009mt0.js";
|
|
12
|
+
import"../../_chunks/index-4zzebszd.js";
|
|
13
|
+
import"../../_chunks/index-sq3kvz3g.js";
|
|
14
|
+
import"../../_chunks/index-ckkdpht5.js";
|
|
15
|
+
import"../../_chunks/index-kresp2n8.js";
|
|
16
|
+
import"../../_chunks/index-e3a6yx84.js";
|
|
17
|
+
import"../../_chunks/index-7wc9n8be.js";
|
|
18
|
+
import"../../_chunks/index-rt9qq1va.js";
|
|
19
|
+
export {
|
|
20
|
+
nextClientRouteState,
|
|
21
|
+
staticSiblingNames,
|
|
22
|
+
staticSiblingNamesBySegment
|
|
23
|
+
};
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import"../../_chunks/index-rt9qq1va.js";
|
|
3
|
+
|
|
4
|
+
// src/compat/next/router.ts
|
|
5
|
+
import { useEffect, useState } from "preact/hooks";
|
|
6
|
+
import { blockJavascriptUrl } from "../../../../src/client/router/index.ts";
|
|
7
|
+
var noop = () => {
|
|
8
|
+
return;
|
|
9
|
+
};
|
|
10
|
+
var routerEvents = {
|
|
11
|
+
on: noop,
|
|
12
|
+
off: noop,
|
|
13
|
+
emit: noop
|
|
14
|
+
};
|
|
15
|
+
function pagesRouterState(browser) {
|
|
16
|
+
if (!browser) {
|
|
17
|
+
const storage = globalThis[Symbol.for("pnext.requestStorage")];
|
|
18
|
+
return storage?.getStore?.()?.[Symbol.for("pnext.pagesRouterState")];
|
|
19
|
+
}
|
|
20
|
+
const node = document.getElementById("__PNEXT_PAGES_DATA__");
|
|
21
|
+
if (!node?.textContent)
|
|
22
|
+
return;
|
|
23
|
+
try {
|
|
24
|
+
return JSON.parse(node.textContent);
|
|
25
|
+
} catch {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
function browserQuery(url) {
|
|
30
|
+
const query = {};
|
|
31
|
+
for (const [key, value] of url.searchParams) {
|
|
32
|
+
if (key !== "_rsc")
|
|
33
|
+
query[key] = value;
|
|
34
|
+
}
|
|
35
|
+
return query;
|
|
36
|
+
}
|
|
37
|
+
function currentRouter(ready) {
|
|
38
|
+
const browser = typeof window !== "undefined";
|
|
39
|
+
const url = browser ? new URL(window.location.href) : undefined;
|
|
40
|
+
const state = pagesRouterState(browser);
|
|
41
|
+
const pathname = state?.pathname ?? url?.pathname ?? "/";
|
|
42
|
+
return {
|
|
43
|
+
pathname,
|
|
44
|
+
route: pathname,
|
|
45
|
+
query: url ? { ...state?.query ?? {}, ...browserQuery(url) } : state?.query ?? {},
|
|
46
|
+
asPath: url ? `${url.pathname}${url.search}` : state?.asPath ?? "/",
|
|
47
|
+
basePath: "",
|
|
48
|
+
isReady: browser && ready,
|
|
49
|
+
isFallback: false,
|
|
50
|
+
isPreview: false,
|
|
51
|
+
events: routerEvents,
|
|
52
|
+
push(target) {
|
|
53
|
+
if (blockJavascriptUrl(target))
|
|
54
|
+
return Promise.resolve(false);
|
|
55
|
+
if (browser)
|
|
56
|
+
window.location.href = target;
|
|
57
|
+
return Promise.resolve(true);
|
|
58
|
+
},
|
|
59
|
+
replace(target) {
|
|
60
|
+
if (blockJavascriptUrl(target))
|
|
61
|
+
return Promise.resolve(false);
|
|
62
|
+
if (browser)
|
|
63
|
+
window.location.replace(target);
|
|
64
|
+
return Promise.resolve(true);
|
|
65
|
+
},
|
|
66
|
+
prefetch(target) {
|
|
67
|
+
blockJavascriptUrl(target);
|
|
68
|
+
return Promise.resolve();
|
|
69
|
+
},
|
|
70
|
+
back() {
|
|
71
|
+
if (browser)
|
|
72
|
+
window.history.back();
|
|
73
|
+
},
|
|
74
|
+
forward() {
|
|
75
|
+
if (browser)
|
|
76
|
+
window.history.forward();
|
|
77
|
+
},
|
|
78
|
+
reload() {
|
|
79
|
+
if (browser)
|
|
80
|
+
window.location.reload();
|
|
81
|
+
}
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
var pagesRouterReady = false;
|
|
85
|
+
function useRouter() {
|
|
86
|
+
const [ready, setReady] = useState(pagesRouterReady);
|
|
87
|
+
useEffect(() => {
|
|
88
|
+
pagesRouterReady = true;
|
|
89
|
+
setReady(true);
|
|
90
|
+
}, []);
|
|
91
|
+
return currentRouter(ready);
|
|
92
|
+
}
|
|
93
|
+
var Router = { events: routerEvents };
|
|
94
|
+
var router_default = Router;
|
|
95
|
+
function withRouter(Component) {
|
|
96
|
+
return (props) => Component({ ...props, router: currentRouter(pagesRouterReady) });
|
|
97
|
+
}
|
|
98
|
+
export {
|
|
99
|
+
Router,
|
|
100
|
+
router_default as default,
|
|
101
|
+
useRouter,
|
|
102
|
+
withRouter
|
|
103
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
PARTYTOWN_LIB_PATH,
|
|
4
|
+
Script,
|
|
5
|
+
clearDeferredScripts,
|
|
6
|
+
clearHeadScripts,
|
|
7
|
+
partytownHeadScripts,
|
|
8
|
+
renderHeadScripts,
|
|
9
|
+
renderPartytownHeadScripts,
|
|
10
|
+
takeDeferredScripts,
|
|
11
|
+
takeHeadScripts
|
|
12
|
+
} from "../../_chunks/index-sjpckxqn.js";
|
|
13
|
+
import"../../_chunks/index-ye9hmsvf.js";
|
|
14
|
+
import"../../_chunks/index-6e4fqv30.js";
|
|
15
|
+
import"../../_chunks/index-cjgqs13g.js";
|
|
16
|
+
import"../../_chunks/index-jks0x0a1.js";
|
|
17
|
+
import"../../_chunks/index-6b009mt0.js";
|
|
18
|
+
import"../../_chunks/index-4zzebszd.js";
|
|
19
|
+
import"../../_chunks/index-sq3kvz3g.js";
|
|
20
|
+
import"../../_chunks/index-ckkdpht5.js";
|
|
21
|
+
import"../../_chunks/index-yhxkxghe.js";
|
|
22
|
+
import"../../_chunks/index-kresp2n8.js";
|
|
23
|
+
import"../../_chunks/index-e3a6yx84.js";
|
|
24
|
+
import"../../_chunks/index-7wc9n8be.js";
|
|
25
|
+
import"../../_chunks/index-rt9qq1va.js";
|
|
26
|
+
export {
|
|
27
|
+
PARTYTOWN_LIB_PATH,
|
|
28
|
+
Script,
|
|
29
|
+
clearDeferredScripts,
|
|
30
|
+
clearHeadScripts,
|
|
31
|
+
Script as default,
|
|
32
|
+
partytownHeadScripts,
|
|
33
|
+
renderHeadScripts,
|
|
34
|
+
renderPartytownHeadScripts,
|
|
35
|
+
takeDeferredScripts,
|
|
36
|
+
takeHeadScripts
|
|
37
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// @bun
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
URLPattern,
|
|
4
|
+
userAgent,
|
|
5
|
+
userAgentFromString
|
|
6
|
+
} from "../../_chunks/index-r97ptz1q.js";
|
|
7
|
+
import {
|
|
8
|
+
io
|
|
9
|
+
} from "../../_chunks/index-9hx2641q.js";
|
|
10
|
+
import {
|
|
11
|
+
assertDynamicErrorRequestApi
|
|
12
|
+
} from "../../_chunks/index-sctcgyvv.js";
|
|
13
|
+
import {
|
|
14
|
+
afterRequestApisAllowed,
|
|
15
|
+
assertRequestApiAllowedInAfter,
|
|
16
|
+
recordRequestPath,
|
|
17
|
+
runWithAfterRequestApiScope
|
|
18
|
+
} from "../../_chunks/index-2vz0wzdn.js";
|
|
19
|
+
import"../../_chunks/index-0374j2b9.js";
|
|
20
|
+
import {
|
|
21
|
+
assertNoDynamicApiInsideCache,
|
|
22
|
+
currentRenderCacheMeta
|
|
23
|
+
} from "../../_chunks/index-9n2914ww.js";
|
|
24
|
+
import"../../_chunks/index-bcws5eh2.js";
|
|
25
|
+
import"../../_chunks/index-6e4fqv30.js";
|
|
26
|
+
import"../../_chunks/index-cjgqs13g.js";
|
|
27
|
+
import"../../_chunks/index-jks0x0a1.js";
|
|
28
|
+
import"../../_chunks/index-6b009mt0.js";
|
|
29
|
+
import"../../_chunks/index-4zzebszd.js";
|
|
30
|
+
import"../../_chunks/index-sq3kvz3g.js";
|
|
31
|
+
import"../../_chunks/index-ckkdpht5.js";
|
|
32
|
+
import {
|
|
33
|
+
captureRequestScope,
|
|
34
|
+
currentRequest,
|
|
35
|
+
getWorkUnit,
|
|
36
|
+
queueAfterTask,
|
|
37
|
+
requestApiPromise,
|
|
38
|
+
requireRequest,
|
|
39
|
+
setPhase
|
|
40
|
+
} from "../../_chunks/index-grta8ap3.js";
|
|
41
|
+
import"../../_chunks/index-kresp2n8.js";
|
|
42
|
+
import"../../_chunks/index-e3a6yx84.js";
|
|
43
|
+
import"../../_chunks/index-7wc9n8be.js";
|
|
44
|
+
import"../../_chunks/index-qjj6gddn.js";
|
|
45
|
+
import {
|
|
46
|
+
ImageResponse
|
|
47
|
+
} from "../../_chunks/index-dg0f05zs.js";
|
|
48
|
+
import"../../_chunks/index-rt9qq1va.js";
|
|
49
|
+
|
|
50
|
+
// src/compat/lifecycle/after.ts
|
|
51
|
+
import { captureCacheScope } from "../../../../src/request/cache.ts";
|
|
52
|
+
var requestContextSymbol = Symbol.for("@next/request-context");
|
|
53
|
+
var AFTER_PRERENDER_ERROR = Symbol.for("pnext.afterPrerenderError");
|
|
54
|
+
function platformWaitUntil() {
|
|
55
|
+
const holder = globalThis[requestContextSymbol];
|
|
56
|
+
return holder?.get?.()?.waitUntil;
|
|
57
|
+
}
|
|
58
|
+
async function runAfterTask(task) {
|
|
59
|
+
const promise = Promise.resolve().then(() => typeof task === "function" ? task() : task).then(() => {
|
|
60
|
+
return;
|
|
61
|
+
}, (error) => {
|
|
62
|
+
console.error(`An error occurred in a function passed to \`after()\`: ${error instanceof Error ? error.stack ?? `${error.name}: ${error.message}` : String(error)}`);
|
|
63
|
+
});
|
|
64
|
+
platformWaitUntil()?.(promise);
|
|
65
|
+
await promise;
|
|
66
|
+
}
|
|
67
|
+
async function settleAfterTask(task) {
|
|
68
|
+
const promise = Promise.resolve().then(() => typeof task === "function" ? task() : task);
|
|
69
|
+
platformWaitUntil()?.(promise.then(() => {
|
|
70
|
+
return;
|
|
71
|
+
}, () => {
|
|
72
|
+
return;
|
|
73
|
+
}));
|
|
74
|
+
try {
|
|
75
|
+
await promise;
|
|
76
|
+
} catch (error) {
|
|
77
|
+
if (error && typeof error === "object") {
|
|
78
|
+
error[AFTER_PRERENDER_ERROR] = true;
|
|
79
|
+
}
|
|
80
|
+
throw error;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
function runInPrerenderAfterPhase(route, requestApisAllowed, fn) {
|
|
84
|
+
setPhase("after");
|
|
85
|
+
if (route)
|
|
86
|
+
recordRequestPath(route);
|
|
87
|
+
return runWithAfterRequestApiScope(requestApisAllowed, fn);
|
|
88
|
+
}
|
|
89
|
+
function after(task) {
|
|
90
|
+
const unit = getWorkUnit();
|
|
91
|
+
const isHandlerOrAction = unit?.phase === "action" || unit?.phase === "middleware" || unit?.routeKind === "route-handler";
|
|
92
|
+
const isNestedRequestAfter = unit?.phase === "after" && Boolean(currentRequest()) && afterRequestApisAllowed();
|
|
93
|
+
const withScope = isHandlerOrAction || isNestedRequestAfter ? captureRequestScope() : captureCacheScope();
|
|
94
|
+
const meta = currentRenderCacheMeta();
|
|
95
|
+
if (meta && (meta.prerender === true || meta.blockingStaleFetches === true)) {
|
|
96
|
+
const prerenderScope = meta.handler ? captureRequestScope() : withScope;
|
|
97
|
+
const route = meta.route;
|
|
98
|
+
const requestApisAllowed2 = Boolean(meta.handler);
|
|
99
|
+
const run = meta.prerender ? () => prerenderScope(() => runInPrerenderAfterPhase(route, requestApisAllowed2, () => settleAfterTask(task))) : () => prerenderScope(() => runWithAfterRequestApiScope(requestApisAllowed2, () => runAfterTask(task)));
|
|
100
|
+
(meta.afterTasks ??= []).push(run);
|
|
101
|
+
return;
|
|
102
|
+
}
|
|
103
|
+
const requestApisAllowed = Boolean(isHandlerOrAction || isNestedRequestAfter);
|
|
104
|
+
const queued = queueAfterTask(() => withScope(() => runWithAfterRequestApiScope(requestApisAllowed, () => runAfterTask(task))));
|
|
105
|
+
if (queued)
|
|
106
|
+
return;
|
|
107
|
+
withScope(() => runWithAfterRequestApiScope(requestApisAllowed, () => runAfterTask(task)));
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
// src/compat/next/server.ts
|
|
111
|
+
import { NextRequest, NextResponse } from "../../../../src/api/server.ts";
|
|
112
|
+
function connection() {
|
|
113
|
+
assertRequestApiAllowedInAfter("connection()");
|
|
114
|
+
assertDynamicErrorRequestApi("connection()");
|
|
115
|
+
assertNoDynamicApiInsideCache("connection()");
|
|
116
|
+
return requestApiPromise("connection()", () => {
|
|
117
|
+
requireRequest("connection()");
|
|
118
|
+
return {};
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
export {
|
|
122
|
+
ImageResponse,
|
|
123
|
+
NextRequest,
|
|
124
|
+
NextResponse,
|
|
125
|
+
URLPattern,
|
|
126
|
+
after,
|
|
127
|
+
connection,
|
|
128
|
+
io,
|
|
129
|
+
userAgent,
|
|
130
|
+
userAgentFromString
|
|
131
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
isSvgAsComponentEnabled,
|
|
4
|
+
setSvgAsComponentEnabled,
|
|
5
|
+
svgComponentModule,
|
|
6
|
+
webpackReferencesSvgr
|
|
7
|
+
} from "../../_chunks/index-ckkdpht5.js";
|
|
8
|
+
import"../../_chunks/index-rt9qq1va.js";
|
|
9
|
+
export {
|
|
10
|
+
isSvgAsComponentEnabled,
|
|
11
|
+
setSvgAsComponentEnabled,
|
|
12
|
+
svgComponentModule,
|
|
13
|
+
webpackReferencesSvgr
|
|
14
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
appUsesBlurPlaceholder,
|
|
4
|
+
appUsesLegacyLink,
|
|
5
|
+
scanFirstPartySource
|
|
6
|
+
} from "../../_chunks/index-ezgj0tr1.js";
|
|
7
|
+
import"../../_chunks/index-fp8r0sqs.js";
|
|
8
|
+
import"../../_chunks/index-rt9qq1va.js";
|
|
9
|
+
export {
|
|
10
|
+
appUsesBlurPlaceholder,
|
|
11
|
+
appUsesLegacyLink,
|
|
12
|
+
scanFirstPartySource
|
|
13
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import"../../_chunks/index-rt9qq1va.js";
|
|
3
|
+
|
|
4
|
+
// src/compat/next/web-vitals.ts
|
|
5
|
+
import { useEffect, useRef } from "preact/hooks";
|
|
6
|
+
import * as webVitals from "web-vitals";
|
|
7
|
+
"use client";
|
|
8
|
+
function useReportWebVitals(reportWebVitalsFn) {
|
|
9
|
+
const reporterRef = useRef(reportWebVitalsFn);
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
reporterRef.current = reportWebVitalsFn;
|
|
12
|
+
}, [reportWebVitalsFn]);
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
const report = (metric) => {
|
|
15
|
+
reporterRef.current({
|
|
16
|
+
id: metric.id,
|
|
17
|
+
name: metric.name,
|
|
18
|
+
startTime: metric.entries[0]?.startTime ?? 0,
|
|
19
|
+
value: metric.value,
|
|
20
|
+
label: "web-vital"
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
webVitals.onTTFB(report);
|
|
24
|
+
webVitals.onFCP(report);
|
|
25
|
+
webVitals.onLCP(report);
|
|
26
|
+
webVitals.onCLS(report, { reportAllChanges: true });
|
|
27
|
+
webVitals.onINP(report, { reportAllChanges: true });
|
|
28
|
+
if (typeof webVitals.onFID === "function") {
|
|
29
|
+
webVitals.onFID(report);
|
|
30
|
+
}
|
|
31
|
+
}, []);
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
useReportWebVitals
|
|
35
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
consumeActionStateOverride,
|
|
4
|
+
useActionState
|
|
5
|
+
} from "../../_chunks/index-68m3mwbd.js";
|
|
6
|
+
import"../../_chunks/index-j2zrcp1k.js";
|
|
7
|
+
import"../../_chunks/index-rt9qq1va.js";
|
|
8
|
+
export {
|
|
9
|
+
consumeActionStateOverride,
|
|
10
|
+
useActionState
|
|
11
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import {
|
|
3
|
+
useActionState
|
|
4
|
+
} from "../../_chunks/index-68m3mwbd.js";
|
|
5
|
+
import"../../_chunks/index-w6h8m6vp.js";
|
|
6
|
+
import {
|
|
7
|
+
useOptimistic,
|
|
8
|
+
useTransition
|
|
9
|
+
} from "../../_chunks/index-j2zrcp1k.js";
|
|
10
|
+
import"../../_chunks/index-kqyy1d4f.js";
|
|
11
|
+
import"../../_chunks/index-79ngvam8.js";
|
|
12
|
+
import {
|
|
13
|
+
ViewTransition,
|
|
14
|
+
addTransitionType
|
|
15
|
+
} from "../../_chunks/index-9ch50vtq.js";
|
|
16
|
+
import"../../_chunks/index-rt9qq1va.js";
|
|
17
|
+
|
|
18
|
+
// src/compat/react/client-lite.ts
|
|
19
|
+
import {
|
|
20
|
+
Component,
|
|
21
|
+
Fragment,
|
|
22
|
+
cloneElement,
|
|
23
|
+
createContext,
|
|
24
|
+
createElement,
|
|
25
|
+
createRef,
|
|
26
|
+
isValidElement
|
|
27
|
+
} from "preact";
|
|
28
|
+
import {
|
|
29
|
+
useCallback,
|
|
30
|
+
useContext,
|
|
31
|
+
useDebugValue,
|
|
32
|
+
useEffect,
|
|
33
|
+
useId,
|
|
34
|
+
useImperativeHandle,
|
|
35
|
+
useLayoutEffect,
|
|
36
|
+
useMemo,
|
|
37
|
+
useReducer,
|
|
38
|
+
useRef,
|
|
39
|
+
useState
|
|
40
|
+
} from "preact/hooks";
|
|
41
|
+
var StrictMode = Fragment;
|
|
42
|
+
var startTransition = (callback) => callback();
|
|
43
|
+
var useDeferredValue = (value) => value;
|
|
44
|
+
var useInsertionEffect = useLayoutEffect;
|
|
45
|
+
var version = "19.0.0";
|
|
46
|
+
function cache(fn) {
|
|
47
|
+
return (...args) => fn(...args);
|
|
48
|
+
}
|
|
49
|
+
function cacheSignal() {
|
|
50
|
+
return null;
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
Component,
|
|
54
|
+
Fragment,
|
|
55
|
+
StrictMode,
|
|
56
|
+
ViewTransition,
|
|
57
|
+
addTransitionType,
|
|
58
|
+
cache,
|
|
59
|
+
cacheSignal,
|
|
60
|
+
cloneElement,
|
|
61
|
+
createContext,
|
|
62
|
+
createElement,
|
|
63
|
+
createRef,
|
|
64
|
+
isValidElement,
|
|
65
|
+
startTransition,
|
|
66
|
+
useActionState,
|
|
67
|
+
useCallback,
|
|
68
|
+
useContext,
|
|
69
|
+
useDebugValue,
|
|
70
|
+
useDeferredValue,
|
|
71
|
+
useEffect,
|
|
72
|
+
useId,
|
|
73
|
+
useImperativeHandle,
|
|
74
|
+
useInsertionEffect,
|
|
75
|
+
useLayoutEffect,
|
|
76
|
+
useMemo,
|
|
77
|
+
useOptimistic,
|
|
78
|
+
useReducer,
|
|
79
|
+
useRef,
|
|
80
|
+
useState,
|
|
81
|
+
useTransition,
|
|
82
|
+
version
|
|
83
|
+
};
|