everything-dev 1.53.2 → 2.0.0-rc.1
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/README.md +2 -11
- package/dist/_virtual/_rolldown/runtime.cjs +17 -2
- package/dist/_virtual/_rolldown/runtime.mjs +36 -0
- package/dist/api/auth-middleware.cjs +161 -0
- package/dist/api/auth-middleware.cjs.map +1 -0
- package/dist/api/auth-middleware.d.cts +69 -0
- package/dist/api/auth-middleware.d.mts +69 -0
- package/dist/api/auth-middleware.mjs +160 -0
- package/dist/api/auth-middleware.mjs.map +1 -0
- package/dist/api-contract.cjs +250 -62
- package/dist/api-contract.cjs.map +1 -1
- package/dist/api-contract.mjs +246 -65
- package/dist/api-contract.mjs.map +1 -1
- package/dist/app.cjs +99 -26
- package/dist/app.cjs.map +1 -1
- package/dist/app.d.cts +3 -0
- package/dist/app.d.mts +3 -0
- package/dist/app.mjs +100 -27
- package/dist/app.mjs.map +1 -1
- package/dist/auth-login.cjs +163 -0
- package/dist/auth-login.cjs.map +1 -0
- package/dist/auth-login.mjs +162 -0
- package/dist/auth-login.mjs.map +1 -0
- package/dist/auth-session.cjs +64 -0
- package/dist/auth-session.cjs.map +1 -0
- package/dist/auth-session.mjs +58 -0
- package/dist/auth-session.mjs.map +1 -0
- package/dist/auth-types-gen.cjs +0 -1
- package/dist/auth-types-gen.cjs.map +1 -1
- package/dist/build.cjs +37 -173
- package/dist/build.cjs.map +1 -1
- package/dist/build.mjs +37 -171
- package/dist/build.mjs.map +1 -1
- package/dist/bundle-cache.cjs +74 -0
- package/dist/bundle-cache.cjs.map +1 -0
- package/dist/bundle-cache.d.cts +27 -0
- package/dist/bundle-cache.d.mts +27 -0
- package/dist/bundle-cache.mjs +68 -0
- package/dist/bundle-cache.mjs.map +1 -0
- package/dist/bundle-fs-resolve.cjs +209 -0
- package/dist/bundle-fs-resolve.cjs.map +1 -0
- package/dist/bundle-fs-resolve.d.cts +76 -0
- package/dist/bundle-fs-resolve.d.mts +76 -0
- package/dist/bundle-fs-resolve.mjs +202 -0
- package/dist/bundle-fs-resolve.mjs.map +1 -0
- package/dist/cdn-deploy.cjs +126 -0
- package/dist/cdn-deploy.cjs.map +1 -0
- package/dist/cdn-deploy.mjs +124 -0
- package/dist/cdn-deploy.mjs.map +1 -0
- package/dist/cli/db-doctor.cjs +19 -19
- package/dist/cli/db-doctor.cjs.map +1 -1
- package/dist/cli/db-doctor.mjs +18 -18
- package/dist/cli/db-doctor.mjs.map +1 -1
- package/dist/cli/db-repair.cjs +9 -32
- package/dist/cli/db-repair.cjs.map +1 -1
- package/dist/cli/db-repair.mjs +9 -32
- package/dist/cli/db-repair.mjs.map +1 -1
- package/dist/cli/framework-version.cjs +7 -3
- package/dist/cli/framework-version.cjs.map +1 -1
- package/dist/cli/framework-version.mjs +7 -3
- package/dist/cli/framework-version.mjs.map +1 -1
- package/dist/cli/infra.cjs +159 -251
- package/dist/cli/infra.cjs.map +1 -1
- package/dist/cli/infra.mjs +154 -242
- package/dist/cli/infra.mjs.map +1 -1
- package/dist/cli/init.cjs +627 -199
- package/dist/cli/init.cjs.map +1 -1
- package/dist/cli/init.d.cts +61 -8
- package/dist/cli/init.d.mts +61 -8
- package/dist/cli/init.mjs +616 -197
- package/dist/cli/init.mjs.map +1 -1
- package/dist/cli/parse.cjs +8 -7
- package/dist/cli/parse.cjs.map +1 -1
- package/dist/cli/parse.mjs +9 -7
- package/dist/cli/parse.mjs.map +1 -1
- package/dist/cli/prompts.cjs +14 -1
- package/dist/cli/prompts.cjs.map +1 -1
- package/dist/cli/prompts.mjs +14 -1
- package/dist/cli/prompts.mjs.map +1 -1
- package/dist/cli/prune.cjs +220 -0
- package/dist/cli/prune.cjs.map +1 -0
- package/dist/cli/prune.mjs +220 -0
- package/dist/cli/prune.mjs.map +1 -0
- package/dist/cli/snapshot.cjs +2 -1
- package/dist/cli/snapshot.cjs.map +1 -1
- package/dist/cli/snapshot.mjs +2 -1
- package/dist/cli/snapshot.mjs.map +1 -1
- package/dist/cli/status.cjs +5 -4
- package/dist/cli/status.cjs.map +1 -1
- package/dist/cli/status.mjs +6 -5
- package/dist/cli/status.mjs.map +1 -1
- package/dist/cli/sync.cjs +156 -58
- package/dist/cli/sync.cjs.map +1 -1
- package/dist/cli/sync.mjs +158 -63
- package/dist/cli/sync.mjs.map +1 -1
- package/dist/cli/timing.cjs +0 -1
- package/dist/cli/timing.cjs.map +1 -1
- package/dist/cli/upgrade.cjs +95 -69
- package/dist/cli/upgrade.cjs.map +1 -1
- package/dist/cli/upgrade.mjs +97 -72
- package/dist/cli/upgrade.mjs.map +1 -1
- package/dist/cli/utils/helpers.cjs.map +1 -1
- package/dist/cli.cjs +320 -72
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.mjs +316 -68
- package/dist/cli.mjs.map +1 -1
- package/dist/code-artifacts.cjs +76 -8
- package/dist/code-artifacts.cjs.map +1 -1
- package/dist/code-artifacts.mjs +76 -10
- package/dist/code-artifacts.mjs.map +1 -1
- package/dist/commands/build.cjs +65 -0
- package/dist/commands/build.cjs.map +1 -0
- package/dist/commands/build.mjs +65 -0
- package/dist/commands/build.mjs.map +1 -0
- package/dist/commands/config.cjs +77 -0
- package/dist/commands/config.cjs.map +1 -0
- package/dist/commands/config.d.cts +8 -0
- package/dist/commands/config.d.mts +8 -0
- package/dist/commands/config.mjs +74 -0
- package/dist/commands/config.mjs.map +1 -0
- package/dist/commands/db.cjs +107 -0
- package/dist/commands/db.cjs.map +1 -0
- package/dist/commands/db.mjs +107 -0
- package/dist/commands/db.mjs.map +1 -0
- package/dist/commands/deploy.cjs +336 -0
- package/dist/commands/deploy.cjs.map +1 -0
- package/dist/commands/deploy.mjs +334 -0
- package/dist/commands/deploy.mjs.map +1 -0
- package/dist/commands/dev.cjs +75 -0
- package/dist/commands/dev.cjs.map +1 -0
- package/dist/commands/dev.mjs +73 -0
- package/dist/commands/dev.mjs.map +1 -0
- package/dist/commands/init.cjs +234 -0
- package/dist/commands/init.cjs.map +1 -0
- package/dist/commands/init.mjs +231 -0
- package/dist/commands/init.mjs.map +1 -0
- package/dist/commands/keys.cjs +255 -0
- package/dist/commands/keys.cjs.map +1 -0
- package/dist/commands/keys.mjs +253 -0
- package/dist/commands/keys.mjs.map +1 -0
- package/dist/commands/ops.cjs +199 -0
- package/dist/commands/ops.cjs.map +1 -0
- package/dist/commands/ops.mjs +197 -0
- package/dist/commands/ops.mjs.map +1 -0
- package/dist/commands/plugins.cjs +211 -0
- package/dist/commands/plugins.cjs.map +1 -0
- package/dist/commands/plugins.mjs +211 -0
- package/dist/commands/plugins.mjs.map +1 -0
- package/dist/commands/shared.cjs +8 -0
- package/dist/commands/shared.cjs.map +1 -0
- package/dist/commands/shared.d.cts +6 -0
- package/dist/commands/shared.d.mts +6 -0
- package/dist/commands/shared.mjs +8 -0
- package/dist/commands/shared.mjs.map +1 -0
- package/dist/commands/upgrade.cjs +325 -0
- package/dist/commands/upgrade.cjs.map +1 -0
- package/dist/commands/upgrade.mjs +323 -0
- package/dist/commands/upgrade.mjs.map +1 -0
- package/dist/components/dev-render.cjs +340 -0
- package/dist/components/dev-render.cjs.map +1 -0
- package/dist/components/dev-render.mjs +332 -0
- package/dist/components/dev-render.mjs.map +1 -0
- package/dist/config.cjs +460 -221
- package/dist/config.cjs.map +1 -1
- package/dist/config.d.cts +491 -48
- package/dist/config.d.mts +491 -48
- package/dist/config.mjs +439 -212
- package/dist/config.mjs.map +1 -1
- package/dist/contract.cjs +327 -50
- package/dist/contract.cjs.map +1 -1
- package/dist/contract.d.cts +1951 -1062
- package/dist/contract.d.mts +1951 -1062
- package/dist/contract.meta.cjs +107 -12
- package/dist/contract.meta.cjs.map +1 -1
- package/dist/contract.meta.d.cts +166 -8
- package/dist/contract.meta.d.mts +166 -8
- package/dist/contract.meta.mjs +107 -11
- package/dist/contract.meta.mjs.map +1 -1
- package/dist/contract.mjs +580 -327
- package/dist/contract.mjs.map +1 -1
- package/dist/dag.cjs +5 -3
- package/dist/dag.cjs.map +1 -1
- package/dist/dag.mjs +6 -3
- package/dist/dag.mjs.map +1 -1
- package/dist/db/binding.cjs +80 -0
- package/dist/db/binding.cjs.map +1 -0
- package/dist/db/binding.d.cts +39 -0
- package/dist/db/binding.d.mts +39 -0
- package/dist/db/binding.mjs +78 -0
- package/dist/db/binding.mjs.map +1 -0
- package/dist/db/bindings.cjs +78 -0
- package/dist/db/bindings.cjs.map +1 -0
- package/dist/db/bindings.d.cts +34 -0
- package/dist/db/bindings.d.mts +34 -0
- package/dist/db/bindings.mjs +76 -0
- package/dist/db/bindings.mjs.map +1 -0
- package/dist/db/core.cjs +204 -0
- package/dist/db/core.cjs.map +1 -0
- package/dist/db/core.d.cts +69 -0
- package/dist/db/core.d.mts +69 -0
- package/dist/db/core.mjs +192 -0
- package/dist/db/core.mjs.map +1 -0
- package/dist/db/driver.cjs +167 -0
- package/dist/db/driver.cjs.map +1 -0
- package/dist/db/driver.d.cts +50 -0
- package/dist/db/driver.d.mts +50 -0
- package/dist/db/driver.mjs +165 -0
- package/dist/db/driver.mjs.map +1 -0
- package/dist/db/drizzle-kit.cjs +177 -0
- package/dist/db/drizzle-kit.cjs.map +1 -0
- package/dist/db/drizzle-kit.d.cts +25 -0
- package/dist/db/drizzle-kit.d.mts +25 -0
- package/dist/db/drizzle-kit.mjs +175 -0
- package/dist/db/drizzle-kit.mjs.map +1 -0
- package/dist/db/errors.cjs +27 -0
- package/dist/db/errors.cjs.map +1 -0
- package/dist/db/errors.d.cts +16 -0
- package/dist/db/errors.d.mts +16 -0
- package/dist/db/errors.mjs +26 -0
- package/dist/db/errors.mjs.map +1 -0
- package/dist/db/identity.cjs +55 -0
- package/dist/db/identity.cjs.map +1 -0
- package/dist/db/identity.d.cts +40 -0
- package/dist/db/identity.d.mts +40 -0
- package/dist/db/identity.mjs +53 -0
- package/dist/db/identity.mjs.map +1 -0
- package/dist/db/index.cjs +43 -0
- package/dist/db/index.d.cts +9 -0
- package/dist/db/index.d.mts +9 -0
- package/dist/db/index.mjs +10 -0
- package/dist/db/run-migrations.cjs +343 -0
- package/dist/db/run-migrations.cjs.map +1 -0
- package/dist/db/run-migrations.d.cts +87 -0
- package/dist/db/run-migrations.d.mts +87 -0
- package/dist/db/run-migrations.mjs +341 -0
- package/dist/db/run-migrations.mjs.map +1 -0
- package/dist/delegate-signer.cjs +85 -0
- package/dist/delegate-signer.cjs.map +1 -0
- package/dist/delegate-signer.mjs +84 -0
- package/dist/delegate-signer.mjs.map +1 -0
- package/dist/deploy-diff.cjs +119 -0
- package/dist/deploy-diff.cjs.map +1 -0
- package/dist/deploy-diff.mjs +109 -0
- package/dist/deploy-diff.mjs.map +1 -0
- package/dist/descriptor/constructors.cjs +49 -0
- package/dist/descriptor/constructors.cjs.map +1 -0
- package/dist/descriptor/constructors.d.cts +27 -0
- package/dist/descriptor/constructors.d.mts +27 -0
- package/dist/descriptor/constructors.mjs +45 -0
- package/dist/descriptor/constructors.mjs.map +1 -0
- package/dist/descriptor/index.cjs +24 -0
- package/dist/descriptor/index.d.cts +5 -0
- package/dist/descriptor/index.d.mts +5 -0
- package/dist/descriptor/index.mjs +6 -0
- package/dist/descriptor/resolve.cjs +258 -0
- package/dist/descriptor/resolve.cjs.map +1 -0
- package/dist/descriptor/resolve.d.cts +50 -0
- package/dist/descriptor/resolve.d.mts +50 -0
- package/dist/descriptor/resolve.mjs +252 -0
- package/dist/descriptor/resolve.mjs.map +1 -0
- package/dist/descriptor/schema.cjs +109 -0
- package/dist/descriptor/schema.cjs.map +1 -0
- package/dist/descriptor/schema.d.cts +217 -0
- package/dist/descriptor/schema.d.mts +217 -0
- package/dist/descriptor/schema.mjs +102 -0
- package/dist/descriptor/schema.mjs.map +1 -0
- package/dist/descriptor/serialize.cjs +45 -0
- package/dist/descriptor/serialize.cjs.map +1 -0
- package/dist/descriptor/serialize.d.cts +7 -0
- package/dist/descriptor/serialize.d.mts +7 -0
- package/dist/descriptor/serialize.mjs +45 -0
- package/dist/descriptor/serialize.mjs.map +1 -0
- package/dist/dev-log-pipeline.cjs +273 -0
- package/dist/dev-log-pipeline.cjs.map +1 -0
- package/dist/dev-log-pipeline.mjs +267 -0
- package/dist/dev-log-pipeline.mjs.map +1 -0
- package/dist/dev-logs.cjs +39 -8
- package/dist/dev-logs.cjs.map +1 -1
- package/dist/dev-logs.mjs +37 -9
- package/dist/dev-logs.mjs.map +1 -1
- package/dist/dev-program.cjs +405 -0
- package/dist/dev-program.cjs.map +1 -0
- package/dist/dev-program.d.cts +10 -0
- package/dist/dev-program.d.mts +10 -0
- package/dist/dev-program.mjs +395 -0
- package/dist/dev-program.mjs.map +1 -0
- package/dist/dev-session-data.d.cts +27 -0
- package/dist/dev-session-data.d.mts +27 -0
- package/dist/dev-session.cjs +178 -105
- package/dist/dev-session.cjs.map +1 -1
- package/dist/dev-session.mjs +180 -105
- package/dist/dev-session.mjs.map +1 -1
- package/dist/env/process-env.cjs +16 -0
- package/dist/env/process-env.cjs.map +1 -0
- package/dist/env/process-env.mjs +13 -0
- package/dist/env/process-env.mjs.map +1 -0
- package/dist/env/project-env.cjs +144 -0
- package/dist/env/project-env.cjs.map +1 -0
- package/dist/env/project-env.d.cts +1 -0
- package/dist/env/project-env.d.mts +1 -0
- package/dist/env/project-env.mjs +132 -0
- package/dist/env/project-env.mjs.map +1 -0
- package/dist/fastkv.cjs +59 -12
- package/dist/fastkv.cjs.map +1 -1
- package/dist/fastkv.d.cts +42 -6
- package/dist/fastkv.d.mts +42 -6
- package/dist/fastkv.mjs +58 -13
- package/dist/fastkv.mjs.map +1 -1
- package/dist/fingerprint.cjs +57 -0
- package/dist/fingerprint.cjs.map +1 -0
- package/dist/fingerprint.d.cts +14 -0
- package/dist/fingerprint.d.mts +14 -0
- package/dist/fingerprint.mjs +55 -0
- package/dist/fingerprint.mjs.map +1 -0
- package/dist/http-client.cjs +17 -17
- package/dist/http-client.cjs.map +1 -1
- package/dist/http-client.mjs +17 -17
- package/dist/http-client.mjs.map +1 -1
- package/dist/image-deploy.cjs +186 -0
- package/dist/image-deploy.cjs.map +1 -0
- package/dist/image-deploy.mjs +182 -0
- package/dist/image-deploy.mjs.map +1 -0
- package/dist/index.cjs +66 -18
- package/dist/index.d.cts +8 -7
- package/dist/index.d.mts +8 -7
- package/dist/index.mjs +6 -5
- package/dist/infra/docker.cjs +77 -0
- package/dist/infra/docker.cjs.map +1 -0
- package/dist/infra/docker.d.cts +10 -0
- package/dist/infra/docker.d.mts +10 -0
- package/dist/infra/docker.mjs +69 -0
- package/dist/infra/docker.mjs.map +1 -0
- package/dist/infra/materializer.cjs +74 -0
- package/dist/infra/materializer.cjs.map +1 -0
- package/dist/infra/materializer.mjs +70 -0
- package/dist/infra/materializer.mjs.map +1 -0
- package/dist/infra/planner.cjs +135 -103
- package/dist/infra/planner.cjs.map +1 -1
- package/dist/infra/planner.mjs +137 -104
- package/dist/infra/planner.mjs.map +1 -1
- package/dist/infra/port-ownership.cjs +57 -0
- package/dist/infra/port-ownership.cjs.map +1 -0
- package/dist/infra/port-ownership.mjs +57 -0
- package/dist/infra/port-ownership.mjs.map +1 -0
- package/dist/infra/preflight.cjs +45 -33
- package/dist/infra/preflight.cjs.map +1 -1
- package/dist/infra/preflight.d.cts +1 -0
- package/dist/infra/preflight.d.mts +1 -0
- package/dist/infra/preflight.mjs +46 -34
- package/dist/infra/preflight.mjs.map +1 -1
- package/dist/infra/types.cjs.map +1 -1
- package/dist/infra/types.d.cts +2 -0
- package/dist/infra/types.d.mts +2 -0
- package/dist/infra/types.mjs.map +1 -1
- package/dist/integrity.cjs +50 -61
- package/dist/integrity.cjs.map +1 -1
- package/dist/integrity.d.cts +16 -10
- package/dist/integrity.d.mts +16 -10
- package/dist/integrity.mjs +50 -59
- package/dist/integrity.mjs.map +1 -1
- package/dist/internal/manifest-normalizer.cjs +8 -2
- package/dist/internal/manifest-normalizer.cjs.map +1 -1
- package/dist/internal/manifest-normalizer.mjs +9 -3
- package/dist/internal/manifest-normalizer.mjs.map +1 -1
- package/dist/merge.cjs +19 -1
- package/dist/merge.cjs.map +1 -1
- package/dist/merge.d.cts +1 -1
- package/dist/merge.d.mts +1 -1
- package/dist/merge.mjs +19 -2
- package/dist/merge.mjs.map +1 -1
- package/dist/mf.cjs +190 -3
- package/dist/mf.cjs.map +1 -1
- package/dist/mf.d.cts +24 -2
- package/dist/mf.d.mts +24 -2
- package/dist/mf.mjs +189 -4
- package/dist/mf.mjs.map +1 -1
- package/dist/near-cli.cjs +59 -91
- package/dist/near-cli.cjs.map +1 -1
- package/dist/near-cli.mjs +58 -90
- package/dist/near-cli.mjs.map +1 -1
- package/dist/near-signer.cjs +73 -0
- package/dist/near-signer.cjs.map +1 -0
- package/dist/near-signer.mjs +70 -0
- package/dist/near-signer.mjs.map +1 -0
- package/dist/network.cjs +0 -1
- package/dist/network.cjs.map +1 -1
- package/dist/orchestrator.cjs +256 -87
- package/dist/orchestrator.cjs.map +1 -1
- package/dist/orchestrator.mjs +248 -87
- package/dist/orchestrator.mjs.map +1 -1
- package/dist/platform-deploy.cjs +81 -0
- package/dist/platform-deploy.cjs.map +1 -0
- package/dist/platform-deploy.mjs +80 -0
- package/dist/platform-deploy.mjs.map +1 -0
- package/dist/plugin.cjs +54 -1389
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.d.cts +6 -896
- package/dist/plugin.d.mts +6 -896
- package/dist/plugin.mjs +53 -1387
- package/dist/plugin.mjs.map +1 -1
- package/dist/process-kill.cjs +44 -0
- package/dist/process-kill.cjs.map +1 -0
- package/dist/process-kill.mjs +43 -0
- package/dist/process-kill.mjs.map +1 -0
- package/dist/process-registry.cjs +64 -9
- package/dist/process-registry.cjs.map +1 -1
- package/dist/process-registry.mjs +61 -10
- package/dist/process-registry.mjs.map +1 -1
- package/dist/progress.cjs +45 -0
- package/dist/progress.cjs.map +1 -0
- package/dist/progress.d.cts +13 -0
- package/dist/progress.d.mts +13 -0
- package/dist/progress.mjs +42 -0
- package/dist/progress.mjs.map +1 -0
- package/dist/publish.cjs +513 -79
- package/dist/publish.cjs.map +1 -1
- package/dist/publish.mjs +515 -82
- package/dist/publish.mjs.map +1 -1
- package/dist/registry-use.cjs +41 -0
- package/dist/registry-use.cjs.map +1 -0
- package/dist/registry-use.mjs +40 -0
- package/dist/registry-use.mjs.map +1 -0
- package/dist/resolution/session.cjs +335 -0
- package/dist/resolution/session.cjs.map +1 -0
- package/dist/resolution/session.d.cts +105 -0
- package/dist/resolution/session.d.mts +105 -0
- package/dist/resolution/session.mjs +331 -0
- package/dist/resolution/session.mjs.map +1 -0
- package/dist/rollback.cjs +131 -0
- package/dist/rollback.cjs.map +1 -0
- package/dist/rollback.mjs +128 -0
- package/dist/rollback.mjs.map +1 -0
- package/dist/sdk.cjs +7 -7
- package/dist/sdk.d.cts +3 -3
- package/dist/sdk.d.mts +3 -3
- package/dist/sdk.mjs +2 -2
- package/dist/service-descriptor.cjs +67 -34
- package/dist/service-descriptor.cjs.map +1 -1
- package/dist/service-descriptor.d.cts +4 -1
- package/dist/service-descriptor.d.mts +3 -0
- package/dist/service-descriptor.mjs +63 -35
- package/dist/service-descriptor.mjs.map +1 -1
- package/dist/shared-deps.cjs +17 -16
- package/dist/shared-deps.cjs.map +1 -1
- package/dist/shared-deps.mjs +17 -16
- package/dist/shared-deps.mjs.map +1 -1
- package/dist/start-config-source.cjs +24 -0
- package/dist/start-config-source.cjs.map +1 -0
- package/dist/start-config-source.d.cts +29 -0
- package/dist/start-config-source.d.mts +29 -0
- package/dist/start-config-source.mjs +22 -0
- package/dist/start-config-source.mjs.map +1 -0
- package/dist/storage-upload.cjs +145 -0
- package/dist/storage-upload.cjs.map +1 -0
- package/dist/storage-upload.mjs +143 -0
- package/dist/storage-upload.mjs.map +1 -0
- package/dist/types.cjs +126 -20
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +867 -585
- package/dist/types.d.mts +867 -585
- package/dist/types.mjs +307 -208
- package/dist/types.mjs.map +1 -1
- package/dist/ui/api.cjs +105 -0
- package/dist/ui/api.cjs.map +1 -0
- package/dist/ui/api.d.cts +31 -0
- package/dist/ui/api.d.mts +31 -0
- package/dist/ui/api.mjs +99 -0
- package/dist/ui/api.mjs.map +1 -0
- package/dist/ui/auth-guards.cjs +50 -0
- package/dist/ui/auth-guards.cjs.map +1 -0
- package/dist/ui/auth-guards.d.cts +39 -0
- package/dist/ui/auth-guards.d.mts +39 -0
- package/dist/ui/auth-guards.mjs +48 -0
- package/dist/ui/auth-guards.mjs.map +1 -0
- package/dist/ui/auth.cjs +197 -0
- package/dist/ui/auth.cjs.map +1 -0
- package/dist/ui/auth.d.cts +56 -0
- package/dist/ui/auth.d.mts +56 -0
- package/dist/ui/auth.mjs +179 -0
- package/dist/ui/auth.mjs.map +1 -0
- package/dist/ui/entry.cjs +16 -0
- package/dist/ui/entry.cjs.map +1 -0
- package/dist/ui/entry.d.cts +12 -0
- package/dist/ui/entry.d.mts +12 -0
- package/dist/ui/entry.mjs +15 -0
- package/dist/ui/entry.mjs.map +1 -0
- package/dist/ui/head.cjs +14 -7
- package/dist/ui/head.cjs.map +1 -1
- package/dist/ui/head.mjs +15 -7
- package/dist/ui/head.mjs.map +1 -1
- package/dist/ui/hydrate.cjs +265 -0
- package/dist/ui/hydrate.cjs.map +1 -0
- package/dist/ui/hydrate.d.cts +48 -0
- package/dist/ui/hydrate.d.mts +48 -0
- package/dist/ui/hydrate.mjs +263 -0
- package/dist/ui/hydrate.mjs.map +1 -0
- package/dist/ui/i18n.cjs +153 -0
- package/dist/ui/i18n.cjs.map +1 -0
- package/dist/ui/i18n.d.cts +29 -0
- package/dist/ui/i18n.d.mts +29 -0
- package/dist/ui/i18n.mjs +140 -0
- package/dist/ui/i18n.mjs.map +1 -0
- package/dist/ui/index.cjs +19 -1
- package/dist/ui/index.d.cts +6 -3
- package/dist/ui/index.d.mts +6 -3
- package/dist/ui/index.mjs +5 -2
- package/dist/ui/locale.cjs +53 -0
- package/dist/ui/locale.cjs.map +1 -0
- package/dist/ui/locale.d.cts +18 -0
- package/dist/ui/locale.d.mts +18 -0
- package/dist/ui/locale.mjs +49 -0
- package/dist/ui/locale.mjs.map +1 -0
- package/dist/ui/manifest/index.cjs +25 -0
- package/dist/ui/manifest/index.cjs.map +1 -0
- package/dist/ui/manifest/index.d.cts +9 -0
- package/dist/ui/manifest/index.d.mts +9 -0
- package/dist/ui/manifest/index.mjs +13 -0
- package/dist/ui/manifest/index.mjs.map +1 -0
- package/dist/ui/manifest-generator.cjs +8 -0
- package/dist/ui/manifest-generator.d.cts +1 -0
- package/dist/ui/manifest-generator.d.mts +1 -0
- package/dist/ui/manifest-generator.mjs +3 -0
- package/dist/ui/message-catalogs.cjs +8 -0
- package/dist/ui/message-catalogs.cjs.map +1 -0
- package/dist/ui/message-catalogs.d.cts +5 -0
- package/dist/ui/message-catalogs.d.mts +5 -0
- package/dist/ui/message-catalogs.mjs +8 -0
- package/dist/ui/message-catalogs.mjs.map +1 -0
- package/dist/ui/metadata.cjs +0 -1
- package/dist/ui/metadata.cjs.map +1 -1
- package/dist/ui/metadata.d.cts +1 -1
- package/dist/ui/metadata.d.mts +1 -1
- package/dist/ui/plugin-path.cjs +37 -0
- package/dist/ui/plugin-path.cjs.map +1 -0
- package/dist/ui/plugin-path.d.cts +25 -0
- package/dist/ui/plugin-path.d.mts +25 -0
- package/dist/ui/plugin-path.mjs +35 -0
- package/dist/ui/plugin-path.mjs.map +1 -0
- package/dist/ui/router-client.cjs +61 -0
- package/dist/ui/router-client.cjs.map +1 -0
- package/dist/ui/router-client.d.cts +20 -0
- package/dist/ui/router-client.d.mts +20 -0
- package/dist/ui/router-client.mjs +60 -0
- package/dist/ui/router-client.mjs.map +1 -0
- package/dist/ui/router-defaults.cjs +48 -0
- package/dist/ui/router-defaults.cjs.map +1 -0
- package/dist/ui/router-defaults.d.cts +8 -0
- package/dist/ui/router-defaults.d.mts +8 -0
- package/dist/ui/router-defaults.mjs +45 -0
- package/dist/ui/router-defaults.mjs.map +1 -0
- package/dist/ui/router-error.cjs +70 -0
- package/dist/ui/router-error.cjs.map +1 -0
- package/dist/ui/router-error.d.cts +19 -0
- package/dist/ui/router-error.d.mts +19 -0
- package/dist/ui/router-error.mjs +69 -0
- package/dist/ui/router-error.mjs.map +1 -0
- package/dist/ui/router-server.cjs +153 -0
- package/dist/ui/router-server.cjs.map +1 -0
- package/dist/ui/router-server.d.cts +38 -0
- package/dist/ui/router-server.d.mts +38 -0
- package/dist/ui/router-server.mjs +152 -0
- package/dist/ui/router-server.mjs.map +1 -0
- package/dist/ui/router.cjs +4 -16
- package/dist/ui/router.cjs.map +1 -1
- package/dist/ui/router.mjs +4 -15
- package/dist/ui/router.mjs.map +1 -1
- package/dist/ui/runtime.cjs +5 -1
- package/dist/ui/runtime.cjs.map +1 -1
- package/dist/ui/runtime.d.cts +2 -1
- package/dist/ui/runtime.d.mts +2 -1
- package/dist/ui/runtime.mjs +5 -1
- package/dist/ui/runtime.mjs.map +1 -1
- package/dist/ui/slot.cjs +34 -0
- package/dist/ui/slot.cjs.map +1 -0
- package/dist/ui/slot.d.cts +43 -0
- package/dist/ui/slot.d.mts +43 -0
- package/dist/ui/slot.mjs +34 -0
- package/dist/ui/slot.mjs.map +1 -0
- package/dist/ui/tenant.cjs +300 -0
- package/dist/ui/tenant.cjs.map +1 -0
- package/dist/ui/tenant.d.cts +122 -0
- package/dist/ui/tenant.d.mts +122 -0
- package/dist/ui/tenant.mjs +279 -0
- package/dist/ui/tenant.mjs.map +1 -0
- package/dist/ui/types.d.cts +32 -2
- package/dist/ui/types.d.mts +32 -2
- package/dist/ui/version-check.cjs +47 -0
- package/dist/ui/version-check.cjs.map +1 -0
- package/dist/ui/version-check.d.cts +23 -0
- package/dist/ui/version-check.d.mts +23 -0
- package/dist/ui/version-check.mjs +46 -0
- package/dist/ui/version-check.mjs.map +1 -0
- package/dist/utils/banner.cjs +2 -2
- package/dist/utils/banner.cjs.map +1 -1
- package/dist/utils/banner.mjs +2 -2
- package/dist/utils/banner.mjs.map +1 -1
- package/dist/utils/linkify.cjs +1 -1
- package/dist/utils/linkify.cjs.map +1 -1
- package/dist/utils/linkify.mjs +1 -0
- package/dist/utils/linkify.mjs.map +1 -1
- package/dist/utils/run.cjs +6 -6
- package/dist/utils/run.cjs.map +1 -1
- package/dist/utils/run.mjs +6 -6
- package/dist/utils/run.mjs.map +1 -1
- package/dist/utils/save-config.cjs +12 -0
- package/dist/utils/save-config.cjs.map +1 -1
- package/dist/utils/save-config.mjs +12 -0
- package/dist/utils/save-config.mjs.map +1 -1
- package/dist/utils/snapshot-hash.cjs +10 -0
- package/dist/utils/snapshot-hash.cjs.map +1 -0
- package/dist/utils/snapshot-hash.mjs +10 -0
- package/dist/utils/snapshot-hash.mjs.map +1 -0
- package/dist/utils/string.cjs +0 -1
- package/dist/utils/string.cjs.map +1 -1
- package/dist/utils/theme.cjs +30 -12
- package/dist/utils/theme.cjs.map +1 -1
- package/dist/utils/theme.mjs +30 -11
- package/dist/utils/theme.mjs.map +1 -1
- package/dist/version-manifest-deploy.cjs +50 -0
- package/dist/version-manifest-deploy.cjs.map +1 -0
- package/dist/version-manifest-deploy.mjs +49 -0
- package/dist/version-manifest-deploy.mjs.map +1 -0
- package/dist/version-manifest-resolve.cjs +42 -0
- package/dist/version-manifest-resolve.cjs.map +1 -0
- package/dist/version-manifest-resolve.d.cts +38 -0
- package/dist/version-manifest-resolve.d.mts +38 -0
- package/dist/version-manifest-resolve.mjs +40 -0
- package/dist/version-manifest-resolve.mjs.map +1 -0
- package/dist/version-status.cjs +18 -0
- package/dist/version-status.cjs.map +1 -0
- package/dist/version-status.d.cts +22 -0
- package/dist/version-status.d.mts +22 -0
- package/dist/version-status.mjs +17 -0
- package/dist/version-status.mjs.map +1 -0
- package/dist/workspace-catalog.cjs +53 -0
- package/dist/workspace-catalog.cjs.map +1 -0
- package/dist/workspace-catalog.mjs +51 -0
- package/dist/workspace-catalog.mjs.map +1 -0
- package/dist/workspace.cjs +237 -0
- package/dist/workspace.cjs.map +1 -0
- package/dist/workspace.mjs +233 -0
- package/dist/workspace.mjs.map +1 -0
- package/package.json +179 -27
- package/skills/add-a-route/SKILL.md +132 -0
- package/skills/api-and-auth/SKILL.md +87 -21
- package/skills/api-and-auth/references/middleware.md +1 -1
- package/skills/cli-reference/SKILL.md +48 -21
- package/skills/code-style/SKILL.md +8 -0
- package/skills/dev-workflow/SKILL.md +50 -26
- package/skills/extends-config/SKILL.md +31 -19
- package/skills/init-upgrade/SKILL.md +29 -16
- package/skills/plugin-development/SKILL.md +46 -112
- package/skills/plugin-development/references/database.md +82 -0
- package/skills/plugin-development/references/request-context.md +67 -0
- package/skills/publish-sync/SKILL.md +99 -22
- package/skills/registry/SKILL.md +82 -0
- package/skills/super-app/SKILL.md +25 -15
- package/skills/talk-to-the-app/SKILL.md +138 -0
- package/skills/ui-integration/SKILL.md +93 -11
- package/dist/cli/db-studio.cjs +0 -131
- package/dist/cli/db-studio.cjs.map +0 -1
- package/dist/cli/db-studio.mjs +0 -127
- package/dist/cli/db-studio.mjs.map +0 -1
- package/dist/cli/init.d.cts.map +0 -1
- package/dist/cli/init.d.mts.map +0 -1
- package/dist/components/dev-view.cjs +0 -309
- package/dist/components/dev-view.cjs.map +0 -1
- package/dist/components/dev-view.mjs +0 -309
- package/dist/components/dev-view.mjs.map +0 -1
- package/dist/components/streaming-view.cjs +0 -134
- package/dist/components/streaming-view.cjs.map +0 -1
- package/dist/components/streaming-view.mjs +0 -132
- package/dist/components/streaming-view.mjs.map +0 -1
- package/dist/config.d.cts.map +0 -1
- package/dist/config.d.mts.map +0 -1
- package/dist/contract.d.cts.map +0 -1
- package/dist/contract.d.mts.map +0 -1
- package/dist/contract.meta.d.cts.map +0 -1
- package/dist/contract.meta.d.mts.map +0 -1
- package/dist/dag.d.cts.map +0 -1
- package/dist/dag.d.mts.map +0 -1
- package/dist/db.cjs +0 -81
- package/dist/db.cjs.map +0 -1
- package/dist/db.d.cts +0 -30
- package/dist/db.d.cts.map +0 -1
- package/dist/db.d.mts +0 -30
- package/dist/db.d.mts.map +0 -1
- package/dist/db.mjs +0 -75
- package/dist/db.mjs.map +0 -1
- package/dist/fastkv.d.cts.map +0 -1
- package/dist/fastkv.d.mts.map +0 -1
- package/dist/integrity.d.cts.map +0 -1
- package/dist/integrity.d.mts.map +0 -1
- package/dist/merge.d.cts.map +0 -1
- package/dist/merge.d.mts.map +0 -1
- package/dist/mf.d.cts.map +0 -1
- package/dist/mf.d.mts.map +0 -1
- package/dist/plugin.d.cts.map +0 -1
- package/dist/plugin.d.mts.map +0 -1
- package/dist/service-descriptor.d.cts.map +0 -1
- package/dist/service-descriptor.d.mts.map +0 -1
- package/dist/types.d.cts.map +0 -1
- package/dist/types.d.mts.map +0 -1
- package/dist/ui/head.d.cts.map +0 -1
- package/dist/ui/head.d.mts.map +0 -1
- package/dist/ui/metadata.d.cts.map +0 -1
- package/dist/ui/metadata.d.mts.map +0 -1
- package/dist/ui/router.d.cts.map +0 -1
- package/dist/ui/router.d.mts.map +0 -1
- package/dist/ui/runtime.d.cts.map +0 -1
- package/dist/ui/runtime.d.mts.map +0 -1
- package/dist/ui/types.d.cts.map +0 -1
- package/dist/ui/types.d.mts.map +0 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
//#region src/ui/plugin-path.ts
|
|
2
|
+
/**
|
|
3
|
+
* Escape hatch for navigation to plugin-owned paths. Composed plugin routes
|
|
4
|
+
* are not part of the core Register, so literal paths to them fail TanStack's
|
|
5
|
+
* strict Link/redirect typing even though they resolve at runtime once the
|
|
6
|
+
* plugin tree composes in. Routing the literal through a string-typed
|
|
7
|
+
* boundary states the contract explicitly: the path is valid only while the
|
|
8
|
+
* owning plugin ui is composed in — core-only fallbacks 404 by design.
|
|
9
|
+
*/
|
|
10
|
+
function pluginPath(path) {
|
|
11
|
+
return path;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Plugin-owned href with query params — usable via the `href` option of
|
|
15
|
+
* Link/Navigate/redirect when the path's search schema lives in the plugin
|
|
16
|
+
* (the core cannot type-check it).
|
|
17
|
+
*/
|
|
18
|
+
function pluginHref(path, search) {
|
|
19
|
+
const params = new URLSearchParams();
|
|
20
|
+
for (const [key, value] of Object.entries(search ?? {})) if (value !== void 0) params.set(key, value);
|
|
21
|
+
const query = params.toString();
|
|
22
|
+
return `${pluginPath(path)}${query ? `?${query}` : ""}`;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Search params for a plugin-owned route used through the typed `search`
|
|
26
|
+
* option — the core cannot type-check them, so they widen to the router's
|
|
27
|
+
* full search schema union.
|
|
28
|
+
*/
|
|
29
|
+
function pluginSearch(search) {
|
|
30
|
+
return search;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
exports.pluginHref = pluginHref;
|
|
35
|
+
exports.pluginPath = pluginPath;
|
|
36
|
+
exports.pluginSearch = pluginSearch;
|
|
37
|
+
//# sourceMappingURL=plugin-path.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-path.cjs","names":[],"sources":["../../src/ui/plugin-path.ts"],"sourcesContent":["/**\n * Escape hatch for navigation to plugin-owned paths. Composed plugin routes\n * are not part of the core Register, so literal paths to them fail TanStack's\n * strict Link/redirect typing even though they resolve at runtime once the\n * plugin tree composes in. Routing the literal through a string-typed\n * boundary states the contract explicitly: the path is valid only while the\n * owning plugin ui is composed in — core-only fallbacks 404 by design.\n */\nexport function pluginPath(path: string): string {\n return path;\n}\n\n/**\n * Plugin-owned href with query params — usable via the `href` option of\n * Link/Navigate/redirect when the path's search schema lives in the plugin\n * (the core cannot type-check it).\n */\nexport function pluginHref(path: string, search?: Record<string, string | undefined>): string {\n const params = new URLSearchParams();\n for (const [key, value] of Object.entries(search ?? {})) {\n if (value !== undefined) params.set(key, value);\n }\n const query = params.toString();\n return `${pluginPath(path)}${query ? `?${query}` : \"\"}`;\n}\n\n/**\n * Search params for a plugin-owned route used through the typed `search`\n * option — the core cannot type-check them, so they widen to the router's\n * full search schema union.\n */\nexport function pluginSearch(search: Record<string, unknown>): never {\n return search as never;\n}\n"],"mappings":";;;;;;;;;AAQA,SAAgB,WAAW,MAAsB;CAC/C,OAAO;AACT;;;;;;AAOA,SAAgB,WAAW,MAAc,QAAqD;CAC5F,MAAM,SAAS,IAAI,gBAAgB;CACnC,KAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,UAAU,CAAC,CAAC,GACpD,IAAI,UAAU,QAAW,OAAO,IAAI,KAAK,KAAK;CAEhD,MAAM,QAAQ,OAAO,SAAS;CAC9B,OAAO,GAAG,WAAW,IAAI,IAAI,QAAQ,IAAI,UAAU;AACrD;;;;;;AAOA,SAAgB,aAAa,QAAwC;CACnE,OAAO;AACT"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//#region src/ui/plugin-path.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Escape hatch for navigation to plugin-owned paths. Composed plugin routes
|
|
4
|
+
* are not part of the core Register, so literal paths to them fail TanStack's
|
|
5
|
+
* strict Link/redirect typing even though they resolve at runtime once the
|
|
6
|
+
* plugin tree composes in. Routing the literal through a string-typed
|
|
7
|
+
* boundary states the contract explicitly: the path is valid only while the
|
|
8
|
+
* owning plugin ui is composed in — core-only fallbacks 404 by design.
|
|
9
|
+
*/
|
|
10
|
+
declare function pluginPath(path: string): string;
|
|
11
|
+
/**
|
|
12
|
+
* Plugin-owned href with query params — usable via the `href` option of
|
|
13
|
+
* Link/Navigate/redirect when the path's search schema lives in the plugin
|
|
14
|
+
* (the core cannot type-check it).
|
|
15
|
+
*/
|
|
16
|
+
declare function pluginHref(path: string, search?: Record<string, string | undefined>): string;
|
|
17
|
+
/**
|
|
18
|
+
* Search params for a plugin-owned route used through the typed `search`
|
|
19
|
+
* option — the core cannot type-check them, so they widen to the router's
|
|
20
|
+
* full search schema union.
|
|
21
|
+
*/
|
|
22
|
+
declare function pluginSearch(search: Record<string, unknown>): never;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { pluginHref, pluginPath, pluginSearch };
|
|
25
|
+
//# sourceMappingURL=plugin-path.d.cts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
//#region src/ui/plugin-path.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Escape hatch for navigation to plugin-owned paths. Composed plugin routes
|
|
4
|
+
* are not part of the core Register, so literal paths to them fail TanStack's
|
|
5
|
+
* strict Link/redirect typing even though they resolve at runtime once the
|
|
6
|
+
* plugin tree composes in. Routing the literal through a string-typed
|
|
7
|
+
* boundary states the contract explicitly: the path is valid only while the
|
|
8
|
+
* owning plugin ui is composed in — core-only fallbacks 404 by design.
|
|
9
|
+
*/
|
|
10
|
+
declare function pluginPath(path: string): string;
|
|
11
|
+
/**
|
|
12
|
+
* Plugin-owned href with query params — usable via the `href` option of
|
|
13
|
+
* Link/Navigate/redirect when the path's search schema lives in the plugin
|
|
14
|
+
* (the core cannot type-check it).
|
|
15
|
+
*/
|
|
16
|
+
declare function pluginHref(path: string, search?: Record<string, string | undefined>): string;
|
|
17
|
+
/**
|
|
18
|
+
* Search params for a plugin-owned route used through the typed `search`
|
|
19
|
+
* option — the core cannot type-check them, so they widen to the router's
|
|
20
|
+
* full search schema union.
|
|
21
|
+
*/
|
|
22
|
+
declare function pluginSearch(search: Record<string, unknown>): never;
|
|
23
|
+
//#endregion
|
|
24
|
+
export { pluginHref, pluginPath, pluginSearch };
|
|
25
|
+
//# sourceMappingURL=plugin-path.d.mts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
//#region src/ui/plugin-path.ts
|
|
2
|
+
/**
|
|
3
|
+
* Escape hatch for navigation to plugin-owned paths. Composed plugin routes
|
|
4
|
+
* are not part of the core Register, so literal paths to them fail TanStack's
|
|
5
|
+
* strict Link/redirect typing even though they resolve at runtime once the
|
|
6
|
+
* plugin tree composes in. Routing the literal through a string-typed
|
|
7
|
+
* boundary states the contract explicitly: the path is valid only while the
|
|
8
|
+
* owning plugin ui is composed in — core-only fallbacks 404 by design.
|
|
9
|
+
*/
|
|
10
|
+
function pluginPath(path) {
|
|
11
|
+
return path;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Plugin-owned href with query params — usable via the `href` option of
|
|
15
|
+
* Link/Navigate/redirect when the path's search schema lives in the plugin
|
|
16
|
+
* (the core cannot type-check it).
|
|
17
|
+
*/
|
|
18
|
+
function pluginHref(path, search) {
|
|
19
|
+
const params = new URLSearchParams();
|
|
20
|
+
for (const [key, value] of Object.entries(search ?? {})) if (value !== void 0) params.set(key, value);
|
|
21
|
+
const query = params.toString();
|
|
22
|
+
return `${pluginPath(path)}${query ? `?${query}` : ""}`;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Search params for a plugin-owned route used through the typed `search`
|
|
26
|
+
* option — the core cannot type-check them, so they widen to the router's
|
|
27
|
+
* full search schema union.
|
|
28
|
+
*/
|
|
29
|
+
function pluginSearch(search) {
|
|
30
|
+
return search;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
//#endregion
|
|
34
|
+
export { pluginHref, pluginPath, pluginSearch };
|
|
35
|
+
//# sourceMappingURL=plugin-path.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin-path.mjs","names":[],"sources":["../../src/ui/plugin-path.ts"],"sourcesContent":["/**\n * Escape hatch for navigation to plugin-owned paths. Composed plugin routes\n * are not part of the core Register, so literal paths to them fail TanStack's\n * strict Link/redirect typing even though they resolve at runtime once the\n * plugin tree composes in. Routing the literal through a string-typed\n * boundary states the contract explicitly: the path is valid only while the\n * owning plugin ui is composed in — core-only fallbacks 404 by design.\n */\nexport function pluginPath(path: string): string {\n return path;\n}\n\n/**\n * Plugin-owned href with query params — usable via the `href` option of\n * Link/Navigate/redirect when the path's search schema lives in the plugin\n * (the core cannot type-check it).\n */\nexport function pluginHref(path: string, search?: Record<string, string | undefined>): string {\n const params = new URLSearchParams();\n for (const [key, value] of Object.entries(search ?? {})) {\n if (value !== undefined) params.set(key, value);\n }\n const query = params.toString();\n return `${pluginPath(path)}${query ? `?${query}` : \"\"}`;\n}\n\n/**\n * Search params for a plugin-owned route used through the typed `search`\n * option — the core cannot type-check them, so they widen to the router's\n * full search schema union.\n */\nexport function pluginSearch(search: Record<string, unknown>): never {\n return search as never;\n}\n"],"mappings":";;;;;;;;;AAQA,SAAgB,WAAW,MAAsB;CAC/C,OAAO;AACT;;;;;;AAOA,SAAgB,WAAW,MAAc,QAAqD;CAC5F,MAAM,SAAS,IAAI,gBAAgB;CACnC,KAAK,MAAM,CAAC,KAAK,UAAU,OAAO,QAAQ,UAAU,CAAC,CAAC,GACpD,IAAI,UAAU,QAAW,OAAO,IAAI,KAAK,KAAK;CAEhD,MAAM,QAAQ,OAAO,SAAS;CAC9B,OAAO,GAAG,WAAW,IAAI,IAAI,QAAQ,IAAI,UAAU;AACrD;;;;;;AAOA,SAAgB,aAAa,QAAwC;CACnE,OAAO;AACT"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
const require_ui_auth = require('./auth.cjs');
|
|
3
|
+
const require_ui_router_defaults = require('./router-defaults.cjs');
|
|
4
|
+
const require_ui_router_error = require('./router-error.cjs');
|
|
5
|
+
let _tanstack_react_router = require("@tanstack/react-router");
|
|
6
|
+
let _tanstack_react_query = require("@tanstack/react-query");
|
|
7
|
+
|
|
8
|
+
//#region src/ui/router-client.tsx
|
|
9
|
+
/**
|
|
10
|
+
* Client router factory — creates a TanStack Router with browser history.
|
|
11
|
+
* The app-specific route tree is injected as `defaultRouteTree` (the
|
|
12
|
+
* bundled core-only fallback); the composed tree wins when manifest
|
|
13
|
+
* construction produced one.
|
|
14
|
+
*/
|
|
15
|
+
function createRouter(opts) {
|
|
16
|
+
const queryClient = opts.context.queryClient;
|
|
17
|
+
const history = opts.history ?? (0, _tanstack_react_router.createBrowserHistory)();
|
|
18
|
+
const cspNonce = opts.context.cspNonce;
|
|
19
|
+
const routeTree = opts.routeTree ?? opts.defaultRouteTree;
|
|
20
|
+
if (!routeTree) throw new Error("createRouter: no route tree — compose failed and no core-only fallback was constructed");
|
|
21
|
+
return {
|
|
22
|
+
router: (0, _tanstack_react_router.createRouter)({
|
|
23
|
+
routeTree,
|
|
24
|
+
history,
|
|
25
|
+
basepath: opts.basepath ?? opts.context.runtimeConfig?.runtime?.runtimeBasePath ?? "/",
|
|
26
|
+
context: {
|
|
27
|
+
queryClient,
|
|
28
|
+
runtimeConfig: opts.context.runtimeConfig,
|
|
29
|
+
cspNonce: opts.context.cspNonce,
|
|
30
|
+
apiClient: opts.context.apiClient,
|
|
31
|
+
authClient: opts.context.authClient ?? require_ui_auth.createAuthClient({
|
|
32
|
+
runtimeConfig: opts.context.runtimeConfig,
|
|
33
|
+
cspNonce: opts.context.cspNonce
|
|
34
|
+
}),
|
|
35
|
+
session: opts.context.session,
|
|
36
|
+
locale: opts.context.locale
|
|
37
|
+
},
|
|
38
|
+
...cspNonce ? { ssr: { nonce: cspNonce } } : {},
|
|
39
|
+
defaultPreload: "intent",
|
|
40
|
+
scrollRestoration: true,
|
|
41
|
+
defaultStructuralSharing: true,
|
|
42
|
+
defaultPreloadStaleTime: 0,
|
|
43
|
+
defaultPendingMinMs: 0,
|
|
44
|
+
defaultErrorComponent: require_ui_router_error.RouterError,
|
|
45
|
+
defaultNotFoundComponent: require_ui_router_defaults.defaultNotFoundComponent,
|
|
46
|
+
defaultPendingComponent: require_ui_router_defaults.defaultPendingComponent,
|
|
47
|
+
dehydrate: () => {
|
|
48
|
+
if (typeof window === "undefined") return { queryClientState: (0, _tanstack_react_query.dehydrate)(queryClient) };
|
|
49
|
+
return { queryClientState: {} };
|
|
50
|
+
},
|
|
51
|
+
hydrate: (dehydrated) => {
|
|
52
|
+
if (typeof window !== "undefined" && dehydrated?.queryClientState) (0, _tanstack_react_query.hydrate)(queryClient, dehydrated.queryClientState);
|
|
53
|
+
}
|
|
54
|
+
}),
|
|
55
|
+
queryClient
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
//#endregion
|
|
60
|
+
exports.createRouter = createRouter;
|
|
61
|
+
//# sourceMappingURL=router-client.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"router-client.cjs","names":["createBrowserHistory","createTanStackRouter","createAuthClient","RouterError","dehydrate"],"sources":["../../src/ui/router-client.tsx"],"sourcesContent":["/**\n * Client router factory — creates a TanStack Router with browser history.\n * The app-specific route tree is injected as `defaultRouteTree` (the\n * bundled core-only fallback); the composed tree wins when manifest\n * construction produced one.\n */\n\nimport { dehydrate, hydrate } from \"@tanstack/react-query\";\nimport {\n type AnyRoute,\n createBrowserHistory,\n createRouter as createTanStackRouter,\n} from \"@tanstack/react-router\";\nimport { createAuthClient } from \"./auth\";\nimport { defaultNotFoundComponent, defaultPendingComponent } from \"./router-defaults\";\nimport { RouterError } from \"./router-error\";\nimport type { CreateRouterOptions, RouterContextWithApi } from \"./types\";\n\nexport interface CoreRouterOptions<TApiClient = unknown, TSession = unknown>\n extends CreateRouterOptions<TApiClient, TSession> {\n /** The app's generated route tree — the core-only fallback when no composed tree is passed. */\n defaultRouteTree?: unknown;\n}\n\nexport function createRouter<\n TApiClient = unknown,\n TSession = unknown,\n TRouteTree extends AnyRoute = AnyRoute,\n>(\n opts: CoreRouterOptions<TApiClient, TSession> & {\n context: RouterContextWithApi<TApiClient, TSession> & { authClient?: unknown };\n },\n) {\n const queryClient = opts.context.queryClient;\n const history = opts.history ?? createBrowserHistory();\n const cspNonce = opts.context.cspNonce;\n\n const routeTree = opts.routeTree ?? opts.defaultRouteTree;\n if (!routeTree) {\n throw new Error(\n \"createRouter: no route tree — compose failed and no core-only fallback was constructed\",\n );\n }\n\n const router = createTanStackRouter({\n routeTree: routeTree as TRouteTree,\n history,\n basepath: opts.basepath ?? opts.context.runtimeConfig?.runtime?.runtimeBasePath ?? \"/\",\n context: {\n queryClient,\n runtimeConfig: opts.context.runtimeConfig,\n cspNonce: opts.context.cspNonce,\n apiClient: opts.context.apiClient,\n authClient:\n opts.context.authClient ??\n createAuthClient({\n runtimeConfig: opts.context.runtimeConfig,\n cspNonce: opts.context.cspNonce,\n }),\n session: opts.context.session,\n locale: opts.context.locale,\n },\n ...(cspNonce ? { ssr: { nonce: cspNonce } } : {}),\n defaultPreload: \"intent\",\n scrollRestoration: true,\n defaultStructuralSharing: true,\n defaultPreloadStaleTime: 0,\n defaultPendingMinMs: 0,\n defaultErrorComponent: RouterError,\n defaultNotFoundComponent,\n defaultPendingComponent,\n dehydrate: () => {\n if (typeof window === \"undefined\") {\n return { queryClientState: dehydrate(queryClient) };\n }\n\n return { queryClientState: {} };\n },\n hydrate: (dehydrated: { queryClientState?: unknown }) => {\n if (typeof window !== \"undefined\" && dehydrated?.queryClientState) {\n hydrate(queryClient, dehydrated.queryClientState);\n }\n },\n });\n\n return { router, queryClient };\n}\n"],"mappings":";;;;;;;;;;;;;;AAwBA,SAAgB,aAKd,MAGA;CACA,MAAM,cAAc,KAAK,QAAQ;CACjC,MAAM,UAAU,KAAK,eAAWA,6CAAqB;CACrD,MAAM,WAAW,KAAK,QAAQ;CAE9B,MAAM,YAAY,KAAK,aAAa,KAAK;CACzC,IAAI,CAAC,WACH,MAAM,IAAI,MACR,wFACF;CA4CF,OAAO;EAAE,YAzCMC,qCAAqB;GACvB;GACX;GACA,UAAU,KAAK,YAAY,KAAK,QAAQ,eAAe,SAAS,mBAAmB;GACnF,SAAS;IACP;IACA,eAAe,KAAK,QAAQ;IAC5B,UAAU,KAAK,QAAQ;IACvB,WAAW,KAAK,QAAQ;IACxB,YACE,KAAK,QAAQ,cACbC,iCAAiB;KACf,eAAe,KAAK,QAAQ;KAC5B,UAAU,KAAK,QAAQ;IACzB,CAAC;IACH,SAAS,KAAK,QAAQ;IACtB,QAAQ,KAAK,QAAQ;GACvB;GACA,GAAI,WAAW,EAAE,KAAK,EAAE,OAAO,SAAS,EAAE,IAAI,CAAC;GAC/C,gBAAgB;GAChB,mBAAmB;GACnB,0BAA0B;GAC1B,yBAAyB;GACzB,qBAAqB;GACrB,uBAAuBC;GACvB;GACA;GACA,iBAAiB;IACf,IAAI,OAAO,WAAW,aACpB,OAAO,EAAE,sBAAkBC,iCAAU,WAAW,EAAE;IAGpD,OAAO,EAAE,kBAAkB,CAAC,EAAE;GAChC;GACA,UAAU,eAA+C;IACvD,IAAI,OAAO,WAAW,eAAe,YAAY,kBAC/C,mCAAQ,aAAa,WAAW,gBAAgB;GAEpD;EACF,CAEc;EAAG;CAAY;AAC/B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CreateRouterOptions, RouterContextWithApi } from "./types.cjs";
|
|
2
|
+
import { AnyRoute } from "@tanstack/react-router";
|
|
3
|
+
//#region src/ui/router-client.d.ts
|
|
4
|
+
interface CoreRouterOptions<TApiClient = unknown, TSession = unknown> extends CreateRouterOptions<TApiClient, TSession> {
|
|
5
|
+
/** The app's generated route tree — the core-only fallback when no composed tree is passed. */
|
|
6
|
+
defaultRouteTree?: unknown;
|
|
7
|
+
}
|
|
8
|
+
declare function createRouter<TApiClient = unknown, TSession = unknown, TRouteTree extends AnyRoute = AnyRoute>(opts: CoreRouterOptions<TApiClient, TSession> & {
|
|
9
|
+
context: RouterContextWithApi<TApiClient, TSession> & {
|
|
10
|
+
authClient?: unknown;
|
|
11
|
+
};
|
|
12
|
+
}): {
|
|
13
|
+
router: import("@tanstack/router-core").RouterCore<TRouteTree, "never", true, import("@tanstack/history").RouterHistory, {
|
|
14
|
+
queryClientState: {};
|
|
15
|
+
}>;
|
|
16
|
+
queryClient: import("@tanstack/react-query").QueryClient;
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { CoreRouterOptions, createRouter };
|
|
20
|
+
//# sourceMappingURL=router-client.d.cts.map
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CreateRouterOptions, RouterContextWithApi } from "./types.mjs";
|
|
2
|
+
import { AnyRoute } from "@tanstack/react-router";
|
|
3
|
+
//#region src/ui/router-client.d.ts
|
|
4
|
+
interface CoreRouterOptions<TApiClient = unknown, TSession = unknown> extends CreateRouterOptions<TApiClient, TSession> {
|
|
5
|
+
/** The app's generated route tree — the core-only fallback when no composed tree is passed. */
|
|
6
|
+
defaultRouteTree?: unknown;
|
|
7
|
+
}
|
|
8
|
+
declare function createRouter<TApiClient = unknown, TSession = unknown, TRouteTree extends AnyRoute = AnyRoute>(opts: CoreRouterOptions<TApiClient, TSession> & {
|
|
9
|
+
context: RouterContextWithApi<TApiClient, TSession> & {
|
|
10
|
+
authClient?: unknown;
|
|
11
|
+
};
|
|
12
|
+
}): {
|
|
13
|
+
router: import("@tanstack/router-core").RouterCore<TRouteTree, "never", true, import("@tanstack/history").RouterHistory, {
|
|
14
|
+
queryClientState: {};
|
|
15
|
+
}>;
|
|
16
|
+
queryClient: import("@tanstack/react-query").QueryClient;
|
|
17
|
+
};
|
|
18
|
+
//#endregion
|
|
19
|
+
export { CoreRouterOptions, createRouter };
|
|
20
|
+
//# sourceMappingURL=router-client.d.mts.map
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { createAuthClient } from "./auth.mjs";
|
|
2
|
+
import { defaultNotFoundComponent, defaultPendingComponent } from "./router-defaults.mjs";
|
|
3
|
+
import { RouterError } from "./router-error.mjs";
|
|
4
|
+
import { createBrowserHistory, createRouter as createRouter$1 } from "@tanstack/react-router";
|
|
5
|
+
import { dehydrate, hydrate } from "@tanstack/react-query";
|
|
6
|
+
|
|
7
|
+
//#region src/ui/router-client.tsx
|
|
8
|
+
/**
|
|
9
|
+
* Client router factory — creates a TanStack Router with browser history.
|
|
10
|
+
* The app-specific route tree is injected as `defaultRouteTree` (the
|
|
11
|
+
* bundled core-only fallback); the composed tree wins when manifest
|
|
12
|
+
* construction produced one.
|
|
13
|
+
*/
|
|
14
|
+
function createRouter(opts) {
|
|
15
|
+
const queryClient = opts.context.queryClient;
|
|
16
|
+
const history = opts.history ?? createBrowserHistory();
|
|
17
|
+
const cspNonce = opts.context.cspNonce;
|
|
18
|
+
const routeTree = opts.routeTree ?? opts.defaultRouteTree;
|
|
19
|
+
if (!routeTree) throw new Error("createRouter: no route tree — compose failed and no core-only fallback was constructed");
|
|
20
|
+
return {
|
|
21
|
+
router: createRouter$1({
|
|
22
|
+
routeTree,
|
|
23
|
+
history,
|
|
24
|
+
basepath: opts.basepath ?? opts.context.runtimeConfig?.runtime?.runtimeBasePath ?? "/",
|
|
25
|
+
context: {
|
|
26
|
+
queryClient,
|
|
27
|
+
runtimeConfig: opts.context.runtimeConfig,
|
|
28
|
+
cspNonce: opts.context.cspNonce,
|
|
29
|
+
apiClient: opts.context.apiClient,
|
|
30
|
+
authClient: opts.context.authClient ?? createAuthClient({
|
|
31
|
+
runtimeConfig: opts.context.runtimeConfig,
|
|
32
|
+
cspNonce: opts.context.cspNonce
|
|
33
|
+
}),
|
|
34
|
+
session: opts.context.session,
|
|
35
|
+
locale: opts.context.locale
|
|
36
|
+
},
|
|
37
|
+
...cspNonce ? { ssr: { nonce: cspNonce } } : {},
|
|
38
|
+
defaultPreload: "intent",
|
|
39
|
+
scrollRestoration: true,
|
|
40
|
+
defaultStructuralSharing: true,
|
|
41
|
+
defaultPreloadStaleTime: 0,
|
|
42
|
+
defaultPendingMinMs: 0,
|
|
43
|
+
defaultErrorComponent: RouterError,
|
|
44
|
+
defaultNotFoundComponent,
|
|
45
|
+
defaultPendingComponent,
|
|
46
|
+
dehydrate: () => {
|
|
47
|
+
if (typeof window === "undefined") return { queryClientState: dehydrate(queryClient) };
|
|
48
|
+
return { queryClientState: {} };
|
|
49
|
+
},
|
|
50
|
+
hydrate: (dehydrated) => {
|
|
51
|
+
if (typeof window !== "undefined" && dehydrated?.queryClientState) hydrate(queryClient, dehydrated.queryClientState);
|
|
52
|
+
}
|
|
53
|
+
}),
|
|
54
|
+
queryClient
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
//#endregion
|
|
59
|
+
export { createRouter };
|
|
60
|
+
//# sourceMappingURL=router-client.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"router-client.mjs","names":["createTanStackRouter"],"sources":["../../src/ui/router-client.tsx"],"sourcesContent":["/**\n * Client router factory — creates a TanStack Router with browser history.\n * The app-specific route tree is injected as `defaultRouteTree` (the\n * bundled core-only fallback); the composed tree wins when manifest\n * construction produced one.\n */\n\nimport { dehydrate, hydrate } from \"@tanstack/react-query\";\nimport {\n type AnyRoute,\n createBrowserHistory,\n createRouter as createTanStackRouter,\n} from \"@tanstack/react-router\";\nimport { createAuthClient } from \"./auth\";\nimport { defaultNotFoundComponent, defaultPendingComponent } from \"./router-defaults\";\nimport { RouterError } from \"./router-error\";\nimport type { CreateRouterOptions, RouterContextWithApi } from \"./types\";\n\nexport interface CoreRouterOptions<TApiClient = unknown, TSession = unknown>\n extends CreateRouterOptions<TApiClient, TSession> {\n /** The app's generated route tree — the core-only fallback when no composed tree is passed. */\n defaultRouteTree?: unknown;\n}\n\nexport function createRouter<\n TApiClient = unknown,\n TSession = unknown,\n TRouteTree extends AnyRoute = AnyRoute,\n>(\n opts: CoreRouterOptions<TApiClient, TSession> & {\n context: RouterContextWithApi<TApiClient, TSession> & { authClient?: unknown };\n },\n) {\n const queryClient = opts.context.queryClient;\n const history = opts.history ?? createBrowserHistory();\n const cspNonce = opts.context.cspNonce;\n\n const routeTree = opts.routeTree ?? opts.defaultRouteTree;\n if (!routeTree) {\n throw new Error(\n \"createRouter: no route tree — compose failed and no core-only fallback was constructed\",\n );\n }\n\n const router = createTanStackRouter({\n routeTree: routeTree as TRouteTree,\n history,\n basepath: opts.basepath ?? opts.context.runtimeConfig?.runtime?.runtimeBasePath ?? \"/\",\n context: {\n queryClient,\n runtimeConfig: opts.context.runtimeConfig,\n cspNonce: opts.context.cspNonce,\n apiClient: opts.context.apiClient,\n authClient:\n opts.context.authClient ??\n createAuthClient({\n runtimeConfig: opts.context.runtimeConfig,\n cspNonce: opts.context.cspNonce,\n }),\n session: opts.context.session,\n locale: opts.context.locale,\n },\n ...(cspNonce ? { ssr: { nonce: cspNonce } } : {}),\n defaultPreload: \"intent\",\n scrollRestoration: true,\n defaultStructuralSharing: true,\n defaultPreloadStaleTime: 0,\n defaultPendingMinMs: 0,\n defaultErrorComponent: RouterError,\n defaultNotFoundComponent,\n defaultPendingComponent,\n dehydrate: () => {\n if (typeof window === \"undefined\") {\n return { queryClientState: dehydrate(queryClient) };\n }\n\n return { queryClientState: {} };\n },\n hydrate: (dehydrated: { queryClientState?: unknown }) => {\n if (typeof window !== \"undefined\" && dehydrated?.queryClientState) {\n hydrate(queryClient, dehydrated.queryClientState);\n }\n },\n });\n\n return { router, queryClient };\n}\n"],"mappings":";;;;;;;;;;;;;AAwBA,SAAgB,aAKd,MAGA;CACA,MAAM,cAAc,KAAK,QAAQ;CACjC,MAAM,UAAU,KAAK,WAAW,qBAAqB;CACrD,MAAM,WAAW,KAAK,QAAQ;CAE9B,MAAM,YAAY,KAAK,aAAa,KAAK;CACzC,IAAI,CAAC,WACH,MAAM,IAAI,MACR,wFACF;CA4CF,OAAO;EAAE,QAzCMA,eAAqB;GACvB;GACX;GACA,UAAU,KAAK,YAAY,KAAK,QAAQ,eAAe,SAAS,mBAAmB;GACnF,SAAS;IACP;IACA,eAAe,KAAK,QAAQ;IAC5B,UAAU,KAAK,QAAQ;IACvB,WAAW,KAAK,QAAQ;IACxB,YACE,KAAK,QAAQ,cACb,iBAAiB;KACf,eAAe,KAAK,QAAQ;KAC5B,UAAU,KAAK,QAAQ;IACzB,CAAC;IACH,SAAS,KAAK,QAAQ;IACtB,QAAQ,KAAK,QAAQ;GACvB;GACA,GAAI,WAAW,EAAE,KAAK,EAAE,OAAO,SAAS,EAAE,IAAI,CAAC;GAC/C,gBAAgB;GAChB,mBAAmB;GACnB,0BAA0B;GAC1B,yBAAyB;GACzB,qBAAqB;GACrB,uBAAuB;GACvB;GACA;GACA,iBAAiB;IACf,IAAI,OAAO,WAAW,aACpB,OAAO,EAAE,kBAAkB,UAAU,WAAW,EAAE;IAGpD,OAAO,EAAE,kBAAkB,CAAC,EAAE;GAChC;GACA,UAAU,eAA+C;IACvD,IAAI,OAAO,WAAW,eAAe,YAAY,kBAC/C,QAAQ,aAAa,WAAW,gBAAgB;GAEpD;EACF,CAEc;EAAG;CAAY;AAC/B"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
|
+
let _tanstack_react_query = require("@tanstack/react-query");
|
|
4
|
+
|
|
5
|
+
//#region src/ui/router-defaults.tsx
|
|
6
|
+
/**
|
|
7
|
+
* Shared router defaults — the fallback boundaries every core-ui router
|
|
8
|
+
* (client and SSR) renders with, and the QueryClient defaults both
|
|
9
|
+
* bootstraps agree on.
|
|
10
|
+
*/
|
|
11
|
+
function defaultNotFoundComponent() {
|
|
12
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
13
|
+
className: "min-h-screen flex items-center justify-center bg-background px-6",
|
|
14
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
15
|
+
className: "text-center",
|
|
16
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h1", {
|
|
17
|
+
className: "text-3xl font-semibold text-foreground",
|
|
18
|
+
children: "Not Found"
|
|
19
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
20
|
+
className: "mt-2 text-muted-foreground",
|
|
21
|
+
children: "The requested page could not be found."
|
|
22
|
+
})]
|
|
23
|
+
})
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
function defaultPendingComponent() {
|
|
27
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
28
|
+
className: "min-h-screen flex items-center justify-center bg-background px-6",
|
|
29
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
30
|
+
className: "text-sm text-muted-foreground",
|
|
31
|
+
children: "Loading..."
|
|
32
|
+
})
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
function defaultQueryClient() {
|
|
36
|
+
return new _tanstack_react_query.QueryClient({ defaultOptions: { queries: {
|
|
37
|
+
staleTime: 3e5,
|
|
38
|
+
gcTime: 18e5,
|
|
39
|
+
refetchOnWindowFocus: false,
|
|
40
|
+
retry: 1
|
|
41
|
+
} } });
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
45
|
+
exports.defaultNotFoundComponent = defaultNotFoundComponent;
|
|
46
|
+
exports.defaultPendingComponent = defaultPendingComponent;
|
|
47
|
+
exports.defaultQueryClient = defaultQueryClient;
|
|
48
|
+
//# sourceMappingURL=router-defaults.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"router-defaults.cjs","names":["QueryClient"],"sources":["../../src/ui/router-defaults.tsx"],"sourcesContent":["/**\n * Shared router defaults — the fallback boundaries every core-ui router\n * (client and SSR) renders with, and the QueryClient defaults both\n * bootstraps agree on.\n */\n\nimport { QueryClient } from \"@tanstack/react-query\";\n\nexport function defaultNotFoundComponent() {\n return (\n <div className=\"min-h-screen flex items-center justify-center bg-background px-6\">\n <div className=\"text-center\">\n <h1 className=\"text-3xl font-semibold text-foreground\">Not Found</h1>\n <p className=\"mt-2 text-muted-foreground\">The requested page could not be found.</p>\n </div>\n </div>\n );\n}\n\nexport function defaultPendingComponent() {\n return (\n <div className=\"min-h-screen flex items-center justify-center bg-background px-6\">\n <p className=\"text-sm text-muted-foreground\">Loading...</p>\n </div>\n );\n}\n\nexport function defaultQueryClient(): QueryClient {\n return new QueryClient({\n defaultOptions: {\n queries: {\n staleTime: 5 * 60 * 1000,\n gcTime: 30 * 60 * 1000,\n refetchOnWindowFocus: false,\n retry: 1,\n },\n },\n });\n}\n"],"mappings":";;;;;;;;;;AAQA,SAAgB,2BAA2B;CACzC,OACE,2CAAC,OAAD;EAAK,WAAU;YACb,4CAAC,OAAD;GAAK,WAAU;aAAf,CACE,2CAAC,MAAD;IAAI,WAAU;cAAyC;GAAa,IACpE,2CAAC,KAAD;IAAG,WAAU;cAA6B;GAAyC,EAChF;;CACF;AAET;AAEA,SAAgB,0BAA0B;CACxC,OACE,2CAAC,OAAD;EAAK,WAAU;YACb,2CAAC,KAAD;GAAG,WAAU;aAAgC;EAAa;CACvD;AAET;AAEA,SAAgB,qBAAkC;CAChD,OAAO,IAAIA,kCAAY,EACrB,gBAAgB,EACd,SAAS;EACP,WAAW;EACX,QAAQ;EACR,sBAAsB;EACtB,OAAO;CACT,EACF,EACF,CAAC;AACH"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { QueryClient } from "@tanstack/react-query";
|
|
2
|
+
//#region src/ui/router-defaults.d.ts
|
|
3
|
+
declare function defaultNotFoundComponent(): import("react").JSX.Element;
|
|
4
|
+
declare function defaultPendingComponent(): import("react").JSX.Element;
|
|
5
|
+
declare function defaultQueryClient(): QueryClient;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { defaultNotFoundComponent, defaultPendingComponent, defaultQueryClient };
|
|
8
|
+
//# sourceMappingURL=router-defaults.d.cts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { QueryClient } from "@tanstack/react-query";
|
|
2
|
+
//#region src/ui/router-defaults.d.ts
|
|
3
|
+
declare function defaultNotFoundComponent(): import("react").JSX.Element;
|
|
4
|
+
declare function defaultPendingComponent(): import("react").JSX.Element;
|
|
5
|
+
declare function defaultQueryClient(): QueryClient;
|
|
6
|
+
//#endregion
|
|
7
|
+
export { defaultNotFoundComponent, defaultPendingComponent, defaultQueryClient };
|
|
8
|
+
//# sourceMappingURL=router-defaults.d.mts.map
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { QueryClient } from "@tanstack/react-query";
|
|
3
|
+
|
|
4
|
+
//#region src/ui/router-defaults.tsx
|
|
5
|
+
/**
|
|
6
|
+
* Shared router defaults — the fallback boundaries every core-ui router
|
|
7
|
+
* (client and SSR) renders with, and the QueryClient defaults both
|
|
8
|
+
* bootstraps agree on.
|
|
9
|
+
*/
|
|
10
|
+
function defaultNotFoundComponent() {
|
|
11
|
+
return /* @__PURE__ */ jsx("div", {
|
|
12
|
+
className: "min-h-screen flex items-center justify-center bg-background px-6",
|
|
13
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
14
|
+
className: "text-center",
|
|
15
|
+
children: [/* @__PURE__ */ jsx("h1", {
|
|
16
|
+
className: "text-3xl font-semibold text-foreground",
|
|
17
|
+
children: "Not Found"
|
|
18
|
+
}), /* @__PURE__ */ jsx("p", {
|
|
19
|
+
className: "mt-2 text-muted-foreground",
|
|
20
|
+
children: "The requested page could not be found."
|
|
21
|
+
})]
|
|
22
|
+
})
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
function defaultPendingComponent() {
|
|
26
|
+
return /* @__PURE__ */ jsx("div", {
|
|
27
|
+
className: "min-h-screen flex items-center justify-center bg-background px-6",
|
|
28
|
+
children: /* @__PURE__ */ jsx("p", {
|
|
29
|
+
className: "text-sm text-muted-foreground",
|
|
30
|
+
children: "Loading..."
|
|
31
|
+
})
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function defaultQueryClient() {
|
|
35
|
+
return new QueryClient({ defaultOptions: { queries: {
|
|
36
|
+
staleTime: 3e5,
|
|
37
|
+
gcTime: 18e5,
|
|
38
|
+
refetchOnWindowFocus: false,
|
|
39
|
+
retry: 1
|
|
40
|
+
} } });
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
//#endregion
|
|
44
|
+
export { defaultNotFoundComponent, defaultPendingComponent, defaultQueryClient };
|
|
45
|
+
//# sourceMappingURL=router-defaults.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"router-defaults.mjs","names":[],"sources":["../../src/ui/router-defaults.tsx"],"sourcesContent":["/**\n * Shared router defaults — the fallback boundaries every core-ui router\n * (client and SSR) renders with, and the QueryClient defaults both\n * bootstraps agree on.\n */\n\nimport { QueryClient } from \"@tanstack/react-query\";\n\nexport function defaultNotFoundComponent() {\n return (\n <div className=\"min-h-screen flex items-center justify-center bg-background px-6\">\n <div className=\"text-center\">\n <h1 className=\"text-3xl font-semibold text-foreground\">Not Found</h1>\n <p className=\"mt-2 text-muted-foreground\">The requested page could not be found.</p>\n </div>\n </div>\n );\n}\n\nexport function defaultPendingComponent() {\n return (\n <div className=\"min-h-screen flex items-center justify-center bg-background px-6\">\n <p className=\"text-sm text-muted-foreground\">Loading...</p>\n </div>\n );\n}\n\nexport function defaultQueryClient(): QueryClient {\n return new QueryClient({\n defaultOptions: {\n queries: {\n staleTime: 5 * 60 * 1000,\n gcTime: 30 * 60 * 1000,\n refetchOnWindowFocus: false,\n retry: 1,\n },\n },\n });\n}\n"],"mappings":";;;;;;;;;AAQA,SAAgB,2BAA2B;CACzC,OACE,oBAAC,OAAD;EAAK,WAAU;YACb,qBAAC,OAAD;GAAK,WAAU;aAAf,CACE,oBAAC,MAAD;IAAI,WAAU;cAAyC;GAAa,IACpE,oBAAC,KAAD;IAAG,WAAU;cAA6B;GAAyC,EAChF;;CACF;AAET;AAEA,SAAgB,0BAA0B;CACxC,OACE,oBAAC,OAAD;EAAK,WAAU;YACb,oBAAC,KAAD;GAAG,WAAU;aAAgC;EAAa;CACvD;AAET;AAEA,SAAgB,qBAAkC;CAChD,OAAO,IAAI,YAAY,EACrB,gBAAgB,EACd,SAAS;EACP,WAAW;EACX,QAAQ;EACR,sBAAsB;EACtB,OAAO;CACT,EACF,EACF,CAAC;AACH"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
3
|
+
|
|
4
|
+
//#region src/ui/router-error.tsx
|
|
5
|
+
/**
|
|
6
|
+
* Generic router error boundary component — shared by the client and SSR
|
|
7
|
+
* router factories. Dependency-free by design: the framework cannot import
|
|
8
|
+
* the app's UI kit, so primitives are plain markup + semantic tokens.
|
|
9
|
+
*/
|
|
10
|
+
function RouterError({ error, reset, messages }) {
|
|
11
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
12
|
+
className: "flex min-h-96 flex-1 items-center justify-center bg-background px-4 py-16",
|
|
13
|
+
role: "alert",
|
|
14
|
+
"data-testid": "router-error",
|
|
15
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
16
|
+
className: "flex max-w-md flex-col items-center gap-6 text-center",
|
|
17
|
+
children: [
|
|
18
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
19
|
+
className: "flex size-14 items-center justify-center rounded-full bg-destructive-muted text-destructive-muted-foreground",
|
|
20
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
21
|
+
className: "size-7",
|
|
22
|
+
viewBox: "0 0 256 256",
|
|
23
|
+
fill: "currentColor",
|
|
24
|
+
"aria-hidden": "true",
|
|
25
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", { d: "M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24Zm0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88Zm-8-80V80a8 8 0 0 1 16 0v56a8 8 0 0 1-16 0Zm20 36a12 12 0 1 1-12-12 12 12 0 0 1 12 12Z" })
|
|
26
|
+
})
|
|
27
|
+
}),
|
|
28
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
29
|
+
className: "flex flex-col gap-3",
|
|
30
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h1", {
|
|
31
|
+
className: "text-3xl font-semibold text-foreground",
|
|
32
|
+
children: messages?.title ?? "This page didn’t load"
|
|
33
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
34
|
+
className: "text-base text-muted-foreground",
|
|
35
|
+
children: messages?.body ?? "Something went wrong on our side. Try again, or head back home."
|
|
36
|
+
})]
|
|
37
|
+
}),
|
|
38
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
39
|
+
className: "flex flex-wrap justify-center gap-3",
|
|
40
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
|
|
41
|
+
href: "/",
|
|
42
|
+
"data-testid": "router-error-home",
|
|
43
|
+
className: "inline-flex h-9 items-center justify-center rounded-md bg-primary px-4 text-sm font-medium text-primary-foreground",
|
|
44
|
+
children: messages?.home ?? "Back home"
|
|
45
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
46
|
+
type: "button",
|
|
47
|
+
onClick: () => reset ? reset() : window.location.reload(),
|
|
48
|
+
"data-testid": "router-error-retry",
|
|
49
|
+
className: "inline-flex h-9 items-center justify-center rounded-md border border-border bg-background px-4 text-sm font-medium text-foreground",
|
|
50
|
+
children: messages?.retry ?? "Try again"
|
|
51
|
+
})]
|
|
52
|
+
}),
|
|
53
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("details", {
|
|
54
|
+
className: "w-full text-left text-sm text-muted-foreground",
|
|
55
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("summary", {
|
|
56
|
+
className: "cursor-pointer text-center",
|
|
57
|
+
children: "Error details"
|
|
58
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("pre", {
|
|
59
|
+
className: "mt-3 overflow-x-auto whitespace-pre-wrap rounded-lg bg-muted p-4 font-mono text-xs",
|
|
60
|
+
children: error.message
|
|
61
|
+
})]
|
|
62
|
+
})
|
|
63
|
+
]
|
|
64
|
+
})
|
|
65
|
+
});
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
//#endregion
|
|
69
|
+
exports.RouterError = RouterError;
|
|
70
|
+
//# sourceMappingURL=router-error.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"router-error.cjs","names":[],"sources":["../../src/ui/router-error.tsx"],"sourcesContent":["/**\n * Generic router error boundary component — shared by the client and SSR\n * router factories. Dependency-free by design: the framework cannot import\n * the app's UI kit, so primitives are plain markup + semantic tokens.\n */\n\nexport function RouterError({\n error,\n reset,\n messages,\n}: {\n error: Error;\n reset?: () => void;\n messages?: { title: string; body: string; home: string; retry: string };\n}) {\n return (\n <div\n className=\"flex min-h-96 flex-1 items-center justify-center bg-background px-4 py-16\"\n role=\"alert\"\n data-testid=\"router-error\"\n >\n <div className=\"flex max-w-md flex-col items-center gap-6 text-center\">\n <div className=\"flex size-14 items-center justify-center rounded-full bg-destructive-muted text-destructive-muted-foreground\">\n <svg className=\"size-7\" viewBox=\"0 0 256 256\" fill=\"currentColor\" aria-hidden=\"true\">\n <path d=\"M128 24a104 104 0 1 0 104 104A104.11 104.11 0 0 0 128 24Zm0 192a88 88 0 1 1 88-88 88.1 88.1 0 0 1-88 88Zm-8-80V80a8 8 0 0 1 16 0v56a8 8 0 0 1-16 0Zm20 36a12 12 0 1 1-12-12 12 12 0 0 1 12 12Z\" />\n </svg>\n </div>\n <div className=\"flex flex-col gap-3\">\n <h1 className=\"text-3xl font-semibold text-foreground\">\n {messages?.title ?? \"This page didn’t load\"}\n </h1>\n <p className=\"text-base text-muted-foreground\">\n {messages?.body ?? \"Something went wrong on our side. Try again, or head back home.\"}\n </p>\n </div>\n <div className=\"flex flex-wrap justify-center gap-3\">\n <a\n href=\"/\"\n data-testid=\"router-error-home\"\n className=\"inline-flex h-9 items-center justify-center rounded-md bg-primary px-4 text-sm font-medium text-primary-foreground\"\n >\n {messages?.home ?? \"Back home\"}\n </a>\n <button\n type=\"button\"\n onClick={() => (reset ? reset() : window.location.reload())}\n data-testid=\"router-error-retry\"\n className=\"inline-flex h-9 items-center justify-center rounded-md border border-border bg-background px-4 text-sm font-medium text-foreground\"\n >\n {messages?.retry ?? \"Try again\"}\n </button>\n </div>\n <details className=\"w-full text-left text-sm text-muted-foreground\">\n <summary className=\"cursor-pointer text-center\">Error details</summary>\n <pre className=\"mt-3 overflow-x-auto whitespace-pre-wrap rounded-lg bg-muted p-4 font-mono text-xs\">\n {error.message}\n </pre>\n </details>\n </div>\n </div>\n );\n}\n"],"mappings":";;;;;;;;;AAMA,SAAgB,YAAY,EAC1B,OACA,OACA,YAKC;CACD,OACE,2CAAC,OAAD;EACE,WAAU;EACV,MAAK;EACL,eAAY;YAEZ,4CAAC,OAAD;GAAK,WAAU;aAAf;IACE,2CAAC,OAAD;KAAK,WAAU;eACb,2CAAC,OAAD;MAAK,WAAU;MAAS,SAAQ;MAAc,MAAK;MAAe,eAAY;gBAC5E,2CAAC,QAAD,EAAM,GAAE,iMAAkM;KACvM;IACF;IACL,4CAAC,OAAD;KAAK,WAAU;eAAf,CACE,2CAAC,MAAD;MAAI,WAAU;gBACX,UAAU,SAAS;KAClB,IACJ,2CAAC,KAAD;MAAG,WAAU;gBACV,UAAU,QAAQ;KAClB,EACA;;IACL,4CAAC,OAAD;KAAK,WAAU;eAAf,CACE,2CAAC,KAAD;MACE,MAAK;MACL,eAAY;MACZ,WAAU;gBAET,UAAU,QAAQ;KAClB,IACH,2CAAC,UAAD;MACE,MAAK;MACL,eAAgB,QAAQ,MAAM,IAAI,OAAO,SAAS,OAAO;MACzD,eAAY;MACZ,WAAU;gBAET,UAAU,SAAS;KACd,EACL;;IACL,4CAAC,WAAD;KAAS,WAAU;eAAnB,CACE,2CAAC,WAAD;MAAS,WAAU;gBAA6B;KAAsB,IACtE,2CAAC,OAAD;MAAK,WAAU;gBACZ,MAAM;KACJ,EACE;;GACN;;CACF;AAET"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region src/ui/router-error.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Generic router error boundary component — shared by the client and SSR
|
|
4
|
+
* router factories. Dependency-free by design: the framework cannot import
|
|
5
|
+
* the app's UI kit, so primitives are plain markup + semantic tokens.
|
|
6
|
+
*/
|
|
7
|
+
declare function RouterError({ error, reset, messages }: {
|
|
8
|
+
error: Error;
|
|
9
|
+
reset?: () => void;
|
|
10
|
+
messages?: {
|
|
11
|
+
title: string;
|
|
12
|
+
body: string;
|
|
13
|
+
home: string;
|
|
14
|
+
retry: string;
|
|
15
|
+
};
|
|
16
|
+
}): import("react").JSX.Element;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { RouterError };
|
|
19
|
+
//# sourceMappingURL=router-error.d.cts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
//#region src/ui/router-error.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* Generic router error boundary component — shared by the client and SSR
|
|
4
|
+
* router factories. Dependency-free by design: the framework cannot import
|
|
5
|
+
* the app's UI kit, so primitives are plain markup + semantic tokens.
|
|
6
|
+
*/
|
|
7
|
+
declare function RouterError({ error, reset, messages }: {
|
|
8
|
+
error: Error;
|
|
9
|
+
reset?: () => void;
|
|
10
|
+
messages?: {
|
|
11
|
+
title: string;
|
|
12
|
+
body: string;
|
|
13
|
+
home: string;
|
|
14
|
+
retry: string;
|
|
15
|
+
};
|
|
16
|
+
}): import("react").JSX.Element;
|
|
17
|
+
//#endregion
|
|
18
|
+
export { RouterError };
|
|
19
|
+
//# sourceMappingURL=router-error.d.mts.map
|