@xtandard/kit 0.0.0-stage → 0.1.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/LICENSE +21 -0
- package/README.md +71 -2
- package/bin/xtandard-kit.mjs +3 -0
- package/dist/base-path-BJugWLNO.cjs +42 -0
- package/dist/base-path-BJugWLNO.cjs.map +1 -0
- package/dist/base-path-CDb4In5E.mjs +31 -0
- package/dist/base-path-CDb4In5E.mjs.map +1 -0
- package/dist/basic-Qtriv0xS.mjs +176 -0
- package/dist/basic-Qtriv0xS.mjs.map +1 -0
- package/dist/basic-ZaO92-lB.cjs +199 -0
- package/dist/basic-ZaO92-lB.cjs.map +1 -0
- package/dist/bin.cjs +126 -0
- package/dist/bin.cjs.map +1 -0
- package/dist/bin.d.cts +20 -0
- package/dist/bin.d.mts +20 -0
- package/dist/bin.mjs +125 -0
- package/dist/bin.mjs.map +1 -0
- package/dist/cas-CuPSaXBV.cjs +23 -0
- package/dist/cas-CuPSaXBV.cjs.map +1 -0
- package/dist/cas-CzA-yECx.mjs +18 -0
- package/dist/cas-CzA-yECx.mjs.map +1 -0
- package/dist/chunk-DakpK96I.cjs +43 -0
- package/dist/contract-B3UPXXLx.d.cts +30 -0
- package/dist/contract-B3UPXXLx.d.mts +30 -0
- package/dist/contract-BDPNvjtp.d.mts +64 -0
- package/dist/contract-BEdfGTPs.mjs +85 -0
- package/dist/contract-BEdfGTPs.mjs.map +1 -0
- package/dist/contract-BIVzAn4f.d.cts +64 -0
- package/dist/contract-BvgtswLX.d.cts +75 -0
- package/dist/contract-BvgtswLX.d.mts +75 -0
- package/dist/contract-DUj9P3Vt.d.cts +72 -0
- package/dist/contract-DUj9P3Vt.d.mts +72 -0
- package/dist/contract-wAEMDmYG.cjs +132 -0
- package/dist/contract-wAEMDmYG.cjs.map +1 -0
- package/dist/drizzle-BElCHWri.d.mts +115 -0
- package/dist/drizzle-BXaQXCr0.cjs +232 -0
- package/dist/drizzle-BXaQXCr0.cjs.map +1 -0
- package/dist/drizzle-CEpahWQB.d.cts +115 -0
- package/dist/drizzle-DxnelsPT.mjs +197 -0
- package/dist/drizzle-DxnelsPT.mjs.map +1 -0
- package/dist/duration-7WpAK-xe.mjs +52 -0
- package/dist/duration-7WpAK-xe.mjs.map +1 -0
- package/dist/duration-DVA0Fzkx.cjs +63 -0
- package/dist/duration-DVA0Fzkx.cjs.map +1 -0
- package/dist/duration-FPwbmWIU.d.cts +35 -0
- package/dist/duration-FPwbmWIU.d.mts +35 -0
- package/dist/entry-adapters-bun.cjs +10 -0
- package/dist/entry-adapters-bun.cjs.map +1 -0
- package/dist/entry-adapters-bun.d.cts +10 -0
- package/dist/entry-adapters-bun.d.mts +10 -0
- package/dist/entry-adapters-bun.mjs +9 -0
- package/dist/entry-adapters-bun.mjs.map +1 -0
- package/dist/entry-adapters-elysia.cjs +54 -0
- package/dist/entry-adapters-elysia.cjs.map +1 -0
- package/dist/entry-adapters-elysia.d.cts +38 -0
- package/dist/entry-adapters-elysia.d.mts +38 -0
- package/dist/entry-adapters-elysia.mjs +53 -0
- package/dist/entry-adapters-elysia.mjs.map +1 -0
- package/dist/entry-adapters-express.cjs +27 -0
- package/dist/entry-adapters-express.cjs.map +1 -0
- package/dist/entry-adapters-express.d.cts +24 -0
- package/dist/entry-adapters-express.d.mts +24 -0
- package/dist/entry-adapters-express.mjs +26 -0
- package/dist/entry-adapters-express.mjs.map +1 -0
- package/dist/entry-adapters-hono.cjs +33 -0
- package/dist/entry-adapters-hono.cjs.map +1 -0
- package/dist/entry-adapters-hono.d.cts +36 -0
- package/dist/entry-adapters-hono.d.mts +36 -0
- package/dist/entry-adapters-hono.mjs +30 -0
- package/dist/entry-adapters-hono.mjs.map +1 -0
- package/dist/entry-adapters-next.cjs +19 -0
- package/dist/entry-adapters-next.cjs.map +1 -0
- package/dist/entry-adapters-next.d.cts +35 -0
- package/dist/entry-adapters-next.d.mts +35 -0
- package/dist/entry-adapters-next.mjs +18 -0
- package/dist/entry-adapters-next.mjs.map +1 -0
- package/dist/entry-adapters-node.cjs +7 -0
- package/dist/entry-adapters-node.d.cts +2 -0
- package/dist/entry-adapters-node.d.mts +2 -0
- package/dist/entry-adapters-node.mjs +2 -0
- package/dist/entry-auth-basic.cjs +5 -0
- package/dist/entry-auth-basic.d.cts +83 -0
- package/dist/entry-auth-basic.d.mts +83 -0
- package/dist/entry-auth-basic.mjs +2 -0
- package/dist/entry-auth-delegated.cjs +28 -0
- package/dist/entry-auth-delegated.cjs.map +1 -0
- package/dist/entry-auth-delegated.d.cts +36 -0
- package/dist/entry-auth-delegated.d.mts +36 -0
- package/dist/entry-auth-delegated.mjs +27 -0
- package/dist/entry-auth-delegated.mjs.map +1 -0
- package/dist/entry-auth-none.cjs +4 -0
- package/dist/entry-auth-none.d.cts +25 -0
- package/dist/entry-auth-none.d.mts +25 -0
- package/dist/entry-auth-none.mjs +2 -0
- package/dist/entry-auth.cjs +0 -0
- package/dist/entry-auth.d.cts +2 -0
- package/dist/entry-auth.d.mts +2 -0
- package/dist/entry-auth.mjs +1 -0
- package/dist/entry-authorization-delegated.cjs +27 -0
- package/dist/entry-authorization-delegated.cjs.map +1 -0
- package/dist/entry-authorization-delegated.d.cts +31 -0
- package/dist/entry-authorization-delegated.d.mts +31 -0
- package/dist/entry-authorization-delegated.mjs +26 -0
- package/dist/entry-authorization-delegated.mjs.map +1 -0
- package/dist/entry-authorization-none.cjs +3 -0
- package/dist/entry-authorization-none.d.cts +18 -0
- package/dist/entry-authorization-none.d.mts +18 -0
- package/dist/entry-authorization-none.mjs +2 -0
- package/dist/entry-authorization-roles.cjs +3 -0
- package/dist/entry-authorization-roles.d.cts +2 -0
- package/dist/entry-authorization-roles.d.mts +2 -0
- package/dist/entry-authorization-roles.mjs +2 -0
- package/dist/entry-authorization.cjs +35 -0
- package/dist/entry-authorization.cjs.map +1 -0
- package/dist/entry-authorization.d.cts +2 -0
- package/dist/entry-authorization.d.mts +2 -0
- package/dist/entry-authorization.mjs +34 -0
- package/dist/entry-authorization.mjs.map +1 -0
- package/dist/entry-build.cjs +481 -0
- package/dist/entry-build.cjs.map +1 -0
- package/dist/entry-build.d.cts +355 -0
- package/dist/entry-build.d.mts +355 -0
- package/dist/entry-build.mjs +460 -0
- package/dist/entry-build.mjs.map +1 -0
- package/dist/entry-cli.cjs +368 -0
- package/dist/entry-cli.cjs.map +1 -0
- package/dist/entry-cli.d.cts +275 -0
- package/dist/entry-cli.d.mts +275 -0
- package/dist/entry-cli.mjs +355 -0
- package/dist/entry-cli.mjs.map +1 -0
- package/dist/entry-drizzle-mysql.cjs +36 -0
- package/dist/entry-drizzle-mysql.cjs.map +1 -0
- package/dist/entry-drizzle-mysql.d.cts +55 -0
- package/dist/entry-drizzle-mysql.d.mts +55 -0
- package/dist/entry-drizzle-mysql.mjs +34 -0
- package/dist/entry-drizzle-mysql.mjs.map +1 -0
- package/dist/entry-drizzle-pg.cjs +38 -0
- package/dist/entry-drizzle-pg.cjs.map +1 -0
- package/dist/entry-drizzle-pg.d.cts +78 -0
- package/dist/entry-drizzle-pg.d.mts +78 -0
- package/dist/entry-drizzle-pg.mjs +36 -0
- package/dist/entry-drizzle-pg.mjs.map +1 -0
- package/dist/entry-drizzle-sqlite.cjs +20 -0
- package/dist/entry-drizzle-sqlite.cjs.map +1 -0
- package/dist/entry-drizzle-sqlite.d.cts +22 -0
- package/dist/entry-drizzle-sqlite.d.mts +22 -0
- package/dist/entry-drizzle-sqlite.mjs +19 -0
- package/dist/entry-drizzle-sqlite.mjs.map +1 -0
- package/dist/entry-hooks-log.cjs +32 -0
- package/dist/entry-hooks-log.cjs.map +1 -0
- package/dist/entry-hooks-log.d.cts +36 -0
- package/dist/entry-hooks-log.d.mts +36 -0
- package/dist/entry-hooks-log.mjs +31 -0
- package/dist/entry-hooks-log.mjs.map +1 -0
- package/dist/entry-hooks.cjs +10 -0
- package/dist/entry-hooks.d.cts +2 -0
- package/dist/entry-hooks.d.mts +2 -0
- package/dist/entry-hooks.mjs +2 -0
- package/dist/entry-server-router.cjs +235 -0
- package/dist/entry-server-router.cjs.map +1 -0
- package/dist/entry-server-router.d.cts +193 -0
- package/dist/entry-server-router.d.mts +193 -0
- package/dist/entry-server-router.mjs +228 -0
- package/dist/entry-server-router.mjs.map +1 -0
- package/dist/entry-server.cjs +344 -0
- package/dist/entry-server.cjs.map +1 -0
- package/dist/entry-server.d.cts +230 -0
- package/dist/entry-server.d.mts +230 -0
- package/dist/entry-server.mjs +322 -0
- package/dist/entry-server.mjs.map +1 -0
- package/dist/entry-site.cjs +1083 -0
- package/dist/entry-site.cjs.map +1 -0
- package/dist/entry-site.d.cts +336 -0
- package/dist/entry-site.d.mts +336 -0
- package/dist/entry-site.mjs +1060 -0
- package/dist/entry-site.mjs.map +1 -0
- package/dist/entry-storage-cloudflare-kv.cjs +51 -0
- package/dist/entry-storage-cloudflare-kv.cjs.map +1 -0
- package/dist/entry-storage-cloudflare-kv.d.cts +52 -0
- package/dist/entry-storage-cloudflare-kv.d.mts +52 -0
- package/dist/entry-storage-cloudflare-kv.mjs +50 -0
- package/dist/entry-storage-cloudflare-kv.mjs.map +1 -0
- package/dist/entry-storage-drizzle-internals.cjs +6 -0
- package/dist/entry-storage-drizzle-internals.d.cts +2 -0
- package/dist/entry-storage-drizzle-internals.d.mts +2 -0
- package/dist/entry-storage-drizzle-internals.mjs +2 -0
- package/dist/entry-storage-drizzle.cjs +4 -0
- package/dist/entry-storage-drizzle.d.cts +3 -0
- package/dist/entry-storage-drizzle.d.mts +3 -0
- package/dist/entry-storage-drizzle.mjs +2 -0
- package/dist/entry-storage-file.cjs +306 -0
- package/dist/entry-storage-file.cjs.map +1 -0
- package/dist/entry-storage-file.d.cts +76 -0
- package/dist/entry-storage-file.d.mts +76 -0
- package/dist/entry-storage-file.mjs +301 -0
- package/dist/entry-storage-file.mjs.map +1 -0
- package/dist/entry-storage-libsql-internals.cjs +7 -0
- package/dist/entry-storage-libsql-internals.d.cts +3 -0
- package/dist/entry-storage-libsql-internals.d.mts +3 -0
- package/dist/entry-storage-libsql-internals.mjs +3 -0
- package/dist/entry-storage-libsql.cjs +3 -0
- package/dist/entry-storage-libsql.d.cts +2 -0
- package/dist/entry-storage-libsql.d.mts +2 -0
- package/dist/entry-storage-libsql.mjs +2 -0
- package/dist/entry-storage-memory.cjs +78 -0
- package/dist/entry-storage-memory.cjs.map +1 -0
- package/dist/entry-storage-memory.d.cts +35 -0
- package/dist/entry-storage-memory.d.mts +35 -0
- package/dist/entry-storage-memory.mjs +77 -0
- package/dist/entry-storage-memory.mjs.map +1 -0
- package/dist/entry-storage-mongodb-internals.cjs +5 -0
- package/dist/entry-storage-mongodb-internals.d.cts +2 -0
- package/dist/entry-storage-mongodb-internals.d.mts +2 -0
- package/dist/entry-storage-mongodb-internals.mjs +2 -0
- package/dist/entry-storage-mongodb.cjs +3 -0
- package/dist/entry-storage-mongodb.d.cts +2 -0
- package/dist/entry-storage-mongodb.d.mts +2 -0
- package/dist/entry-storage-mongodb.mjs +2 -0
- package/dist/entry-storage-postgres-internals.cjs +6 -0
- package/dist/entry-storage-postgres-internals.d.cts +2 -0
- package/dist/entry-storage-postgres-internals.d.mts +2 -0
- package/dist/entry-storage-postgres-internals.mjs +2 -0
- package/dist/entry-storage-postgres.cjs +4 -0
- package/dist/entry-storage-postgres.d.cts +2 -0
- package/dist/entry-storage-postgres.d.mts +2 -0
- package/dist/entry-storage-postgres.mjs +2 -0
- package/dist/entry-storage-redis-internals.cjs +7 -0
- package/dist/entry-storage-redis-internals.d.cts +2 -0
- package/dist/entry-storage-redis-internals.d.mts +2 -0
- package/dist/entry-storage-redis-internals.mjs +2 -0
- package/dist/entry-storage-redis.cjs +4 -0
- package/dist/entry-storage-redis.d.cts +2 -0
- package/dist/entry-storage-redis.d.mts +2 -0
- package/dist/entry-storage-redis.mjs +2 -0
- package/dist/entry-storage-sqlite-internals.cjs +7 -0
- package/dist/entry-storage-sqlite-internals.d.cts +3 -0
- package/dist/entry-storage-sqlite-internals.d.mts +3 -0
- package/dist/entry-storage-sqlite-internals.mjs +3 -0
- package/dist/entry-storage-sqlite.cjs +3 -0
- package/dist/entry-storage-sqlite.d.cts +2 -0
- package/dist/entry-storage-sqlite.d.mts +2 -0
- package/dist/entry-storage-sqlite.mjs +2 -0
- package/dist/entry-storage-testing.cjs +801 -0
- package/dist/entry-storage-testing.cjs.map +1 -0
- package/dist/entry-storage-testing.d.cts +150 -0
- package/dist/entry-storage-testing.d.mts +150 -0
- package/dist/entry-storage-testing.mjs +790 -0
- package/dist/entry-storage-testing.mjs.map +1 -0
- package/dist/entry-storage-unstorage.cjs +78 -0
- package/dist/entry-storage-unstorage.cjs.map +1 -0
- package/dist/entry-storage-unstorage.d.cts +30 -0
- package/dist/entry-storage-unstorage.d.mts +30 -0
- package/dist/entry-storage-unstorage.mjs +77 -0
- package/dist/entry-storage-unstorage.mjs.map +1 -0
- package/dist/entry-storage.cjs +114 -0
- package/dist/entry-storage.cjs.map +1 -0
- package/dist/entry-storage.d.cts +152 -0
- package/dist/entry-storage.d.mts +152 -0
- package/dist/entry-storage.mjs +91 -0
- package/dist/entry-storage.mjs.map +1 -0
- package/dist/entry-testing.cjs +79 -0
- package/dist/entry-testing.cjs.map +1 -0
- package/dist/entry-testing.d.cts +55 -0
- package/dist/entry-testing.d.mts +55 -0
- package/dist/entry-testing.mjs +77 -0
- package/dist/entry-testing.mjs.map +1 -0
- package/dist/entry-tokens.cjs +4 -0
- package/dist/entry-tokens.d.cts +85 -0
- package/dist/entry-tokens.d.mts +85 -0
- package/dist/entry-tokens.mjs +2 -0
- package/dist/entry-ui-embed.cjs +131 -0
- package/dist/entry-ui-embed.cjs.map +1 -0
- package/dist/entry-ui-embed.d.cts +87 -0
- package/dist/entry-ui-embed.d.mts +87 -0
- package/dist/entry-ui-embed.mjs +127 -0
- package/dist/entry-ui-embed.mjs.map +1 -0
- package/dist/entry-ui.cjs +795 -0
- package/dist/entry-ui.cjs.map +1 -0
- package/dist/entry-ui.d.cts +574 -0
- package/dist/entry-ui.d.mts +574 -0
- package/dist/entry-ui.mjs +731 -0
- package/dist/entry-ui.mjs.map +1 -0
- package/dist/entry-util.cjs +145 -0
- package/dist/entry-util.cjs.map +1 -0
- package/dist/entry-util.d.cts +85 -0
- package/dist/entry-util.d.mts +85 -0
- package/dist/entry-util.mjs +130 -0
- package/dist/entry-util.mjs.map +1 -0
- package/dist/http-B_rTnLW9.cjs +235 -0
- package/dist/http-B_rTnLW9.cjs.map +1 -0
- package/dist/http-CxYM7kPT.d.mts +133 -0
- package/dist/http-DVdVI6kJ.mjs +164 -0
- package/dist/http-DVdVI6kJ.mjs.map +1 -0
- package/dist/http-XBVRk8uo.d.cts +133 -0
- package/dist/index.cjs +8 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +6 -0
- package/dist/index.d.mts +6 -0
- package/dist/index.mjs +7 -0
- package/dist/index.mjs.map +1 -0
- package/dist/json-CCyzstIm.d.cts +44 -0
- package/dist/json-CCyzstIm.d.mts +44 -0
- package/dist/json-CM7TwYQ7.cjs +92 -0
- package/dist/json-CM7TwYQ7.cjs.map +1 -0
- package/dist/json-CmM1M5Kz.mjs +63 -0
- package/dist/json-CmM1M5Kz.mjs.map +1 -0
- package/dist/keys-Bwubabk0.mjs +73 -0
- package/dist/keys-Bwubabk0.mjs.map +1 -0
- package/dist/keys-DQrwxDKI.cjs +126 -0
- package/dist/keys-DQrwxDKI.cjs.map +1 -0
- package/dist/kv-sqlite-B6iTLOx2.d.cts +20 -0
- package/dist/kv-sqlite-CHOdIMJ-.cjs +77 -0
- package/dist/kv-sqlite-CHOdIMJ-.cjs.map +1 -0
- package/dist/kv-sqlite-DIIPfflJ.mjs +66 -0
- package/dist/kv-sqlite-DIIPfflJ.mjs.map +1 -0
- package/dist/kv-sqlite-Tx4UedJs.d.mts +20 -0
- package/dist/libsql-0160BubR.d.mts +65 -0
- package/dist/libsql-BZmRZIqt.d.cts +65 -0
- package/dist/libsql-CiBfVtbS.cjs +103 -0
- package/dist/libsql-CiBfVtbS.cjs.map +1 -0
- package/dist/libsql-CkOjQINi.mjs +86 -0
- package/dist/libsql-CkOjQINi.mjs.map +1 -0
- package/dist/mongodb--Cuj7V_9.cjs +150 -0
- package/dist/mongodb--Cuj7V_9.cjs.map +1 -0
- package/dist/mongodb-DGtsolQ2.d.cts +61 -0
- package/dist/mongodb-JMizy4Wg.mjs +127 -0
- package/dist/mongodb-JMizy4Wg.mjs.map +1 -0
- package/dist/mongodb-xGEU5Gwz.d.mts +61 -0
- package/dist/node-B1Djcwfi.d.cts +57 -0
- package/dist/node-B1Djcwfi.d.mts +57 -0
- package/dist/node-BYjocCbU.mjs +167 -0
- package/dist/node-BYjocCbU.mjs.map +1 -0
- package/dist/node-DFFqYRk-.cjs +201 -0
- package/dist/node-DFFqYRk-.cjs.map +1 -0
- package/dist/none-BEY7Kc_-.mjs +33 -0
- package/dist/none-BEY7Kc_-.mjs.map +1 -0
- package/dist/none-BoQ6-30P.cjs +33 -0
- package/dist/none-BoQ6-30P.cjs.map +1 -0
- package/dist/none-CHwVkQL-.cjs +49 -0
- package/dist/none-CHwVkQL-.cjs.map +1 -0
- package/dist/none-yu3qC47E.mjs +23 -0
- package/dist/none-yu3qC47E.mjs.map +1 -0
- package/dist/peer-BIjBFzwQ.cjs +56 -0
- package/dist/peer-BIjBFzwQ.cjs.map +1 -0
- package/dist/peer-CTHMzOdn.mjs +40 -0
- package/dist/peer-CTHMzOdn.mjs.map +1 -0
- package/dist/portal-container-CJIcau3B.mjs +610 -0
- package/dist/portal-container-CJIcau3B.mjs.map +1 -0
- package/dist/portal-container-Ca1NxrLE.cjs +774 -0
- package/dist/portal-container-Ca1NxrLE.cjs.map +1 -0
- package/dist/postgres-BJzxKBk0.d.cts +72 -0
- package/dist/postgres-CA8_XcAE.cjs +164 -0
- package/dist/postgres-CA8_XcAE.cjs.map +1 -0
- package/dist/postgres-RfQMgAsj.d.mts +72 -0
- package/dist/postgres-aDiBmNzr.mjs +135 -0
- package/dist/postgres-aDiBmNzr.mjs.map +1 -0
- package/dist/redis-B2AS4xAQ.cjs +259 -0
- package/dist/redis-B2AS4xAQ.cjs.map +1 -0
- package/dist/redis-B362ofBw.d.cts +159 -0
- package/dist/redis-CahNAVTW.d.mts +159 -0
- package/dist/redis-hdoKymfG.mjs +218 -0
- package/dist/redis-hdoKymfG.mjs.map +1 -0
- package/dist/roles-7JPrQXZa.mjs +46 -0
- package/dist/roles-7JPrQXZa.mjs.map +1 -0
- package/dist/roles-B_8QqJ3j.cjs +56 -0
- package/dist/roles-B_8QqJ3j.cjs.map +1 -0
- package/dist/roles-DLISB4T3.d.mts +41 -0
- package/dist/roles-DQbbtUPW.d.cts +41 -0
- package/dist/rolldown-runtime-D7D4PA-g.mjs +13 -0
- package/dist/scope-css-BN3jf0ly.cjs +315 -0
- package/dist/scope-css-BN3jf0ly.cjs.map +1 -0
- package/dist/scope-css-BuJfRCsE.mjs +256 -0
- package/dist/scope-css-BuJfRCsE.mjs.map +1 -0
- package/dist/scoped-BRoE1W1x.cjs +175 -0
- package/dist/scoped-BRoE1W1x.cjs.map +1 -0
- package/dist/scoped-cFBbotCh.mjs +164 -0
- package/dist/scoped-cFBbotCh.mjs.map +1 -0
- package/dist/sqlite-B2g1JJz1.d.cts +47 -0
- package/dist/sqlite-BIPIlxfj.d.mts +47 -0
- package/dist/sqlite-BntoYaXZ.cjs +79 -0
- package/dist/sqlite-BntoYaXZ.cjs.map +1 -0
- package/dist/sqlite-DYJDcu7p.mjs +62 -0
- package/dist/sqlite-DYJDcu7p.mjs.map +1 -0
- package/dist/table-BrioFSra.d.cts +11 -0
- package/dist/table-BrioFSra.d.mts +11 -0
- package/dist/theme-context-DzZ1otaD.d.cts +270 -0
- package/dist/theme-context-J65pythD.d.mts +270 -0
- package/dist/ui/styles.css +239 -0
- package/dist/util-Dnj5T-yw.mjs +39 -0
- package/dist/util-Dnj5T-yw.mjs.map +1 -0
- package/dist/util-dAnTK9x-.cjs +74 -0
- package/dist/util-dAnTK9x-.cjs.map +1 -0
- package/dist/validation-B-atP968.mjs +191 -0
- package/dist/validation-B-atP968.mjs.map +1 -0
- package/dist/validation-BJifGoB2.d.mts +122 -0
- package/dist/validation-DLnzBVJr.cjs +258 -0
- package/dist/validation-DLnzBVJr.cjs.map +1 -0
- package/dist/validation-tfV2qhbD.d.cts +122 -0
- package/package.json +715 -4
- package/tsconfig/assets.d.ts +21 -0
- package/tsconfig/base.json +21 -0
- package/tsconfig/react.json +9 -0
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
import { Application } from "typedoc";
|
|
2
|
+
import { StarlightPlugin } from "@astrojs/starlight/types";
|
|
3
|
+
import { AstroUserConfig } from "astro";
|
|
4
|
+
|
|
5
|
+
//#region src/site/manifest.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* A docs site's information architecture: which repository Markdown becomes which page, and the
|
|
8
|
+
* sidebar tree. `syncSite` reads it to write `src/content/docs/`, and `defineXtandardSite` reads it
|
|
9
|
+
* to build the sidebar, so a page and its sidebar entry cannot drift.
|
|
10
|
+
*
|
|
11
|
+
* The Markdown in the repository (README.md, docs/*.md) stays the single source of truth: it is what
|
|
12
|
+
* GitHub and npm render. A page is one of:
|
|
13
|
+
*
|
|
14
|
+
* - a whole repository file (`src`);
|
|
15
|
+
* - some H2 sections of one (`src` + `sections`, optionally `intro` for the text above the first H2).
|
|
16
|
+
* Every H2 of a split guide must land on exactly one page;
|
|
17
|
+
* - a page written for the site only (`site`, relative to `site/content/`).
|
|
18
|
+
*
|
|
19
|
+
* A page marked `pending` is a guide that has not landed yet. While its `src` is missing it is left
|
|
20
|
+
* out of the site, and links to it go to GitHub (with a warning) instead of failing the build.
|
|
21
|
+
*
|
|
22
|
+
* Plain Node APIs only: Astro loads this through Vite, and the sync step runs it directly.
|
|
23
|
+
*
|
|
24
|
+
* @module
|
|
25
|
+
*/
|
|
26
|
+
/** One page of the site. */
|
|
27
|
+
interface SitePage {
|
|
28
|
+
/** Route without the base and without slashes; `""` is the home page. */
|
|
29
|
+
slug: string;
|
|
30
|
+
/** Sidebar label; the page title when absent. */
|
|
31
|
+
label?: string;
|
|
32
|
+
/** Repository file the page is built from. */
|
|
33
|
+
src?: string;
|
|
34
|
+
/** Only these H2 sections of `src` (by heading text, in file order). */
|
|
35
|
+
sections?: string[];
|
|
36
|
+
/** With `sections`: also the H1 and the text above the first H2. */
|
|
37
|
+
intro?: boolean;
|
|
38
|
+
/** Page title when it does not come from the source's H1. */
|
|
39
|
+
title?: string;
|
|
40
|
+
/** Meta description when the first paragraph of the source does not make a good one. */
|
|
41
|
+
description?: string;
|
|
42
|
+
/** Site-only page in `site/content/` (`.md` or `.mdx`). */
|
|
43
|
+
site?: string;
|
|
44
|
+
/** Contributor-only material: a banner says so and search skips it. */
|
|
45
|
+
internal?: boolean;
|
|
46
|
+
/** A guide that has not landed yet: left out (links go to GitHub) until `src` exists. */
|
|
47
|
+
pending?: boolean;
|
|
48
|
+
}
|
|
49
|
+
/** An external sidebar link. */
|
|
50
|
+
interface SiteLink {
|
|
51
|
+
label: string;
|
|
52
|
+
link: string;
|
|
53
|
+
}
|
|
54
|
+
/** A sidebar group. */
|
|
55
|
+
interface SiteGroup {
|
|
56
|
+
label: string;
|
|
57
|
+
collapsed?: boolean;
|
|
58
|
+
items: SiteItem[];
|
|
59
|
+
}
|
|
60
|
+
/** A sidebar item. */
|
|
61
|
+
type SiteItem = SitePage | SiteLink | SiteGroup;
|
|
62
|
+
/** A public entry point: its API reference module, import specifier and source file. */
|
|
63
|
+
interface ApiEntry {
|
|
64
|
+
/** TypeDoc module name (its `@module` tag) and route under `/api/`: the subpath, or the root name. */
|
|
65
|
+
name: string;
|
|
66
|
+
/** `@xtandard/kit/storage`. */
|
|
67
|
+
importPath: string;
|
|
68
|
+
/** Repository-relative source file. */
|
|
69
|
+
source: string;
|
|
70
|
+
}
|
|
71
|
+
/** Options for {@link defineSiteManifest}. */
|
|
72
|
+
interface SiteManifestOptions {
|
|
73
|
+
/** Absolute path of the repository root. */
|
|
74
|
+
repoRoot: string;
|
|
75
|
+
/** Absolute path of the site directory; `<repoRoot>/site` by default. */
|
|
76
|
+
siteDir?: string;
|
|
77
|
+
/** `owner/repo` on GitHub. */
|
|
78
|
+
repoSlug: string;
|
|
79
|
+
/** The npm package name (`@xtandard/flags`). */
|
|
80
|
+
packageName: string;
|
|
81
|
+
/** The API module name of the package root (its `@module` tag); the unscoped name by default. */
|
|
82
|
+
rootModule?: string;
|
|
83
|
+
/** Default branch; `"main"`. */
|
|
84
|
+
branch?: string;
|
|
85
|
+
/** Default site origin; overridden by `SITE_ORIGIN`. `https://me.xantiagoma.com` by default. */
|
|
86
|
+
origin?: string;
|
|
87
|
+
/** Default base path (`"/xtandard-flags"`); overridden by `SITE_BASE`. */
|
|
88
|
+
base: string;
|
|
89
|
+
/** The home page; `{ slug: "", site: "index.mdx" }` by default. */
|
|
90
|
+
home?: SitePage;
|
|
91
|
+
/** The sidebar tree, pending pages included. */
|
|
92
|
+
sidebar: SiteItem[];
|
|
93
|
+
/** `docs/` Markdown files that are not guides (skipped by the "every guide is a page" check). */
|
|
94
|
+
ignoreDocs?: (path: string) => boolean;
|
|
95
|
+
/** `docs/assets/` files served at the site root; favicons and the social card by default. */
|
|
96
|
+
publicAssets?: string[];
|
|
97
|
+
/** Environment to read `SITE_ORIGIN`/`SITE_BASE` from; `process.env` by default. */
|
|
98
|
+
env?: Record<string, string | undefined>;
|
|
99
|
+
}
|
|
100
|
+
/** A resolved site manifest. */
|
|
101
|
+
interface SiteManifest {
|
|
102
|
+
repoRoot: string;
|
|
103
|
+
siteDir: string;
|
|
104
|
+
repoSlug: string;
|
|
105
|
+
repoUrl: string;
|
|
106
|
+
npmUrl: string;
|
|
107
|
+
packageName: string;
|
|
108
|
+
rootModule: string;
|
|
109
|
+
branch: string;
|
|
110
|
+
/** Always `https://` (configure-pages reports a custom domain as `http://`). */
|
|
111
|
+
siteOrigin: string;
|
|
112
|
+
/** No trailing slash. */
|
|
113
|
+
siteBase: string;
|
|
114
|
+
home: SitePage;
|
|
115
|
+
/** The sidebar tree without the pending guides that have not landed yet. */
|
|
116
|
+
sidebar: SiteItem[];
|
|
117
|
+
publicAssets: string[];
|
|
118
|
+
ignoreDocs: (path: string) => boolean;
|
|
119
|
+
/** Every page, the home page first (pending guides only once they exist). */
|
|
120
|
+
pages(): SitePage[];
|
|
121
|
+
/** Pending guides whose source does not exist yet. */
|
|
122
|
+
pendingPages(): SitePage[];
|
|
123
|
+
/** Every public entry point, in `package.json` `exports` order. */
|
|
124
|
+
apiEntries(): ApiEntry[];
|
|
125
|
+
}
|
|
126
|
+
/** Whether a sidebar item is a page. */
|
|
127
|
+
declare const isPage: (i: SiteItem) => i is SitePage;
|
|
128
|
+
/** Whether a sidebar item is a group. */
|
|
129
|
+
declare const isGroup: (i: SiteItem) => i is SiteGroup;
|
|
130
|
+
/**
|
|
131
|
+
* Every public entry point of the package at `repoRoot`, in `exports` order. Skips stylesheets,
|
|
132
|
+
* wildcards, JSON and `./package.json`. A subpath maps to `src/entry-<subpath with dashes>.ts` when
|
|
133
|
+
* that file exists, otherwise to `src/<subpath>.ts(x)`; the root maps to `src/index.ts`.
|
|
134
|
+
*/
|
|
135
|
+
declare function apiEntries(repoRoot: string, packageName: string, rootModule: string): ApiEntry[];
|
|
136
|
+
/** Resolve a site manifest from the product's options. */
|
|
137
|
+
declare function defineSiteManifest(options: SiteManifestOptions): SiteManifest;
|
|
138
|
+
//#endregion
|
|
139
|
+
//#region src/site/sync.d.ts
|
|
140
|
+
/**
|
|
141
|
+
* GitHub's heading anchors (github-slugger): lowercase, punctuation and symbols removed, spaces to
|
|
142
|
+
* `-`, repeats suffixed `-1`, `-2`…
|
|
143
|
+
*/
|
|
144
|
+
declare class Slugger {
|
|
145
|
+
private seen;
|
|
146
|
+
/** The anchor for `text`, unique within this slugger. */
|
|
147
|
+
slug(text: string): string;
|
|
148
|
+
}
|
|
149
|
+
/** Calls `fn` on each line outside fenced code blocks; code lines are kept as they are. */
|
|
150
|
+
declare function mapProse(lines: string[], fn: (line: string) => string): string[];
|
|
151
|
+
/** Plain text of a Markdown inline string (titles, descriptions, heading slugs). */
|
|
152
|
+
declare const plain: (s: string) => string;
|
|
153
|
+
/** GitHub alerts (`> [!WARNING]` + quoted lines) → Starlight asides (`:::caution`). */
|
|
154
|
+
declare function alerts(lines: string[]): string[];
|
|
155
|
+
/** The first paragraph of prose, as a meta description of at most ~200 characters. */
|
|
156
|
+
declare function describeMarkdown(lines: string[]): string | undefined;
|
|
157
|
+
/** What {@link syncSite} did. */
|
|
158
|
+
interface SyncResult {
|
|
159
|
+
/** Pages written. */
|
|
160
|
+
written: number;
|
|
161
|
+
/** Problems that fail the build. */
|
|
162
|
+
errors: string[];
|
|
163
|
+
/** Links to pending guides, sent to GitHub for now. */
|
|
164
|
+
warnings: string[];
|
|
165
|
+
}
|
|
166
|
+
/** Write `site/src/content/docs/` and `site/public/` from the manifest. */
|
|
167
|
+
declare function syncSite(m: SiteManifest): SyncResult;
|
|
168
|
+
/** Run {@link syncSite} and print the outcome; resolves to the exit code (the sync script's). */
|
|
169
|
+
declare function runSync(m: SiteManifest, io?: {
|
|
170
|
+
log: (l: string) => void;
|
|
171
|
+
error: (l: string) => void;
|
|
172
|
+
}): number;
|
|
173
|
+
//#endregion
|
|
174
|
+
//#region src/site/typedoc-plugin.d.ts
|
|
175
|
+
/**
|
|
176
|
+
* A re-export: `name` in module `module` is documented in `owner` as the `kind` member `target`
|
|
177
|
+
* (a different name for a renamed or `default` export).
|
|
178
|
+
*/
|
|
179
|
+
interface Reexport {
|
|
180
|
+
module: string;
|
|
181
|
+
name: string;
|
|
182
|
+
owner: string;
|
|
183
|
+
kind: string;
|
|
184
|
+
target: string;
|
|
185
|
+
}
|
|
186
|
+
/** Where the plugin writes, and `apiOverviews` reads, the re-exports of a site. */
|
|
187
|
+
declare function reexportsFile(siteDir: string): string;
|
|
188
|
+
/** Read the re-exports the plugin recorded for a site (`[]` before the first API build). */
|
|
189
|
+
declare function readReexports(siteDir: string): Reexport[];
|
|
190
|
+
/** Import the site's `typedoc` and `typescript` (the instances starlight-typedoc uses). */
|
|
191
|
+
declare function loadSiteModules(siteDir: string): Promise<{
|
|
192
|
+
typedoc: typeof import("typedoc");
|
|
193
|
+
typescript: typeof import("typescript");
|
|
194
|
+
}>;
|
|
195
|
+
/** Options for {@link createTypedocPlugin}. */
|
|
196
|
+
interface TypedocPluginOptions {
|
|
197
|
+
/** Module name per entry file (absolute path → `storage/redis`); see `manifest.apiEntries()`. */
|
|
198
|
+
moduleNames?: Record<string, string>;
|
|
199
|
+
/**
|
|
200
|
+
* The site's `typedoc` and `typescript` modules, already imported. `defineXtandardSite` passes
|
|
201
|
+
* them, because a dynamic import inside the plugin can run after the loader that evaluated the
|
|
202
|
+
* Astro config has closed. Without them, the plugin imports both from the site when it loads.
|
|
203
|
+
*/
|
|
204
|
+
modules?: {
|
|
205
|
+
typedoc: typeof import("typedoc");
|
|
206
|
+
typescript: typeof import("typescript");
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* Create the TypeDoc plugin for the site at `siteDir`. Pass the returned function in TypeDoc's
|
|
211
|
+
* `plugin` option (TypeDoc 0.26+ accepts plugin functions and awaits them).
|
|
212
|
+
*/
|
|
213
|
+
declare function createTypedocPlugin(siteDir: string, options?: TypedocPluginOptions): (app: Application) => Promise<void>;
|
|
214
|
+
//#endregion
|
|
215
|
+
//#region src/site/resolve.d.ts
|
|
216
|
+
/**
|
|
217
|
+
* Load a docs-site peer from the **site's** install. The site has its own `package.json` and
|
|
218
|
+
* `node_modules`, and the integrations must be the instances Astro and starlight-typedoc use there
|
|
219
|
+
* (one `typedoc`, one `typescript`). Resolving from the kit's own location would find other
|
|
220
|
+
* copies, or none, whenever the kit is not installed inside `site/node_modules`: a hoisted install,
|
|
221
|
+
* or the kit's own site, whose `file:..` dependency is a tree of symlinks into the repo.
|
|
222
|
+
*
|
|
223
|
+
* @module
|
|
224
|
+
*/
|
|
225
|
+
/**
|
|
226
|
+
* The ESM entry file of package `name` as installed for `fromDir` (looking in `node_modules` from
|
|
227
|
+
* `fromDir` upwards), or `undefined` when it isn't installed there.
|
|
228
|
+
*/
|
|
229
|
+
declare function resolvePackageEntry(name: string, fromDir: string): string | undefined;
|
|
230
|
+
/**
|
|
231
|
+
* Import package `name` as installed for the site at `siteDir`; when the site doesn't have it,
|
|
232
|
+
* fall back to a plain `import()` from the kit (and a clear "install it" error when that fails).
|
|
233
|
+
*/
|
|
234
|
+
declare function importFromSite<T>(name: string, siteDir: string): Promise<T>;
|
|
235
|
+
//#endregion
|
|
236
|
+
//#region src/site/api-overviews.d.ts
|
|
237
|
+
/** A module's leading doc comment, without the `Import from` line and the tags; `{@link}`s become code spans. */
|
|
238
|
+
declare function moduleDescription(text: string): string;
|
|
239
|
+
/** Options for {@link apiOverviews}. */
|
|
240
|
+
interface ApiOverviewsOptions {
|
|
241
|
+
/**
|
|
242
|
+
* Slug of the site's "Entry points" page, linked from `/api/` (`"entry-points"`), or `false`
|
|
243
|
+
* when the site has none. Default: `"entry-points"` when the manifest has that page.
|
|
244
|
+
*/
|
|
245
|
+
entryPointsSlug?: string | false;
|
|
246
|
+
}
|
|
247
|
+
/** The overview-pages plugin; add it after starlight-typedoc (plugins run in order). */
|
|
248
|
+
declare function apiOverviews(manifest: SiteManifest, options?: ApiOverviewsOptions): StarlightPlugin;
|
|
249
|
+
/**
|
|
250
|
+
* Write `index.md` for `/api/` and each `/api/<module>/` under `apiDir` (starlight-typedoc's
|
|
251
|
+
* output). Resolves to the number of modules.
|
|
252
|
+
*/
|
|
253
|
+
declare function writeApiOverviews(manifest: SiteManifest, apiDir: string, options?: ApiOverviewsOptions): number;
|
|
254
|
+
//#endregion
|
|
255
|
+
//#region src/site/define-site.d.ts
|
|
256
|
+
type IntegrationFactory = (options: Record<string, unknown>) => unknown;
|
|
257
|
+
/** A Starlight sidebar entry. */
|
|
258
|
+
type StarlightSidebarItem = {
|
|
259
|
+
slug: string;
|
|
260
|
+
label?: string;
|
|
261
|
+
} | {
|
|
262
|
+
label: string;
|
|
263
|
+
link: string;
|
|
264
|
+
} | {
|
|
265
|
+
label: string;
|
|
266
|
+
collapsed?: boolean;
|
|
267
|
+
items: StarlightSidebarItem[];
|
|
268
|
+
};
|
|
269
|
+
/** The manifest's sidebar as Starlight sidebar entries. */
|
|
270
|
+
declare function toStarlightSidebar(items: SiteItem[]): StarlightSidebarItem[];
|
|
271
|
+
/**
|
|
272
|
+
* The API entry files in documentation order: `apiOwners` first (a symbol exported by several
|
|
273
|
+
* entry points is documented under the first one TypeDoc meets), then the rest alphabetically — a
|
|
274
|
+
* fixed order, since a glob's order differs between file systems. Throws when an owner is not an
|
|
275
|
+
* entry point.
|
|
276
|
+
*/
|
|
277
|
+
declare function orderedEntryPoints(manifest: SiteManifest, apiOwners?: string[]): string[];
|
|
278
|
+
/** Options for {@link defineXtandardSite}. */
|
|
279
|
+
interface XtandardSiteOptions {
|
|
280
|
+
/** The site manifest (`defineSiteManifest`), shared with the sync script. */
|
|
281
|
+
manifest: SiteManifest;
|
|
282
|
+
/** Meta description of the site. */
|
|
283
|
+
description: string;
|
|
284
|
+
/** The social card's tagline, for its alt text. */
|
|
285
|
+
tagline: string;
|
|
286
|
+
/** Entry files other entry points re-export from, in ownership order (`src/core.ts`…). */
|
|
287
|
+
apiOwners?: string[];
|
|
288
|
+
/** `astro dev` / `preview` port (wh 4323, fl 4322, au 4326, li 4331, en 4324). */
|
|
289
|
+
devPort?: number;
|
|
290
|
+
/** Palette stylesheet(s), relative to the site; `./src/styles/brand.css` by default. */
|
|
291
|
+
brandCss?: string | string[];
|
|
292
|
+
/** Site title; the package name by default. */
|
|
293
|
+
title?: string;
|
|
294
|
+
/**
|
|
295
|
+
* The header lockups (relative to the site), or `false` for the text title. Defaults to
|
|
296
|
+
* `../docs/assets/lockup-horizontal-{dark,light}.svg` when they exist.
|
|
297
|
+
*/
|
|
298
|
+
logo?: {
|
|
299
|
+
dark: string;
|
|
300
|
+
light: string;
|
|
301
|
+
} | false;
|
|
302
|
+
/** The TypeDoc tsconfig, relative to the site; `./typedoc.tsconfig.json` by default. */
|
|
303
|
+
typedocTsconfig?: string;
|
|
304
|
+
/** Extra TypeDoc options (merged over the defaults). */
|
|
305
|
+
typeDoc?: Record<string, unknown>;
|
|
306
|
+
/** Mermaid diagrams (`astro-mermaid`); default `true`. */
|
|
307
|
+
mermaid?: boolean;
|
|
308
|
+
/** `theme-color` meta; `#0f1215` by default. */
|
|
309
|
+
themeColor?: string;
|
|
310
|
+
/** Slug of the "Entry points" page linked from `/api/`; see `apiOverviews`. */
|
|
311
|
+
entryPointsSlug?: string | false;
|
|
312
|
+
/** Extra Starlight options, merged last. */
|
|
313
|
+
starlight?: Record<string, unknown>;
|
|
314
|
+
/**
|
|
315
|
+
* Already-imported integrations, used instead of importing them (an unusual install layout,
|
|
316
|
+
* tests). Each one left out is imported from the site's install.
|
|
317
|
+
*/
|
|
318
|
+
peers?: Partial<SitePeers>;
|
|
319
|
+
}
|
|
320
|
+
/** The integrations {@link defineXtandardSite} uses. */
|
|
321
|
+
interface SitePeers {
|
|
322
|
+
starlight: (typeof import("@astrojs/starlight"))["default"];
|
|
323
|
+
createStarlightTypeDocPlugin: (typeof import("starlight-typedoc"))["createStarlightTypeDocPlugin"];
|
|
324
|
+
linksValidator: IntegrationFactory;
|
|
325
|
+
mermaid: IntegrationFactory;
|
|
326
|
+
/** The site's `typedoc` and `typescript`, for the TypeDoc plugin. */
|
|
327
|
+
typedoc: {
|
|
328
|
+
typedoc: typeof import("typedoc");
|
|
329
|
+
typescript: typeof import("typescript");
|
|
330
|
+
};
|
|
331
|
+
}
|
|
332
|
+
/** Build the site's Astro config. */
|
|
333
|
+
declare function defineXtandardSite(options: XtandardSiteOptions): Promise<AstroUserConfig>;
|
|
334
|
+
//#endregion
|
|
335
|
+
export { type ApiEntry, type ApiOverviewsOptions, type Reexport, type SiteGroup, type SiteItem, type SiteLink, type SiteManifest, type SiteManifestOptions, type SitePage, type SitePeers, Slugger, type StarlightSidebarItem, type SyncResult, type TypedocPluginOptions, type XtandardSiteOptions, alerts, apiEntries, apiOverviews, createTypedocPlugin, defineSiteManifest, defineXtandardSite, describeMarkdown, importFromSite, isGroup, isPage, loadSiteModules, mapProse, moduleDescription, orderedEntryPoints, plain, readReexports, reexportsFile, resolvePackageEntry, runSync, syncSite, toStarlightSidebar, writeApiOverviews };
|
|
336
|
+
//# sourceMappingURL=entry-site.d.mts.map
|