void 1.7.0 → 1.8.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/dist/{account-cmd-BfkJ_1PC.mjs → account-cmd-CZKntRH2.mjs} +5 -5
- package/dist/action-key-ByZ6DDld.mjs +64 -0
- package/dist/{application-analysis-OV0CBJ80.mjs → application-analysis-CyTagJQM.mjs} +25 -5
- package/dist/{application-routing-QpyC5G8z.mjs → application-routing-BLrMVpqi.mjs} +1 -1
- package/dist/{auth-CZrthGxs.d.mts → auth-Bk9VGtQW.d.mts} +1 -1
- package/dist/{auth-link-CW1Zh6FM.mjs → auth-link-BOaQWMKw.mjs} +5 -5
- package/dist/{auth-router-CNBKnEZi.mjs → auth-router-D0-VcmDs.mjs} +3 -3
- package/dist/{better-auth-shared-C-0uZg8-.d.mts → better-auth-shared-CQFdtguU.d.mts} +2 -2
- package/dist/boundary-plans-CRmWH68v.d.mts +25 -0
- package/dist/{build-cmd-C9qOKW9W.mjs → build-cmd-JTsXXf2F.mjs} +4 -4
- package/dist/{cache-DVBBbWQL.mjs → cache-D0m3Z_Xf.mjs} +4 -4
- package/dist/{cancel-deploy-COavnjud.mjs → cancel-deploy-Ce6Os4fa.mjs} +3 -3
- package/dist/cli/cli.mjs +1 -1
- package/dist/cli/cloudflare-operation-process.mjs +92 -19
- package/dist/cli/env-schema-probe.d.mts +1 -1
- package/dist/cli/env-schema-probe.mjs +2 -2
- package/dist/{cli-main-DFteHrJI.mjs → cli-main-rkrJy2Ge.mjs} +32 -32
- package/dist/client-D1Vz1Zep.mjs +1 -0
- package/dist/{client-BEZmTP6p.mjs → client-SZPyj4X_.mjs} +1 -1
- package/dist/{cloudflare-auth-DGIivpTb.mjs → cloudflare-auth-7jTqy9Bx.mjs} +1 -1
- package/dist/{cloudflare-cmd-DJaxC-bc.mjs → cloudflare-cmd-ChPLQcTP.mjs} +4 -4
- package/dist/{cloudflare-connect-BjpWmglw.mjs → cloudflare-connect-Co93VYTo.mjs} +2 -2
- package/dist/{cloudflare-operations-k7wYUv56.mjs → cloudflare-operations-CXaDKYj2.mjs} +4 -4
- package/dist/{cloudflare-operations-CZkjFrzH.mjs → cloudflare-operations-DATekLwI.mjs} +1 -1
- package/dist/{cloudflare-process-BcPvlMFd.mjs → cloudflare-process-DmTxZR-N.mjs} +1 -1
- package/dist/{connect-j1F1C_rW.mjs → connect-DlvXt1JR.mjs} +6 -6
- package/dist/{create-project-CE3jOmd5.mjs → create-project-CC_7hmYJ.mjs} +4 -4
- package/dist/{create-project-DZH3aYGQ.mjs → create-project-DzY05xqC.mjs} +1 -1
- package/dist/{db-DyLzzxvM.mjs → db-FhyYGcJJ.mjs} +13 -13
- package/dist/{db-types-DdHHUVPy.mjs → db-types-sVwEpyPR.mjs} +3 -1
- package/dist/{delete-Dey6YoMA.mjs → delete-CModjyOC.mjs} +4 -4
- package/dist/{deploy-Ccw2D2lw.mjs → deploy-Cz9TEzZy.mjs} +34 -24
- package/dist/deploy-DMieisRu.mjs +2 -0
- package/dist/{deploy-managed-static-BBVtpuGv.mjs → deploy-managed-static-DlxxXkAM.mjs} +10 -10
- package/dist/{deploy-transport-Dt0IvSVW.mjs → deploy-transport-DUvm6-CR.mjs} +2 -2
- package/dist/deploy.mjs +5 -5
- package/dist/{dispatch-pYaww76u.mjs → dispatch-CCiaAnSK.mjs} +4 -4
- package/dist/{dist-DeTdhbZc.mjs → dist-Cp4b1_T9.mjs} +1 -1
- package/dist/{dist-BQdgCVQF.mjs → dist-STQXl8ck.mjs} +86 -138
- package/dist/{domain-Dh3mG8Vs.mjs → domain-DvdZPA50.mjs} +5 -5
- package/dist/{drizzle-C8MPqt5m.mjs → drizzle-D4V_06-B.mjs} +1 -1
- package/dist/{drizzle-lFdzSEa9.mjs → drizzle-DBSpPpU1.mjs} +34 -8
- package/dist/{email-DKyMjOYM.mjs → email-ASpNrfLd.mjs} +7 -7
- package/dist/{email-cloudflare-CTt2n_W2.mjs → email-cloudflare-kqoN9jst.mjs} +13 -8
- package/dist/{entry-Bw-G1VVx.mjs → entry-BweGTCgj.mjs} +1 -1
- package/dist/{env-DkZzh_Dd.mjs → env-Bpkg3G5i.mjs} +5 -5
- package/dist/{env-CuzZZyjB.mjs → env-UqS-21xi.mjs} +8 -1
- package/dist/{env-public-CeNeO_AT.d.mts → env-public-DtJL_hZq.d.mts} +8 -7
- package/dist/{env-validation-1snjKtDX.mjs → env-validation-BpCCQE_6.mjs} +3 -3
- package/dist/{env-validation-C8NL3lEH.mjs → env-validation-CN386Utu.mjs} +1 -1
- package/dist/gen-M5fNQKfH.mjs +1 -0
- package/dist/{gen-BZmFOGDQ.mjs → gen-upKJChvd.mjs} +3 -3
- package/dist/{github-cmd-7Oky9qgH.mjs → github-cmd-BvMOlb8Z.mjs} +4 -4
- package/dist/{handler-DjqciiDc.d.mts → handler-BO7Od-z9.d.mts} +3 -2
- package/dist/{headers-CimYIfQI.mjs → headers-COGEDoMN.mjs} +10 -1
- package/dist/help-CItQVDL4.mjs +1 -0
- package/dist/{help-CNuUb47C.mjs → help-TPCjTu6e.mjs} +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +247 -178
- package/dist/{info-DwB8IWIx.mjs → info-EsDyihwf.mjs} +2 -2
- package/dist/{init-CUGSmcED.mjs → init-a4lVagrb.mjs} +13 -14
- package/dist/{link-BlRTGHan.mjs → link-CE55DDzS.mjs} +5 -5
- package/dist/{list-iCg7d5Pa.mjs → list-CxRthQks.mjs} +5 -5
- package/dist/{live-zKGbRT4h.d.mts → live-Kc55iuOQ.d.mts} +2 -2
- package/dist/{login-TA51e5Fw.mjs → login-AfcSGSmE.mjs} +4 -4
- package/dist/login-ZHsAm-I6.mjs +1 -0
- package/dist/{logs-BlyAxlvx.mjs → logs-BgRJuvb1.mjs} +4 -4
- package/dist/{migrate-BH6LCr00.mjs → migrate-BNAh6m_C.mjs} +2 -2
- package/dist/migrate-BflbbZQK.mjs +1 -0
- package/dist/nitro.mjs +2 -2
- package/dist/{node-B0otYjDv.mjs → node-CXFUw0Uz.mjs} +2 -2
- package/dist/{operator-args-DuKAQ3Ks.mjs → operator-args-DGTuCdSE.mjs} +8 -0
- package/dist/{operator-cmd-CoHlJjcT.mjs → operator-cmd-C-viB7Si.mjs} +4 -4
- package/dist/operator-cmd-D6qNuJ_z.mjs +1 -0
- package/dist/output-BsdnNpxa.mjs +1 -0
- package/dist/{output-CXJTIAtF.mjs → output-DNVILSz2.mjs} +1 -1
- package/dist/pages/client.d.mts +28 -3
- package/dist/pages/client.mjs +132 -15
- package/dist/pages/index.d.mts +3 -2
- package/dist/pages/index.mjs +2 -2
- package/dist/pages/islands-plugin.d.mts +1 -1
- package/dist/pages/islands-plugin.mjs +13 -2
- package/dist/pages/protocol.d.mts +2 -2
- package/dist/pages/protocol.mjs +1 -1
- package/dist/{platform-args-DfT8yQBF.mjs → platform-args-CiYeZmc5.mjs} +1 -1
- package/dist/platform-args-DJvF1-kl.mjs +1 -0
- package/dist/{platform-auth-config-MO0VdVs9.mjs → platform-auth-config-Dt2qEc2w.mjs} +6 -6
- package/dist/{platform-auth-protection-Dv208eyL.mjs → platform-auth-protection-B7TaF-PZ.mjs} +4 -4
- package/dist/{platform-auth-recovery-DvAQ674F.mjs → platform-auth-recovery-suXSteJ6.mjs} +4 -4
- package/dist/{platform-cmd-dlSxrcQ7.mjs → platform-cmd-9rvYBBtr.mjs} +7 -7
- package/dist/{platform-cmd-BpUA19r_.mjs → platform-cmd-DuAsIxbU.mjs} +1 -1
- package/dist/{platform-domain-DSO4eUEw.mjs → platform-domain-DhH_vDr6.mjs} +4 -4
- package/dist/{platform-lifecycle-CfcFygHb.mjs → platform-lifecycle-3uI-E2bF.mjs} +1 -1
- package/dist/{platform-lifecycle-BSvsyB_x.mjs → platform-lifecycle-CXmXe2xt.mjs} +13 -13
- package/dist/{platform-management-CrP1XhVd.mjs → platform-management-BBCHfwji.mjs} +3 -3
- package/dist/{platform-management-BMdyt667.mjs → platform-management-PdrgDQTe.mjs} +1 -1
- package/dist/{platform-plans-config-CgDiwflR.mjs → platform-plans-config-BGwkXYDM.mjs} +2 -2
- package/dist/{platform-recovery-CHWwXVZ6.mjs → platform-recovery-C8NxXGRR.mjs} +2 -2
- package/dist/{platform-setup-BTQVbnTC.mjs → platform-setup-Casiffqj.mjs} +2 -2
- package/dist/{plugin-inference-g66Q1Mx9.mjs → plugin-inference-CErfTgEx.mjs} +3 -3
- package/dist/{prepare-DXduEwQp.mjs → prepare-BDKWZgfL.mjs} +5 -5
- package/dist/{prepare-DJYHjpzq.mjs → prepare-BLrzXjIl.mjs} +3 -3
- package/dist/prepare-a1_5usAn.mjs +1 -0
- package/dist/{prerender-render-BN9Lmebs.mjs → prerender-render-BAdYhivW.mjs} +15 -2
- package/dist/prerender-render.d.mts +2 -0
- package/dist/prerender-render.mjs +1 -1
- package/dist/{project-cmd-Dfb1Sg8w.mjs → project-cmd-DzGvxXKH.mjs} +17 -17
- package/dist/{project-team-BO2dyc7S.mjs → project-team-C5XtHbZk.mjs} +4 -4
- package/dist/{project-token-ByO2mEI2.mjs → project-token-B4D5yhHQ.mjs} +4 -4
- package/dist/{project-zero-trust-CoQfwRBR.mjs → project-zero-trust--0LvktDg.mjs} +4 -4
- package/dist/{protocol-yxdHxFLN.mjs → protocol-B1Tvc9-x.mjs} +191 -69
- package/dist/{protocol-xZMvWsrg.d.mts → protocol-Cg2I81NA.d.mts} +9 -2
- package/dist/{provision-D5q-ptD3.mjs → provision-C3yiHdld.mjs} +1 -1
- package/dist/{provision-CMH4-8ri.mjs → provision-CAcrauvr.mjs} +1 -1
- package/dist/{requests-CPOiDkjh.mjs → requests-CrRiTgQA.mjs} +3 -3
- package/dist/resolve-project-C5wC-Hoi.mjs +1 -0
- package/dist/{resolve-project-ClvLMTI9.mjs → resolve-project-Da3OgCU1.mjs} +1 -1
- package/dist/{rollback-BfCs2la4.mjs → rollback-BsmQyj-Q.mjs} +4 -4
- package/dist/{route-types-Cl3x0Q8B.mjs → route-types-CgtlFCDz.mjs} +3 -2
- package/dist/routes-stub.d.mts +4 -3
- package/dist/runtime/auth.d.mts +1 -1
- package/dist/runtime/better-auth-mysql.d.mts +1 -1
- package/dist/runtime/better-auth-pg.d.mts +1 -1
- package/dist/runtime/better-auth.d.mts +1 -1
- package/dist/runtime/client-react.d.mts +1 -1
- package/dist/runtime/client-solid.d.mts +1 -1
- package/dist/runtime/client-svelte.d.mts +1 -1
- package/dist/runtime/client-vue.d.mts +1 -1
- package/dist/runtime/client.d.mts +1 -1
- package/dist/runtime/db.d.mts +6 -3
- package/dist/runtime/db.mjs +2 -2
- package/dist/runtime/env-public.d.mts +1 -1
- package/dist/runtime/env-public.mjs +53 -39
- package/dist/runtime/handler.d.mts +1 -1
- package/dist/runtime/live-client.d.mts +1 -1
- package/dist/runtime/live.d.mts +1 -1
- package/dist/runtime/routing.d.mts +8 -3
- package/dist/runtime/routing.mjs +161 -21
- package/dist/runtime/validator.d.mts +1 -1
- package/dist/runtime/ws-server.d.mts +3 -3
- package/dist/runtime/ws.d.mts +1 -1
- package/dist/{scan-L8OSv1f7.mjs → scan-BJ3bj6aP.mjs} +228 -27
- package/dist/{secret-CuI6LTpD.mjs → secret-D0g5oBsP.mjs} +6 -6
- package/dist/{skills-BBO9wMjB.mjs → skills-CoBB9_Ao.mjs} +1 -1
- package/dist/{ast-bindings-BkivMJIo.mjs → static-exports-DFkzL-NX.mjs} +96 -33
- package/dist/{subcommand-prompt-BZMnCA8T.mjs → subcommand-prompt-0yIARXf2.mjs} +2 -2
- package/dist/{types-agfx0alu.d.mts → types-IPut3_Yx.d.mts} +15 -1
- package/dist/{wrapper-BGsi_uHs.mjs → wrapper-CVMZarxf.mjs} +1 -1
- package/dist/{ws-DB8Feytg.d.mts → ws--U7QicYy.d.mts} +2 -2
- package/docs/guide/ai.md +1 -0
- package/docs/guide/app-types.md +1 -0
- package/docs/guide/auth.md +1 -0
- package/docs/guide/database/d1.md +16 -1
- package/docs/guide/database/mysql.md +1 -0
- package/docs/guide/database/postgresql.md +1 -0
- package/docs/guide/database.md +1 -0
- package/docs/guide/deployment.md +1 -0
- package/docs/guide/durable-state.md +1 -0
- package/docs/guide/edge/headers.md +1 -0
- package/docs/guide/edge/prerendering.md +1 -0
- package/docs/guide/edge/redirects.md +1 -0
- package/docs/guide/edge/revalidation.md +3 -0
- package/docs/guide/edge/rewrites.md +1 -0
- package/docs/guide/edge/static-assets.md +1 -0
- package/docs/guide/email/domains.md +1 -0
- package/docs/guide/email/receiving.md +3 -2
- package/docs/guide/email/sending.md +3 -2
- package/docs/guide/email.md +1 -0
- package/docs/guide/env-vars.md +4 -0
- package/docs/guide/index.md +1 -0
- package/docs/guide/jobs.md +1 -0
- package/docs/guide/kv.md +1 -0
- package/docs/guide/live.md +1 -0
- package/docs/guide/pages-routing/actions-and-forms.md +36 -18
- package/docs/guide/pages-routing/errors.md +101 -0
- package/docs/guide/pages-routing/head.md +1 -0
- package/docs/guide/pages-routing/islands.md +1 -0
- package/docs/guide/pages-routing/layouts.md +3 -0
- package/docs/guide/pages-routing/loaders.md +1 -0
- package/docs/guide/pages-routing/markdown.md +1 -1
- package/docs/guide/pages-routing/overview.md +3 -0
- package/docs/guide/pages-routing/view-transitions.md +1 -0
- package/docs/guide/platform/administration/access.md +1 -0
- package/docs/guide/platform/administration/connected-apps.md +4 -0
- package/docs/guide/platform/administration/email.md +1 -0
- package/docs/guide/platform/administration/operations.md +1 -0
- package/docs/guide/platform/administration/plans.md +1 -0
- package/docs/guide/platform/administration/projects.md +11 -0
- package/docs/guide/platform/administration/zero-trust.md +1 -0
- package/docs/guide/platform/development/local.md +1 -0
- package/docs/guide/platform/development/runtime.md +1 -0
- package/docs/guide/platform/development/schema-ci.md +1 -0
- package/docs/guide/platform/installation/ci.md +1 -0
- package/docs/guide/platform/installation/credentials.md +1 -0
- package/docs/guide/platform/installation/domains.md +1 -0
- package/docs/guide/platform/installation/first-deployment.md +1 -0
- package/docs/guide/platform/installation/maintenance.md +1 -0
- package/docs/guide/platform/installation/prerequisites.md +1 -0
- package/docs/guide/platform/installation/setup.md +1 -0
- package/docs/guide/platform/installation/uninstall.md +1 -0
- package/docs/guide/platform-administration.md +1 -0
- package/docs/guide/platform-development.md +1 -0
- package/docs/guide/project-collaboration.md +1 -0
- package/docs/guide/queues.md +3 -0
- package/docs/guide/quickstart.md +3 -2
- package/docs/guide/remote-dev.md +1 -0
- package/docs/guide/sandboxes.md +1 -0
- package/docs/guide/self-hosted-platform.md +1 -0
- package/docs/guide/server-routing.md +1 -0
- package/docs/guide/sse.md +1 -0
- package/docs/guide/ssg.md +1 -0
- package/docs/guide/ssr.md +1 -0
- package/docs/guide/storage.md +1 -0
- package/docs/guide/testing.md +62 -0
- package/docs/guide/type-safety.md +1 -0
- package/docs/guide/typed-fetch.md +1 -0
- package/docs/guide/websockets.md +1 -0
- package/docs/index.md +1 -0
- package/docs/integrations/agents.md +1 -0
- package/docs/integrations/cloudflare.md +1 -0
- package/docs/integrations/frameworks/analog.md +1 -0
- package/docs/integrations/frameworks/astro.md +1 -0
- package/docs/integrations/frameworks/nuxt.md +1 -0
- package/docs/integrations/frameworks/overview.md +1 -0
- package/docs/integrations/frameworks/react-router.md +1 -0
- package/docs/integrations/frameworks/sveltekit.md +1 -0
- package/docs/integrations/frameworks/tanstack-start.md +1 -0
- package/docs/integrations/hono.md +1 -0
- package/docs/integrations/nodejs-bun-deno.md +1 -0
- package/docs/reference/api/auth.md +1 -0
- package/docs/reference/api/client.md +1 -0
- package/docs/reference/api/database.md +24 -1
- package/docs/reference/api/deploy.md +4 -0
- package/docs/reference/api/durable.md +1 -0
- package/docs/reference/api/env.md +1 -0
- package/docs/reference/api/handlers.md +1 -0
- package/docs/reference/api/pages.md +22 -4
- package/docs/reference/api/plugin.md +1 -0
- package/docs/reference/api/resources.md +1 -0
- package/docs/reference/api/rewrites.md +2 -1
- package/docs/reference/api/types.md +1 -0
- package/docs/reference/api.md +1 -0
- package/docs/reference/cli/auth.md +1 -0
- package/docs/reference/cli/database.md +1 -0
- package/docs/reference/cli/deploy.md +1 -0
- package/docs/reference/cli/domains.md +1 -0
- package/docs/reference/cli/email.md +1 -0
- package/docs/reference/cli/generate.md +1 -0
- package/docs/reference/cli/github.md +1 -0
- package/docs/reference/cli/platform-config.md +1 -0
- package/docs/reference/cli/platform-email.md +1 -0
- package/docs/reference/cli/platform-installation.md +1 -0
- package/docs/reference/cli/platform-operations.md +1 -0
- package/docs/reference/cli/platform-users.md +23 -0
- package/docs/reference/cli/platform-zero-trust.md +1 -0
- package/docs/reference/cli/platform.md +1 -0
- package/docs/reference/cli/project.md +1 -0
- package/docs/reference/cli/secrets.md +1 -0
- package/docs/reference/cli/setup.md +1 -0
- package/docs/reference/cli.md +3 -0
- package/docs/reference/config.md +1 -0
- package/docs/reference/resource-inference.md +1 -0
- package/docs/reference/structure.md +1 -0
- package/package.json +25 -25
- package/skills/void/SKILL.md +2 -0
- package/dist/action-key-XtKKbbsi.mjs +0 -25
- package/dist/client-BAxLpSKv.mjs +0 -1
- package/dist/deploy-DEZkUS77.mjs +0 -2
- package/dist/gen-C6iknRdI.mjs +0 -1
- package/dist/help-C_cqTByy.mjs +0 -1
- package/dist/login-C4q1S-5b.mjs +0 -1
- package/dist/migrate-CVBsSFhC.mjs +0 -1
- package/dist/operator-cmd-DnaCnCSP.mjs +0 -1
- package/dist/output-CNsMDEd2.mjs +0 -1
- package/dist/platform-args-B7-wQ0_B.mjs +0 -1
- package/dist/prepare-Bx4a8cb1.mjs +0 -1
- package/dist/resolve-project-BALVa9q0.mjs +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { a as join, s as relative } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { d as deriveDurableResourceIdentity, f as inferDurableResourceName, t as analyzeApplicationSync } from "./application-analysis-
|
|
2
|
+
import { d as deriveDurableResourceIdentity, f as inferDurableResourceName, t as analyzeApplicationSync } from "./application-analysis-CyTagJQM.mjs";
|
|
3
3
|
import { n as VOID_LOCK_FILE } from "./cloudflare-config-DtOGAbeB.mjs";
|
|
4
4
|
import { p as readConfig } from "./config-5oSQhZNj.mjs";
|
|
5
|
-
import { a as deriveWebSocketClassNameFromName, o as inferWebSocketResourceName } from "./plugin-inference-
|
|
5
|
+
import { a as deriveWebSocketClassNameFromName, o as inferWebSocketResourceName } from "./plugin-inference-CErfTgEx.mjs";
|
|
6
6
|
import { existsSync, readFileSync } from "node:fs";
|
|
7
7
|
import { isRecord } from "@void/deploy-core";
|
|
8
8
|
// src/cli/info.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as confirm, K as select, L as log, O as cancel, X as text, tt as isCancel } from "./dist-
|
|
1
|
+
import { A as confirm, K as select, L as log, O as cancel, X as text, tt as isCancel } from "./dist-STQXl8ck.mjs";
|
|
2
2
|
import { a as join, c as resolve, i as isAbsolute, n as dirname, s as relative, t as basename } from "./dist-DMYe8CZJ.mjs";
|
|
3
3
|
import { i as materializeCloudflareConfig, l as ensureGitignoreLines } from "./cloudflare-config-DtOGAbeB.mjs";
|
|
4
4
|
import { n as ensureProjectTsconfig, t as createProjectTsconfig } from "./project-tsconfig-nhnTWO_Y.mjs";
|
|
@@ -7,20 +7,20 @@ import { F as canRewriteVoidProjectConfig, I as renderVoidConfig, L as writeVoid
|
|
|
7
7
|
import { c as getDatabaseCasing, l as getDatabaseDialect, p as readConfig, s as databaseConfigValue } from "./config-5oSQhZNj.mjs";
|
|
8
8
|
import { r as writeDrizzleConfig, t as PLACEHOLDER_DB_URL } from "./config-DcqUBGCb.mjs";
|
|
9
9
|
import { n as snapshotDrizzleOutputs } from "./generate-CWb8aOsm.mjs";
|
|
10
|
-
import { r as detectFramework } from "./plugin-inference-
|
|
10
|
+
import { r as detectFramework } from "./plugin-inference-CErfTgEx.mjs";
|
|
11
11
|
import { i as readPackageJson, n as hasPackageDependency } from "./package-json-DvS6IFRv.mjs";
|
|
12
12
|
import { n as getOwnVersion, r as getPackageDir, t as detectAgents } from "./agents-DRo8gzni.mjs";
|
|
13
|
-
import { t as connectCloudflare } from "./cloudflare-connect-
|
|
13
|
+
import { t as connectCloudflare } from "./cloudflare-connect-Co93VYTo.mjs";
|
|
14
14
|
import { c as getToken } from "./auth-CCk9Seol.mjs";
|
|
15
|
-
import { r as PlatformClient } from "./client-
|
|
16
|
-
import { a as promptProjectSelection, r as promptAndCreateProject } from "./create-project-
|
|
17
|
-
import { t as promptForLoginToken } from "./login-
|
|
15
|
+
import { r as PlatformClient } from "./client-SZPyj4X_.mjs";
|
|
16
|
+
import { a as promptProjectSelection, r as promptAndCreateProject } from "./create-project-CC_7hmYJ.mjs";
|
|
17
|
+
import { t as promptForLoginToken } from "./login-AfcSGSmE.mjs";
|
|
18
18
|
import { c as writeDeploymentPlatform, n as readDeploymentPlatform, r as readProjectConfig, t as attachSelectedPlatform, u as writeProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
19
19
|
import { t as parseDotenvFile } from "./dotenv-CEI8hapP.mjs";
|
|
20
|
-
import { i as migrateFrameworkAdapterPaths, t as migrateLegacyVoidConfig } from "./migrate-
|
|
21
|
-
import { l as formatUrl, m as printSuccess, p as note } from "./output-
|
|
22
|
-
import { i as saveDiscoveredPlatform, t as discoverPlatform } from "./platform-cmd-
|
|
23
|
-
import { s as formatProjectCommand } from "./cloudflare-process-
|
|
20
|
+
import { i as migrateFrameworkAdapterPaths, t as migrateLegacyVoidConfig } from "./migrate-BNAh6m_C.mjs";
|
|
21
|
+
import { l as formatUrl, m as printSuccess, p as note } from "./output-DNVILSz2.mjs";
|
|
22
|
+
import { i as saveDiscoveredPlatform, t as discoverPlatform } from "./platform-cmd-9rvYBBtr.mjs";
|
|
23
|
+
import { s as formatProjectCommand } from "./cloudflare-process-DmTxZR-N.mjs";
|
|
24
24
|
import { t as MagicString } from "./dist-B6eN80gc.mjs";
|
|
25
25
|
import { i as hasLocalLockfile, n as drizzleKitBin, r as findInstalledYarnPnpRuntime, t as buildDrizzleKitSpawnEnv } from "./yarn-pnp-DgWbE7z5.mjs";
|
|
26
26
|
import { createRequire } from "node:module";
|
|
@@ -220,7 +220,6 @@ const SCAFFOLD_GITIGNORE_LINES = [
|
|
|
220
220
|
".void-wrangler.jsonc",
|
|
221
221
|
".env",
|
|
222
222
|
".env.*",
|
|
223
|
-
"!.env.example",
|
|
224
223
|
"*.tsbuildinfo",
|
|
225
224
|
".DS_Store"
|
|
226
225
|
];
|
|
@@ -230,8 +229,8 @@ const SCAFFOLD_BASE_DEV_DEPENDENCIES = {
|
|
|
230
229
|
typescript: "^7.0.2"
|
|
231
230
|
};
|
|
232
231
|
const SCAFFOLD_VITE_PLUS_DEV_DEPENDENCIES = {
|
|
233
|
-
vite: "npm:@voidzero-dev/vite-plus-core@^1.
|
|
234
|
-
"vite-plus": "^1.
|
|
232
|
+
vite: "npm:@voidzero-dev/vite-plus-core@^1.6.0",
|
|
233
|
+
"vite-plus": "^1.6.0"
|
|
235
234
|
};
|
|
236
235
|
const SCAFFOLD_TOOLCHAIN_OPTIONS = [{
|
|
237
236
|
value: "vite-plus",
|
|
@@ -2582,7 +2581,7 @@ async function runInitCommand(root, initArgs) {
|
|
|
2582
2581
|
await injectAgentBlock(root, newProject);
|
|
2583
2582
|
const agents = detectAgents(root);
|
|
2584
2583
|
if (agents.length > 0) {
|
|
2585
|
-
const { linkSkillsForSpecificAgents } = await import("./skills-
|
|
2584
|
+
const { linkSkillsForSpecificAgents } = await import("./skills-CoBB9_Ao.mjs");
|
|
2586
2585
|
linkSkillsForSpecificAgents(root, agents);
|
|
2587
2586
|
} else log.info("Bundled Void docs: node_modules/void/docs/");
|
|
2588
2587
|
if (!targeted && !framework) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { H as outro, L as log, O as cancel } from "./dist-
|
|
1
|
+
import { H as outro, L as log, O as cancel } from "./dist-STQXl8ck.mjs";
|
|
2
2
|
import { c as getToken, s as getSiteDomain } from "./auth-CCk9Seol.mjs";
|
|
3
|
-
import { r as PlatformClient } from "./client-
|
|
4
|
-
import { a as promptProjectSelection, r as promptAndCreateProject } from "./create-project-
|
|
5
|
-
import { f as import_picocolors, m as printSuccess } from "./output-
|
|
3
|
+
import { r as PlatformClient } from "./client-SZPyj4X_.mjs";
|
|
4
|
+
import { a as promptProjectSelection, r as promptAndCreateProject } from "./create-project-CC_7hmYJ.mjs";
|
|
5
|
+
import { f as import_picocolors, m as printSuccess } from "./output-DNVILSz2.mjs";
|
|
6
6
|
import { r as readProjectConfig, t as attachSelectedPlatform, u as writeProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
7
|
-
import { a as resolveProjectBySlug } from "./resolve-project-
|
|
7
|
+
import { a as resolveProjectBySlug } from "./resolve-project-Da3OgCU1.mjs";
|
|
8
8
|
// src/cli/link.ts
|
|
9
9
|
function projectLabel(slug, root, url) {
|
|
10
10
|
if (url) return url;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { H as outro, L as log } from "./dist-
|
|
1
|
+
import { H as outro, L as log } from "./dist-STQXl8ck.mjs";
|
|
2
2
|
import { c as getToken } from "./auth-CCk9Seol.mjs";
|
|
3
|
-
import { r as PlatformClient } from "./client-
|
|
4
|
-
import { _ as tablePrefix, c as formatRelativeTime, f as import_picocolors, h as sanitizeTerminalText, i as dim, o as formatCount } from "./output-
|
|
3
|
+
import { r as PlatformClient } from "./client-SZPyj4X_.mjs";
|
|
4
|
+
import { _ as tablePrefix, c as formatRelativeTime, f as import_picocolors, h as sanitizeTerminalText, i as dim, o as formatCount } from "./output-DNVILSz2.mjs";
|
|
5
5
|
import { n as readDeploymentPlatform, r as readProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
6
|
-
import { a as resolveProjectBySlug } from "./resolve-project-
|
|
6
|
+
import { a as resolveProjectBySlug } from "./resolve-project-Da3OgCU1.mjs";
|
|
7
7
|
// src/cli/list.ts
|
|
8
8
|
async function runListCommand(root, slug) {
|
|
9
9
|
console.log();
|
|
@@ -42,7 +42,7 @@ async function runListCommand(root, slug) {
|
|
|
42
42
|
}
|
|
43
43
|
async function showCloudflareDeployments(root, slug) {
|
|
44
44
|
if (slug) throw new Error("project: A project name selects a Void platform project and is not used for direct Cloudflare apps.");
|
|
45
|
-
const { readCloudflareWorkerStatus, resolveCloudflareOperationContext } = await import("./cloudflare-operations-
|
|
45
|
+
const { readCloudflareWorkerStatus, resolveCloudflareOperationContext } = await import("./cloudflare-operations-DATekLwI.mjs");
|
|
46
46
|
const status = await readCloudflareWorkerStatus(resolveCloudflareOperationContext(root));
|
|
47
47
|
if (status.versions.length === 0) {
|
|
48
48
|
outro(`No deployments for ${status.workerName}.`);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as AuthUser } from "./auth-
|
|
2
|
-
import { a as CloudEnv, r as CloudContext } from "./handler-
|
|
1
|
+
import { i as AuthUser } from "./auth-Bk9VGtQW.mjs";
|
|
2
|
+
import { a as CloudEnv, r as CloudContext } from "./handler-BO7Od-z9.mjs";
|
|
3
3
|
type MaybePromise<T> = T | Promise<T>;
|
|
4
4
|
type LiveControlRequest = {
|
|
5
5
|
connectionId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { H as outro, K as select, L as log, O as cancel, tt as isCancel } from "./dist-
|
|
1
|
+
import { H as outro, K as select, L as log, O as cancel, tt as isCancel } from "./dist-STQXl8ck.mjs";
|
|
2
2
|
import { a as getApiUrl, c as getToken, f as removeToken, l as getTokenSource, m as savePlatformToken, p as runPlatformLogin } from "./auth-CCk9Seol.mjs";
|
|
3
|
-
import { a as isExpiredTokenError, r as PlatformClient } from "./client-
|
|
4
|
-
import { f as import_picocolors, l as formatUrl, m as printSuccess, r as createSpinner } from "./output-
|
|
3
|
+
import { a as isExpiredTokenError, r as PlatformClient } from "./client-SZPyj4X_.mjs";
|
|
4
|
+
import { f as import_picocolors, l as formatUrl, m as printSuccess, r as createSpinner } from "./output-DNVILSz2.mjs";
|
|
5
5
|
// src/cli/login.ts
|
|
6
6
|
async function selectPlatformLoginMethod(platform, requestedId) {
|
|
7
7
|
const providers = platform.authenticationProviders;
|
|
@@ -30,7 +30,7 @@ async function selectPlatformLoginMethod(platform, requestedId) {
|
|
|
30
30
|
}
|
|
31
31
|
async function promptForLoginToken(root = process.cwd(), platform) {
|
|
32
32
|
const apiUrl = platform?.apiUrl ?? getApiUrl(root);
|
|
33
|
-
const { id: provider, label: providerName } = await selectPlatformLoginMethod(platform ?? await (await import("./platform-cmd-
|
|
33
|
+
const { id: provider, label: providerName } = await selectPlatformLoginMethod(platform ?? await (await import("./platform-cmd-DuAsIxbU.mjs")).discoverPlatform(apiUrl));
|
|
34
34
|
const s = createSpinner();
|
|
35
35
|
s.start(`Opening browser for ${providerName} login...`);
|
|
36
36
|
try {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { r as selectPlatformLoginMethod } from "./login-AfcSGSmE.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { $ as wrapTextWithPrefix, H as outro, L as log } from "./dist-
|
|
1
|
+
import { $ as wrapTextWithPrefix, H as outro, L as log } from "./dist-STQXl8ck.mjs";
|
|
2
2
|
import { c as getToken } from "./auth-CCk9Seol.mjs";
|
|
3
|
-
import { r as PlatformClient } from "./client-
|
|
4
|
-
import { a as errorStackFrames, f as import_picocolors, i as dim, o as formatCount } from "./output-
|
|
3
|
+
import { r as PlatformClient } from "./client-SZPyj4X_.mjs";
|
|
4
|
+
import { a as errorStackFrames, f as import_picocolors, i as dim, o as formatCount } from "./output-DNVILSz2.mjs";
|
|
5
5
|
import { t as MINIMAL_RUNTIME_LOGS_NOTE } from "./platform-runtime-logs-CdJGnk3f.mjs";
|
|
6
6
|
import { n as readDeploymentPlatform, r as readProjectConfig } from "./project-CLwxcEdq.mjs";
|
|
7
7
|
import { t as sanitizeTerminalLogText } from "./terminal-log-text-DNsWJREL.mjs";
|
|
@@ -10,7 +10,7 @@ async function runLogsCommand(root, filter, range, deployment, level) {
|
|
|
10
10
|
console.log();
|
|
11
11
|
const platform = readDeploymentPlatform(root);
|
|
12
12
|
if (platform === "cloudflare") {
|
|
13
|
-
const { resolveCloudflareOperationContext, tailCloudflareWorker } = await import("./cloudflare-operations-
|
|
13
|
+
const { resolveCloudflareOperationContext, tailCloudflareWorker } = await import("./cloudflare-operations-DATekLwI.mjs");
|
|
14
14
|
if (range !== "1h") log.warn("Cloudflare tail streams live logs; --range does not select historical entries.");
|
|
15
15
|
if (level && level !== "all" && level !== "error") log.warn("Cloudflare tail cannot filter individual console levels; showing all invocation logs.");
|
|
16
16
|
await tailCloudflareWorker(resolveCloudflareOperationContext(root), {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { L as log } from "./dist-
|
|
1
|
+
import { L as log } from "./dist-STQXl8ck.mjs";
|
|
2
2
|
import { a as join, n as dirname } from "./dist-DMYe8CZJ.mjs";
|
|
3
3
|
import { c as stashCloudflareDeployPointer, l as ensureGitignoreLines, n as VOID_LOCK_FILE, r as ignoreMaterializedCloudflareConfig, s as seedCloudflareConfig } from "./cloudflare-config-DtOGAbeB.mjs";
|
|
4
4
|
import { o as TYPED_CONFIG_FILE, s as loadTypedVoidConfigFile } from "./project-paths-G0yut6Zz.mjs";
|
|
5
5
|
import { I as renderVoidConfig, P as GENERATED_MARKERS } from "./wrangler-k40T7XTQ.mjs";
|
|
6
6
|
import { h as validateConfig } from "./config-5oSQhZNj.mjs";
|
|
7
7
|
import { t as parseJsoncObject } from "./generated-wrangler-config-CoDaaFsA.mjs";
|
|
8
|
-
import { m as printSuccess } from "./output-
|
|
8
|
+
import { m as printSuccess } from "./output-DNVILSz2.mjs";
|
|
9
9
|
import { existsSync, mkdirSync, readFileSync, renameSync, rmSync, unlinkSync, writeFileSync } from "node:fs";
|
|
10
10
|
import { parseSync } from "vite";
|
|
11
11
|
import { randomUUID } from "node:crypto";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { n as runMigrateCommand } from "./migrate-BNAh6m_C.mjs";
|
package/dist/nitro.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { a as join, n as dirname } from "./dist-DMYe8CZJ.mjs";
|
|
2
|
-
import { n as bundleWorkerSqlDriver } from "./wrapper-
|
|
2
|
+
import { n as bundleWorkerSqlDriver } from "./wrapper-CVMZarxf.mjs";
|
|
3
3
|
import { l as getDatabaseDialect, p as readConfig } from "./config-5oSQhZNj.mjs";
|
|
4
|
-
import { c as voidDbBundlerPlugin } from "./dispatch-
|
|
4
|
+
import { c as voidDbBundlerPlugin } from "./dispatch-CCiaAnSK.mjs";
|
|
5
5
|
import { normalizePath } from "vite";
|
|
6
6
|
import { fileURLToPath } from "node:url";
|
|
7
7
|
import { resolve } from "node:path/win32";
|
|
@@ -2,9 +2,9 @@ import { n as dirname } from "./dist-DMYe8CZJ.mjs";
|
|
|
2
2
|
import { p as readConfig } from "./config-5oSQhZNj.mjs";
|
|
3
3
|
import { r as getMiniflareDatabasePath } from "./runner-CMZb7jNU.mjs";
|
|
4
4
|
import { a as pgMigrationRunner, i as mysqlMigrationRunner, n as applyPgAuthMigrations, r as applySqliteAuthMigrations, t as applyMySqlAuthMigrations } from "./auth-migrations-DDeifS3v.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { c as loadLocalEnv } from "./env-UqS-21xi.mjs";
|
|
6
6
|
import { a as projectAuthConfigImporter, i as loadVoidAuthConfig, r as findVoidAuthConfig } from "./config-eeDzKBS9.mjs";
|
|
7
|
-
import { r as resolveVoidAuthMigrationSchema } from "./drizzle-
|
|
7
|
+
import { r as resolveVoidAuthMigrationSchema } from "./drizzle-DBSpPpU1.mjs";
|
|
8
8
|
import { mkdirSync } from "node:fs";
|
|
9
9
|
// src/auth/node.ts
|
|
10
10
|
async function runLocalVoidAuthMigrations(root, dialect, persistRoot, databaseId, configPath = findVoidAuthConfig(root), databaseUrl, importModule) {
|
|
@@ -109,6 +109,14 @@ const operatorCommands = [
|
|
|
109
109
|
positional: ["id"],
|
|
110
110
|
method: "POST"
|
|
111
111
|
},
|
|
112
|
+
{
|
|
113
|
+
group: "project",
|
|
114
|
+
action: "ai-logging",
|
|
115
|
+
description: "Set AI Gateway logging: inherit, off, metadata, or full",
|
|
116
|
+
path: "/projects/:id/ai-logging",
|
|
117
|
+
positional: ["id", "mode"],
|
|
118
|
+
method: "POST"
|
|
119
|
+
},
|
|
112
120
|
{
|
|
113
121
|
group: "project",
|
|
114
122
|
action: "owner",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as resolveOperatorOrigin, i as removeOperatorToken, n as readOperatorApiTokenStdin, o as saveOperatorToken, r as readOperatorToken, t as exchangeOperatorSession } from "./operator-auth-CD3pap65.mjs";
|
|
2
2
|
import { n as OperatorClient, r as OperatorClientError } from "./operator-client-XvXTkea6.mjs";
|
|
3
|
-
import { h as sanitizeTerminalText, i as dim, m as printSuccess } from "./output-
|
|
3
|
+
import { h as sanitizeTerminalText, i as dim, m as printSuccess } from "./output-DNVILSz2.mjs";
|
|
4
4
|
import { t as MINIMAL_RUNTIME_LOGS_NOTE } from "./platform-runtime-logs-CdJGnk3f.mjs";
|
|
5
5
|
import { createHash } from "node:crypto";
|
|
6
6
|
import { setTimeout } from "node:timers/promises";
|
|
@@ -180,8 +180,8 @@ async function runAuth(origin, args) {
|
|
|
180
180
|
if (args.action === "login" || args.action === "token" && args.tokenStdin) {
|
|
181
181
|
if (!args.tokenStdin && !process.stdin.isTTY) throw new OperatorClientError("Browser login requires an interactive terminal. Use --token-stdin to exchange an API session.", "interactive_login_required");
|
|
182
182
|
const apiToken = args.tokenStdin ? await readOperatorApiTokenStdin() : await (async () => {
|
|
183
|
-
const { discoverPlatform } = await import("./platform-cmd-
|
|
184
|
-
const { selectPlatformLoginMethod } = await import("./login-
|
|
183
|
+
const { discoverPlatform } = await import("./platform-cmd-DuAsIxbU.mjs");
|
|
184
|
+
const { selectPlatformLoginMethod } = await import("./login-ZHsAm-I6.mjs");
|
|
185
185
|
const { runPlatformLogin } = await import("./auth-BN0NU9dz.mjs");
|
|
186
186
|
return runPlatformLogin(origin, (await selectPlatformLoginMethod(await discoverPlatform(origin), args.provider)).id, (url) => process.stderr.write(`Sign in at ${url}\n`));
|
|
187
187
|
})();
|
|
@@ -362,7 +362,7 @@ async function migrateDeploymentAssets(client, origin, args) {
|
|
|
362
362
|
}
|
|
363
363
|
async function runOperatorCommand(args) {
|
|
364
364
|
if (!args.action) {
|
|
365
|
-
const { printHelpPage } = await import("./help-
|
|
365
|
+
const { printHelpPage } = await import("./help-CItQVDL4.mjs");
|
|
366
366
|
printHelpPage(["platform", args.group]);
|
|
367
367
|
return;
|
|
368
368
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { a as runOperatorCommand } from "./operator-cmd-C-viB7Si.mjs";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { m as printSuccess } from "./output-DNVILSz2.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as __toESM } from "./rolldown-runtime-uD8oG6U2.mjs";
|
|
2
|
-
import { B as note$1, H as outro, L as log, P as isCI, nt as settings, q as spinner } from "./dist-
|
|
2
|
+
import { B as note$1, H as outro, L as log, P as isCI, nt as settings, q as spinner } from "./dist-STQXl8ck.mjs";
|
|
3
3
|
import { t as require_picocolors } from "./picocolors-D1NxSLw-.mjs";
|
|
4
4
|
import { stripVTControlCharacters } from "node:util";
|
|
5
5
|
import terminalLink from "terminal-link";
|
package/dist/pages/client.d.mts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { d as interpolateRouteParams, p as toUrlString } from "../route-url-C3JwYrER.mjs";
|
|
2
|
-
import { t as PageObject } from "../protocol-
|
|
2
|
+
import { t as PageObject } from "../protocol-Cg2I81NA.mjs";
|
|
3
|
+
import { t as BoundaryManifest } from "../boundary-plans-CRmWH68v.mjs";
|
|
3
4
|
import { a as LinkPrefetchValue, i as LinkPrefetchStrategy, n as CacheForInput, r as CacheForResult } from "../prefetch-NdNeubbH.mjs";
|
|
5
|
+
import { n as ErrorPageProps, o as PageError } from "../types-IPut3_Yx.mjs";
|
|
4
6
|
import { UsageLimitData } from "@void/edge";
|
|
5
7
|
import { ActionUrl, Href, ResolveActionBody, ResolveActionParams, RouteUrl, RouteUrlInput } from "void/routes";
|
|
6
8
|
type ActionErrorHandlingScope = "callSite" | "boundary";
|
|
@@ -53,6 +55,8 @@ type VisitOptions = {
|
|
|
53
55
|
_popstate?: boolean;
|
|
54
56
|
/** @internal Used by router.refresh() to refetch the current URL even when it has a hash */
|
|
55
57
|
_refresh?: boolean;
|
|
58
|
+
/** @internal Used by actions: the page query they added to the URL, which redirects leave out */
|
|
59
|
+
_preservedQuery?: string;
|
|
56
60
|
};
|
|
57
61
|
type PrefetchOptions = {
|
|
58
62
|
method?: string;
|
|
@@ -66,12 +70,15 @@ type VoidRouterAdapter$1 = {
|
|
|
66
70
|
onDeferredUpdate?(props: Record<string, unknown>): void;
|
|
67
71
|
};
|
|
68
72
|
type PageNavigationEngineConfig = {
|
|
73
|
+
boundaryManifest?: BoundaryManifest;
|
|
74
|
+
dev?: boolean;
|
|
69
75
|
adapter: VoidRouterAdapter$1;
|
|
70
76
|
components: Record<string, () => Promise<PageComponentModule>>;
|
|
71
77
|
layoutTree: Record<string, Array<string>>;
|
|
72
78
|
routeMeta: Record<string, {
|
|
73
79
|
island?: boolean;
|
|
74
80
|
prerender?: boolean;
|
|
81
|
+
boundary?: boolean;
|
|
75
82
|
}>;
|
|
76
83
|
/** Page id for a decoded pathname (see `decodePagePath`). */
|
|
77
84
|
matchRoute(path: string): string | null;
|
|
@@ -95,6 +102,8 @@ type PageNavigationResource = {
|
|
|
95
102
|
url: string;
|
|
96
103
|
fetchUrl: string;
|
|
97
104
|
hash: string;
|
|
105
|
+
/** Destination after redirects, including its query and hash. */
|
|
106
|
+
readonly resolvedUrl?: string;
|
|
98
107
|
method: string;
|
|
99
108
|
options: VisitOptions;
|
|
100
109
|
immediate: boolean;
|
|
@@ -286,6 +295,20 @@ export declare function formRetryMessage(error: VoidActionError | null): string
|
|
|
286
295
|
export declare function formSubmissionBlocked(form: Pick<FormModel, "pending" | "error">, now?: number): boolean;
|
|
287
296
|
/** One deadline, capped for browser timers; no polling and no automatic submission. */
|
|
288
297
|
export declare function scheduleFormRetry(error: VoidActionError | null, ready: () => void): () => void;
|
|
298
|
+
type ClientPageBoundary = {
|
|
299
|
+
id: string;
|
|
300
|
+
key: string;
|
|
301
|
+
depth: number;
|
|
302
|
+
load: () => Promise<{
|
|
303
|
+
default: unknown;
|
|
304
|
+
}>;
|
|
305
|
+
};
|
|
306
|
+
export declare function pageBoundarySlots(manifest: BoundaryManifest | undefined, component: string, components: Record<string, () => Promise<{
|
|
307
|
+
default: unknown;
|
|
308
|
+
}>>): Array<ClientPageBoundary>;
|
|
309
|
+
export declare function clientPageError(error: unknown, dev?: boolean): PageError;
|
|
310
|
+
/** Terminal recovery cannot depend on the failed adapter, imports, or component tree. */
|
|
311
|
+
export declare function showTerminalPageError(url?: string): void;
|
|
289
312
|
export type NavigationStateType = "idle" | "loading" | "submitting";
|
|
290
313
|
export type NavigationMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE";
|
|
291
314
|
export type NavigationState = {
|
|
@@ -323,7 +346,9 @@ export declare function createSsrRouter(url?: string, params?: Record<string, st
|
|
|
323
346
|
export declare const ssrProxy: VoidRouter;
|
|
324
347
|
/** Refetch the current page in place: same history entry, URL hash, state and scroll. */
|
|
325
348
|
export declare function refreshPage(router: Pick<VoidRouter, "visit">, options?: VisitOptions): Promise<unknown>;
|
|
326
|
-
export declare function submitAction(router: VoidRouter, url: string, options: VisitOptions
|
|
349
|
+
export declare function submitAction(router: VoidRouter, url: string, options: VisitOptions, errorOptions?: {
|
|
350
|
+
throwOnError?: boolean;
|
|
351
|
+
}): Promise<ActionResult>;
|
|
327
352
|
type ActionMethod = "POST" | "PUT" | "PATCH" | "DELETE";
|
|
328
353
|
type HasParams<U extends string> = [ResolveActionParams<U>] extends [never] ? false : true;
|
|
329
354
|
type ActionOptions<U extends string> = {
|
|
@@ -351,4 +376,4 @@ export declare function createVoidRouter(config: VoidRouterConfig): Promise<{
|
|
|
351
376
|
}>;
|
|
352
377
|
export declare function scheduleHydration(el: Element, loader: () => Promise<unknown>, props: Record<string, unknown>, strategy: string, hydrateFn: (el: Element, mod: unknown, props: Record<string, unknown>) => void | Promise<void>): void;
|
|
353
378
|
export declare function initIslands(islands: Record<string, () => Promise<unknown>>, hydrateFn: (el: Element, mod: unknown, props: Record<string, unknown>, frontmatter: Record<string, unknown>) => void | Promise<void>): void;
|
|
354
|
-
export { type ActionErrorHandlingScope, type ActionResult, type BaseLinkProps, type FormMethod, type FormModel, type FormResetOptions, type FormState, type FormSubmitOptions, type IslandActionResult, type IslandFormState, type LinkActiveAttributes, type LinkActiveMatch, type LinkNavigateEvent, type LinkPendingAttributes, type LinkPrefetchStrategy, type LinkPrefetchValue, type PageNavigationEngine, type PageNavigationResource, type PageNavigationResult, type PrefetchOptions, type ResolvedLink, type VisitOptions, interpolateRouteParams, toUrlString };
|
|
379
|
+
export { type ActionErrorHandlingScope, type ActionResult, type BaseLinkProps, type BoundaryManifest, type ClientPageBoundary, type ErrorPageProps, type FormMethod, type FormModel, type FormResetOptions, type FormState, type FormSubmitOptions, type IslandActionResult, type IslandFormState, type LinkActiveAttributes, type LinkActiveMatch, type LinkNavigateEvent, type LinkPendingAttributes, type LinkPrefetchStrategy, type LinkPrefetchValue, type PageError, type PageNavigationEngine, type PageNavigationResource, type PageNavigationResult, type PrefetchOptions, type ResolvedLink, type VisitOptions, interpolateRouteParams, toUrlString };
|
package/dist/pages/client.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as toUrlString, t as interpolateRouteParams } from "../route-url-CfCR4oMj.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { c as withPageQuery, o as searchWithoutActionKey, t as PRESERVED_QUERY_HEADER } from "../action-key-ByZ6DDld.mjs";
|
|
3
3
|
import { r as parseCacheFor, t as PrefetchCache } from "../prefetch-Dx2jIbtg.mjs";
|
|
4
4
|
import { a as serializePageData, n as decodePageData, r as deserializePageData, t as ISLAND_FRONTMATTER_ID } from "../serialize-Pf-CIQK_.mjs";
|
|
5
5
|
import { n as isSameOrigin, t as decodePagePath } from "../url-CuoEn0o3.mjs";
|
|
@@ -71,6 +71,52 @@ async function createActionErrorFromResponse(response, url) {
|
|
|
71
71
|
url
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
|
+
// src/pages/boundary-client.ts
|
|
75
|
+
function pageBoundarySlots(manifest, component, components) {
|
|
76
|
+
if (!manifest) return [];
|
|
77
|
+
const current = manifest.plans[component];
|
|
78
|
+
const source = current?.source ?? component;
|
|
79
|
+
return (manifest.pages[source]?.catches ?? []).filter((c) => {
|
|
80
|
+
const plan = manifest.plans[c.plan];
|
|
81
|
+
return !current || (current.kind === "not-found" ? plan.directory.length <= current.directory.length : plan.directory.length < current.directory.length);
|
|
82
|
+
}).map((c) => ({
|
|
83
|
+
id: c.plan,
|
|
84
|
+
key: manifest.plans[c.plan].componentId,
|
|
85
|
+
depth: Math.min(c.depth, current?.layouts.length ?? Infinity),
|
|
86
|
+
load: components[c.plan]
|
|
87
|
+
}));
|
|
88
|
+
}
|
|
89
|
+
function clientPageError(error, dev = false) {
|
|
90
|
+
if (isVoidActionError(error)) return {
|
|
91
|
+
status: error.status,
|
|
92
|
+
message: error.message
|
|
93
|
+
};
|
|
94
|
+
return {
|
|
95
|
+
status: 500,
|
|
96
|
+
message: dev && error instanceof Error ? error.message : "Internal Server Error"
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
/** Terminal recovery cannot depend on the failed adapter, imports, or component tree. */
|
|
100
|
+
function showTerminalPageError(url = window.location.href) {
|
|
101
|
+
const target = new URL(url, window.location.href);
|
|
102
|
+
if (target.origin !== window.location.origin) throw new Error("Invalid error page destination");
|
|
103
|
+
try {
|
|
104
|
+
history.replaceState(history.state, "", target.href);
|
|
105
|
+
} catch {}
|
|
106
|
+
const main = document.createElement("main");
|
|
107
|
+
const heading = document.createElement("h1");
|
|
108
|
+
heading.textContent = "Something went wrong";
|
|
109
|
+
main.appendChild(heading);
|
|
110
|
+
for (const [label, href] of [["Try again", target.href], ["Go home", "/"]]) {
|
|
111
|
+
const link = document.createElement("a");
|
|
112
|
+
link.textContent = label;
|
|
113
|
+
link.href = href;
|
|
114
|
+
link.style.marginRight = "1rem";
|
|
115
|
+
main.appendChild(link);
|
|
116
|
+
}
|
|
117
|
+
main.style.cssText = "font-family:system-ui,sans-serif;padding:2rem";
|
|
118
|
+
document.body.replaceChildren(main);
|
|
119
|
+
}
|
|
74
120
|
// src/pages/head-client.ts
|
|
75
121
|
const ATTR = "data-void-head";
|
|
76
122
|
function elementDescriptorSignature(descriptor) {
|
|
@@ -333,7 +379,9 @@ async function fetchPageResponse(fetchUrl, init) {
|
|
|
333
379
|
async function createPageNavigationEngine(config) {
|
|
334
380
|
const { adapter, components, layoutTree, routeMeta, staticPageData: STATIC_PAGE_DATA_ENABLED = false, staticPageDataFastPath: STATIC_PAGE_DATA_FAST_PATH = STATIC_PAGE_DATA_ENABLED, prefetchHoverDelay: PREFETCH_HOVER_DELAY, prefetchDefaultCacheFor: PREFETCH_DEFAULT_CACHE_FOR, prefetchDefaultStrategy: PREFETCH_DEFAULT_STRATEGY = false, cacheVisitedPageData: CACHE_VISITED_PAGE_DATA = false } = config;
|
|
335
381
|
const matchRoute = (url) => config.matchRoute(decodePagePath(new URL(url, "http://x").pathname));
|
|
382
|
+
const hasBoundaries = Object.keys(config.boundaryManifest?.plans ?? {}).length > 0;
|
|
336
383
|
const _prefetchCache = new PrefetchCache();
|
|
384
|
+
const uncachedPayloads = /* @__PURE__ */ new WeakSet();
|
|
337
385
|
let _nextNavigationId = 0;
|
|
338
386
|
let _urlNavigationId = 0;
|
|
339
387
|
let _pendingResource = null;
|
|
@@ -354,6 +402,28 @@ async function createPageNavigationEngine(config) {
|
|
|
354
402
|
const ids = layoutTree[componentId] || [];
|
|
355
403
|
return Promise.all(ids.map(async (id) => (await components[id]()).default));
|
|
356
404
|
}
|
|
405
|
+
async function recoverImportFailure(page, error) {
|
|
406
|
+
for (const boundary of pageBoundarySlots(config.boundaryManifest, page.component, components)) {
|
|
407
|
+
const pageData = {
|
|
408
|
+
...page,
|
|
409
|
+
component: boundary.id,
|
|
410
|
+
props: { error: clientPageError(error, config.dev) },
|
|
411
|
+
deferred: void 0,
|
|
412
|
+
deferredKeys: void 0,
|
|
413
|
+
deferredErrors: void 0,
|
|
414
|
+
errors: null
|
|
415
|
+
};
|
|
416
|
+
try {
|
|
417
|
+
const [component, layouts] = await Promise.all([resolveComponent(boundary.id), resolveLayouts(boundary.id)]);
|
|
418
|
+
return {
|
|
419
|
+
pageData,
|
|
420
|
+
component,
|
|
421
|
+
layouts
|
|
422
|
+
};
|
|
423
|
+
} catch {}
|
|
424
|
+
}
|
|
425
|
+
throw error;
|
|
426
|
+
}
|
|
357
427
|
function getStaticPageDataUrl(url) {
|
|
358
428
|
const { pathname } = new URL(url || "/", window.location.origin);
|
|
359
429
|
const filePath = pathname === "/" ? "index" : pathname.replace(/^\/+/, "");
|
|
@@ -533,7 +603,9 @@ async function createPageNavigationEngine(config) {
|
|
|
533
603
|
}).then(async (r) => {
|
|
534
604
|
if (!r || r.redirected) return null;
|
|
535
605
|
if (!r.headers.get("X-VoidPages")) return (await loadStaticPageData(url, r, void 0, !STATIC_PAGE_DATA_FAST_PATH))?.pageData ?? null;
|
|
536
|
-
|
|
606
|
+
const data = decodePageData(await r.json());
|
|
607
|
+
if (!r.ok || /no-store/i.test(r.headers.get("Cache-Control") ?? "")) uncachedPayloads.add(data);
|
|
608
|
+
return data;
|
|
537
609
|
});
|
|
538
610
|
});
|
|
539
611
|
}
|
|
@@ -577,6 +649,7 @@ async function createPageNavigationEngine(config) {
|
|
|
577
649
|
"X-VoidPages-Version": PAGES_PROTOCOL_VERSION,
|
|
578
650
|
Accept: "application/json"
|
|
579
651
|
};
|
|
652
|
+
if (options._preservedQuery && method !== "GET") headers[PRESERVED_QUERY_HEADER] = options._preservedQuery;
|
|
580
653
|
const fetchOptions = {
|
|
581
654
|
method,
|
|
582
655
|
headers,
|
|
@@ -590,6 +663,7 @@ async function createPageNavigationEngine(config) {
|
|
|
590
663
|
}
|
|
591
664
|
}
|
|
592
665
|
let pageData;
|
|
666
|
+
if (options._refresh) _prefetchCache.flush(fetchUrl, method);
|
|
593
667
|
const cacheEntry = method === "GET" ? _prefetchCache.get(fetchUrl, method) : null;
|
|
594
668
|
if (cacheEntry) {
|
|
595
669
|
const cachedPageData = await cacheEntry.response;
|
|
@@ -600,11 +674,12 @@ async function createPageNavigationEngine(config) {
|
|
|
600
674
|
}
|
|
601
675
|
pageData = clonePageData(cachedPageData);
|
|
602
676
|
deferredRegistry.setup(pageData, true);
|
|
603
|
-
if (!_prefetchCache.isFresh(cacheEntry)) {
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
677
|
+
if (!_prefetchCache.isFresh(cacheEntry)) fetchPrefetchPageData(fetchUrl).then((data) => {
|
|
678
|
+
if (data && typeof data === "object" && !uncachedPayloads.has(data) && _prefetchCache.get(fetchUrl, method) === cacheEntry) {
|
|
679
|
+
_prefetchCache.flush(fetchUrl, method);
|
|
680
|
+
_prefetchCache.set(fetchUrl, method, Promise.resolve(data), PREFETCH_DEFAULT_CACHE_FOR);
|
|
681
|
+
}
|
|
682
|
+
}).catch(() => {});
|
|
608
683
|
} else {
|
|
609
684
|
if (method === "GET" && STATIC_PAGE_DATA_ENABLED && STATIC_PAGE_DATA_FAST_PATH) {
|
|
610
685
|
const staticPageData = await loadStaticPageDataFile(fetchUrl, signal);
|
|
@@ -692,14 +767,33 @@ async function createPageNavigationEngine(config) {
|
|
|
692
767
|
pageData = decodePageData(await response.json());
|
|
693
768
|
deferredRegistry.setup(pageData);
|
|
694
769
|
}
|
|
695
|
-
if (CACHE_VISITED_PAGE_DATA && method === "GET" && response?.ok && response.headers.get("X-VoidPages") && pageData?.component === matchRoute(fetchUrl) && !pageData.deferredKeys) _prefetchCache.set(fetchUrl, method, Promise.resolve(clonePageData(pageData)), PREFETCH_DEFAULT_CACHE_FOR);
|
|
770
|
+
if (CACHE_VISITED_PAGE_DATA && method === "GET" && response?.ok && !/no-store/i.test(response.headers.get("Cache-Control") ?? "") && response.headers.get("X-VoidPages") && pageData?.component === matchRoute(fetchUrl) && !pageData.deferredKeys) _prefetchCache.set(fetchUrl, method, Promise.resolve(clonePageData(pageData)), PREFETCH_DEFAULT_CACHE_FOR);
|
|
696
771
|
}
|
|
697
772
|
if (!pageData) throw new Error("pages: Missing page payload.");
|
|
698
773
|
if (method !== "GET") {
|
|
699
774
|
deferredRegistry.preserveValuesFrom(_committedDeferredRegistry, pageData);
|
|
700
775
|
commitTarget.fetchUrl = withoutActionKey(fetchUrl, pageData.url);
|
|
701
776
|
}
|
|
702
|
-
|
|
777
|
+
if (!components[pageData.component]) {
|
|
778
|
+
window.location.href = url;
|
|
779
|
+
return;
|
|
780
|
+
}
|
|
781
|
+
let component;
|
|
782
|
+
let layouts;
|
|
783
|
+
try {
|
|
784
|
+
[component, layouts] = await Promise.race([matchedComponentId === pageData.component && preloadComponentPromise ? preloadComponentPromise : Promise.all([resolveComponent(pageData.component), resolveLayouts(pageData.component)]), abortSignalPromise(signal)]);
|
|
785
|
+
} catch (error) {
|
|
786
|
+
if (isAbortError(error) || signal.aborted || method !== "GET" || !hasBoundaries) throw error;
|
|
787
|
+
_prefetchCache.flush(fetchUrl);
|
|
788
|
+
try {
|
|
789
|
+
const recovered = await Promise.race([recoverImportFailure(pageData, error), abortSignalPromise(signal)]);
|
|
790
|
+
({pageData, component, layouts} = recovered);
|
|
791
|
+
deferredRegistry.setup(pageData);
|
|
792
|
+
} catch (failure) {
|
|
793
|
+
if (!signal.aborted && !isAbortError(failure)) showTerminalPageError(url);
|
|
794
|
+
throw failure;
|
|
795
|
+
}
|
|
796
|
+
}
|
|
703
797
|
if (id !== _nextNavigationId && signal.aborted) throw abortError();
|
|
704
798
|
return {
|
|
705
799
|
pageData,
|
|
@@ -755,8 +849,17 @@ async function createPageNavigationEngine(config) {
|
|
|
755
849
|
return true;
|
|
756
850
|
};
|
|
757
851
|
}
|
|
758
|
-
|
|
759
|
-
|
|
852
|
+
let initialPageData = readInitialPageData();
|
|
853
|
+
let initialComponent;
|
|
854
|
+
let initialLayouts;
|
|
855
|
+
try {
|
|
856
|
+
[initialComponent, initialLayouts] = await Promise.all([resolveComponent(initialPageData.component), resolveLayouts(initialPageData.component)]);
|
|
857
|
+
} catch (error) {
|
|
858
|
+
if (!hasBoundaries) throw error;
|
|
859
|
+
const recovered = await recoverImportFailure(initialPageData, error);
|
|
860
|
+
({pageData: initialPageData, component: initialComponent, layouts: initialLayouts} = recovered);
|
|
861
|
+
document.getElementById("app")?.setAttribute("data-void-ssr", "false");
|
|
862
|
+
}
|
|
760
863
|
if (CACHE_VISITED_PAGE_DATA && initialPageData.url === _currentFetchUrl && initialPageData.component === matchRoute(_currentFetchUrl) && initialPageData.errors === null && !initialPageData.deferredKeys) _prefetchCache.set(_currentFetchUrl, "GET", Promise.resolve(clonePageData(initialPageData)), PREFETCH_DEFAULT_CACHE_FOR);
|
|
761
864
|
const initialDeferredRegistry = new DeferredRegistry();
|
|
762
865
|
initialDeferredRegistry.setup(initialPageData);
|
|
@@ -822,6 +925,9 @@ async function createPageNavigationEngine(config) {
|
|
|
822
925
|
url,
|
|
823
926
|
fetchUrl: effectiveFetchUrl,
|
|
824
927
|
hash,
|
|
928
|
+
get resolvedUrl() {
|
|
929
|
+
return commitTarget.fetchUrl + commitTarget.hash;
|
|
930
|
+
},
|
|
825
931
|
method,
|
|
826
932
|
options,
|
|
827
933
|
immediate: false,
|
|
@@ -860,7 +966,10 @@ async function createPageNavigationEngine(config) {
|
|
|
860
966
|
const existing = _prefetchCache.get(prefetchUrl, method);
|
|
861
967
|
if (existing) return existing.response;
|
|
862
968
|
const ttl = options.cacheFor ? parseCacheFor(options.cacheFor) : PREFETCH_DEFAULT_CACHE_FOR;
|
|
863
|
-
const fetchPromise = fetchPrefetchPageData(prefetchUrl)
|
|
969
|
+
const fetchPromise = fetchPrefetchPageData(prefetchUrl).then((data) => {
|
|
970
|
+
if (data && typeof data === "object" && uncachedPayloads.has(data) && _prefetchCache.get(prefetchUrl, method)?.response === fetchPromise) _prefetchCache.flush(prefetchUrl, method);
|
|
971
|
+
return data;
|
|
972
|
+
});
|
|
864
973
|
_prefetchCache.set(prefetchUrl, method, fetchPromise, ttl);
|
|
865
974
|
return fetchPromise;
|
|
866
975
|
},
|
|
@@ -1318,7 +1427,15 @@ function refreshPage(router, options = {}) {
|
|
|
1318
1427
|
_refresh: true
|
|
1319
1428
|
});
|
|
1320
1429
|
}
|
|
1321
|
-
async function submitAction(router, url, options) {
|
|
1430
|
+
async function submitAction(router, url, options, errorOptions) {
|
|
1431
|
+
const page = withPageQuery(url, window.location);
|
|
1432
|
+
if (page.preserved) {
|
|
1433
|
+
url = page.url;
|
|
1434
|
+
options = {
|
|
1435
|
+
...options,
|
|
1436
|
+
_preservedQuery: page.preserved
|
|
1437
|
+
};
|
|
1438
|
+
}
|
|
1322
1439
|
try {
|
|
1323
1440
|
const pageData = await router.visit(url, options);
|
|
1324
1441
|
if (typeof pageData === "object" && pageData !== null && "errors" in pageData && pageData.errors) return {
|
|
@@ -1335,7 +1452,7 @@ async function submitAction(router, url, options) {
|
|
|
1335
1452
|
pageData
|
|
1336
1453
|
};
|
|
1337
1454
|
} catch (error) {
|
|
1338
|
-
if (isCallSiteActionError(error)) return {
|
|
1455
|
+
if (isCallSiteActionError(error) || errorOptions?.throwOnError === false && isVoidActionError(error)) return {
|
|
1339
1456
|
ok: false,
|
|
1340
1457
|
error
|
|
1341
1458
|
};
|
|
@@ -1529,4 +1646,4 @@ function initIslands(islands, hydrateFn) {
|
|
|
1529
1646
|
if (loader) scheduleHydration(el, loader, props, strategy, hydrate);
|
|
1530
1647
|
});
|
|
1531
1648
|
}
|
|
1532
|
-
export { VoidActionError, categorizeActionError, cloneFormValue, createActionClient, createPageNavigationEngine, createRouterFacade, createSsrRouter, createVoidRouter, formErrorMessage, formRetryMessage, formSubmissionBlocked, getValidationErrors, handleLinkClick, hasFiles, idleNavigationState, initIslands, interpolateRouteParams, isAbortError, isCallSiteActionError, isEqualFormValue, isFile, isFormResetOptions, isModifiedEvent, isVoidActionError, linkActiveAttributes, linkPendingAttributes, linkPrefetchStrategies, mergeDataIntoHref, objectToFormData, observeLinkVisible, parseFormResetArgs, prefetchLink, refreshPage, resolveLink, scheduleFormRetry, scheduleHydration, ssrProxy, submitAction, submitIslandAction, toUrlString };
|
|
1649
|
+
export { VoidActionError, categorizeActionError, clientPageError, cloneFormValue, createActionClient, createPageNavigationEngine, createRouterFacade, createSsrRouter, createVoidRouter, formErrorMessage, formRetryMessage, formSubmissionBlocked, getValidationErrors, handleLinkClick, hasFiles, idleNavigationState, initIslands, interpolateRouteParams, isAbortError, isCallSiteActionError, isEqualFormValue, isFile, isFormResetOptions, isModifiedEvent, isVoidActionError, linkActiveAttributes, linkPendingAttributes, linkPrefetchStrategies, mergeDataIntoHref, objectToFormData, observeLinkVisible, pageBoundarySlots, parseFormResetArgs, prefetchLink, refreshPage, resolveLink, scheduleFormRetry, scheduleHydration, showTerminalPageError, ssrProxy, submitAction, submitIslandAction, toUrlString };
|
package/dist/pages/index.d.mts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import "../config-CTlUaXWZ.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { a as PageDefinition, c as PageScanResult, i as NamedLayoutDefinition, l as RouteEnvironment, n as ErrorPageProps, o as PageError, r as LayoutDefinition } from "../types-IPut3_Yx.mjs";
|
|
3
3
|
import { a as renderHtmlAttrs, i as renderHeadToString, n as HeadDescriptor, o as resolveHead, r as renderBodyAttrs, t as HeadConfig } from "../head-MeF_5M_3.mjs";
|
|
4
4
|
import { a as LinkPrefetchValue, n as CacheForInput } from "../prefetch-NdNeubbH.mjs";
|
|
5
5
|
import { a as serializePageData } from "../serialize-DN-envGQ.mjs";
|
|
6
|
+
import { t as BoundaryManifest } from "../boundary-plans-CRmWH68v.mjs";
|
|
6
7
|
import { Plugin, UserConfig } from "vite";
|
|
7
8
|
type ProjectPaths = {
|
|
8
9
|
root: string;
|
|
@@ -101,4 +102,4 @@ type CreatePagesPluginOptions = {
|
|
|
101
102
|
};
|
|
102
103
|
/** Shared Vite lifecycle; adapters own their generated code and environment configuration. */
|
|
103
104
|
export declare function createPagesPlugin(pagesDir: string, options: CreatePagesPluginOptions): Plugin;
|
|
104
|
-
export { type HeadConfig, type HeadDescriptor, type LayoutDefinition, type NamedLayoutDefinition, type PageDefinition, type PageScanResult, type PagesPluginOptions, type PrefetchConfig, type StaticPageDataBuildOptions, renderBodyAttrs, renderHeadToString, renderHtmlAttrs, resolveHead, serializePageData };
|
|
105
|
+
export { type BoundaryManifest, type ErrorPageProps, type HeadConfig, type HeadDescriptor, type LayoutDefinition, type NamedLayoutDefinition, type PageDefinition, type PageError, type PageScanResult, type PagesPluginOptions, type PrefetchConfig, type StaticPageDataBuildOptions, renderBodyAttrs, renderHeadToString, renderHtmlAttrs, resolveHead, serializePageData };
|