@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,62 @@
|
|
|
1
|
+
import { t as importPeer } from "./peer-CTHMzOdn.mjs";
|
|
2
|
+
import { n as assertIdentifier } from "./util-Dnj5T-yw.mjs";
|
|
3
|
+
import { n as sqliteKvStorage, t as sqliteKvSchema } from "./kv-sqlite-DIIPfflJ.mjs";
|
|
4
|
+
//#region src/storage/sqlite.ts
|
|
5
|
+
const SUBPATH = "@xtandard/kit/storage/sqlite";
|
|
6
|
+
/**
|
|
7
|
+
* Build a {@link SqliteConnection} that opens `path` (or borrows `database`) and runs `ddl` once.
|
|
8
|
+
* Products add their own tables by passing extra statements.
|
|
9
|
+
*/
|
|
10
|
+
function sqliteConnection(options, ddl) {
|
|
11
|
+
let db = options.database;
|
|
12
|
+
const ownsDb = !options.database;
|
|
13
|
+
let ready;
|
|
14
|
+
return {
|
|
15
|
+
get() {
|
|
16
|
+
ready ??= (async () => {
|
|
17
|
+
if (!db) {
|
|
18
|
+
if (typeof globalThis.Bun === "undefined") throw new Error(`${SUBPATH} requires the Bun runtime (bun:sqlite)`);
|
|
19
|
+
const { Database: Ctor } = await importPeer("bun:sqlite", SUBPATH, () => import("bun:sqlite"));
|
|
20
|
+
db = new Ctor(options.path ?? ":memory:");
|
|
21
|
+
}
|
|
22
|
+
for (const statement of ddl) db.run(statement);
|
|
23
|
+
return db;
|
|
24
|
+
})().catch((error) => {
|
|
25
|
+
ready = void 0;
|
|
26
|
+
throw error;
|
|
27
|
+
});
|
|
28
|
+
return ready;
|
|
29
|
+
},
|
|
30
|
+
close() {
|
|
31
|
+
if (ownsDb) db?.close();
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
/** Adapt a `bun:sqlite` database to the positional-args {@link SqliteExecutor}. */
|
|
36
|
+
function bunSqliteExecutor(db) {
|
|
37
|
+
return { async all(sql, args) {
|
|
38
|
+
return db.query(sql).all(...args);
|
|
39
|
+
} };
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Create a SQLite-backed storage. Requires the Bun runtime once used.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* import { createSqliteStorage } from "@xtandard/kit/storage/sqlite";
|
|
47
|
+
*
|
|
48
|
+
* const storage = createSqliteStorage({ path: "./data.sqlite", table: "xtandard_kv" });
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
function createSqliteStorage(options = {}) {
|
|
52
|
+
const table = assertIdentifier(options.table ?? "xtandard_kv");
|
|
53
|
+
const connection = sqliteConnection(options, [sqliteKvSchema(table)]);
|
|
54
|
+
return {
|
|
55
|
+
...sqliteKvStorage(table, async () => bunSqliteExecutor(await connection.get())),
|
|
56
|
+
close: connection.close
|
|
57
|
+
};
|
|
58
|
+
}
|
|
59
|
+
//#endregion
|
|
60
|
+
export { createSqliteStorage as n, sqliteConnection as r, bunSqliteExecutor as t };
|
|
61
|
+
|
|
62
|
+
//# sourceMappingURL=sqlite-DYJDcu7p.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sqlite-DYJDcu7p.mjs","names":[],"sources":["../src/storage/sqlite.ts"],"sourcesContent":["/**\n * SQLite storage driver on `bun:sqlite`: **Bun only**, zero npm dependencies. Durable, fast and\n * file-backed (or in-memory) for single-node deployments and local persistence.\n *\n * `bun:sqlite` is loaded lazily on first use, so importing this module works under any runtime\n * (only opening a database needs Bun). Values are canonical JSON, so `compareAndSwap` is one\n * conditional `UPDATE` (atomic across processes sharing the file); see `kv-sqlite.ts`.\n *\n * @module\n */\n\nimport type { Database } from \"bun:sqlite\";\nimport { importPeer } from \"../internal/peer.ts\";\nimport type { CompareAndSwapKvStorage } from \"./contract.ts\";\nimport { sqliteKvSchema, sqliteKvStorage, type SqliteExecutor } from \"./kv-sqlite.ts\";\nimport { assertIdentifier } from \"./util.ts\";\n\nconst SUBPATH = \"@xtandard/kit/storage/sqlite\";\n\n/** Options for {@link createSqliteStorage}. */\nexport interface SqliteStorageOptions {\n /** Database file path. Default `\":memory:\"`. Ignored when `database` is given. */\n path?: string;\n /** An existing `bun:sqlite` `Database` to use instead of opening one. Never closed. */\n database?: Database;\n /** Table name (default `\"xtandard_kv\"`; products pass theirs). Validated as a safe identifier. */\n table?: string;\n}\n\n/** A compare-and-swap capable storage backed by SQLite, plus `close()`. */\nexport interface SqliteKvStorage extends CompareAndSwapKvStorage {\n /** Close the database if this driver opened it; no-op for a borrowed one. */\n close(): void;\n}\n\n/** A lazily opened `bun:sqlite` database whose DDL runs once (semi-public, ADR 0004). */\nexport interface SqliteConnection {\n /** Resolve the database, opening it and running the DDL on first use (retried after a failure). */\n get(): Promise<Database>;\n /** Close the database if this connection opened it. */\n close(): void;\n}\n\n/**\n * Build a {@link SqliteConnection} that opens `path` (or borrows `database`) and runs `ddl` once.\n * Products add their own tables by passing extra statements.\n */\nexport function sqliteConnection(\n options: Pick<SqliteStorageOptions, \"path\" | \"database\">,\n ddl: string[],\n): SqliteConnection {\n let db: Database | undefined = options.database;\n const ownsDb = !options.database;\n let ready: Promise<Database> | undefined;\n return {\n get(): Promise<Database> {\n ready ??= (async () => {\n if (!db) {\n if (typeof (globalThis as { Bun?: unknown }).Bun === \"undefined\") {\n throw new Error(`${SUBPATH} requires the Bun runtime (bun:sqlite)`);\n }\n const { Database: Ctor } = await importPeer(\n \"bun:sqlite\",\n SUBPATH,\n () => import(\"bun:sqlite\"),\n );\n db = new Ctor(options.path ?? \":memory:\");\n }\n for (const statement of ddl) db.run(statement);\n return db;\n })().catch((error: unknown) => {\n ready = undefined;\n throw error;\n });\n return ready;\n },\n close(): void {\n if (ownsDb) db?.close();\n },\n };\n}\n\n/** Adapt a `bun:sqlite` database to the positional-args {@link SqliteExecutor}. */\nexport function bunSqliteExecutor(db: Database): SqliteExecutor {\n return {\n async all(sql, args) {\n return db.query(sql).all(...(args as never[])) as Array<Record<string, unknown>>;\n },\n };\n}\n\n/**\n * Create a SQLite-backed storage. Requires the Bun runtime once used.\n *\n * @example\n * ```ts\n * import { createSqliteStorage } from \"@xtandard/kit/storage/sqlite\";\n *\n * const storage = createSqliteStorage({ path: \"./data.sqlite\", table: \"xtandard_kv\" });\n * ```\n */\nexport function createSqliteStorage(options: SqliteStorageOptions = {}): SqliteKvStorage {\n const table = assertIdentifier(options.table ?? \"xtandard_kv\");\n const connection = sqliteConnection(options, [sqliteKvSchema(table)]);\n return {\n ...sqliteKvStorage(table, async () => bunSqliteExecutor(await connection.get())),\n close: connection.close,\n };\n}\n"],"mappings":";;;;AAiBA,MAAM,UAAU;;;;;AA8BhB,SAAgB,iBACd,SACA,KACkB;CAClB,IAAI,KAA2B,QAAQ;CACvC,MAAM,SAAS,CAAC,QAAQ;CACxB,IAAI;CACJ,OAAO;EACL,MAAyB;GACvB,WAAW,YAAY;IACrB,IAAI,CAAC,IAAI;KACP,IAAI,OAAQ,WAAiC,QAAQ,aACnD,MAAM,IAAI,MAAM,GAAG,QAAQ,uCAAuC;KAEpE,MAAM,EAAE,UAAU,SAAS,MAAM,WAC/B,cACA,eACM,OAAO,aACf;KACA,KAAK,IAAI,KAAK,QAAQ,QAAQ,UAAU;IAC1C;IACA,KAAK,MAAM,aAAa,KAAK,GAAG,IAAI,SAAS;IAC7C,OAAO;GACT,GAAG,EAAE,OAAO,UAAmB;IAC7B,QAAQ,KAAA;IACR,MAAM;GACR,CAAC;GACD,OAAO;EACT;EACA,QAAc;GACZ,IAAI,QAAQ,IAAI,MAAM;EACxB;CACF;AACF;;AAGA,SAAgB,kBAAkB,IAA8B;CAC9D,OAAO,EACL,MAAM,IAAI,KAAK,MAAM;EACnB,OAAO,GAAG,MAAM,GAAG,EAAE,IAAI,GAAI,IAAgB;CAC/C,EACF;AACF;;;;;;;;;;;AAYA,SAAgB,oBAAoB,UAAgC,CAAC,GAAoB;CACvF,MAAM,QAAQ,iBAAiB,QAAQ,SAAS,aAAa;CAC7D,MAAM,aAAa,iBAAiB,SAAS,CAAC,eAAe,KAAK,CAAC,CAAC;CACpE,OAAO;EACL,GAAG,gBAAgB,OAAO,YAAY,kBAAkB,MAAM,WAAW,IAAI,CAAC,CAAC;EAC/E,OAAO,WAAW;CACpB;AACF"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Column, Table } from "drizzle-orm";
|
|
2
|
+
|
|
3
|
+
//#region src/drizzle/table.d.ts
|
|
4
|
+
/** A table with the fixed `key`/`value` columns the Drizzle KV storage requires. */
|
|
5
|
+
type DrizzleKvTable = Table & {
|
|
6
|
+
key: Column;
|
|
7
|
+
value: Column;
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { DrizzleKvTable as t };
|
|
11
|
+
//# sourceMappingURL=table-BrioFSra.d.cts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Column, Table } from "drizzle-orm";
|
|
2
|
+
|
|
3
|
+
//#region src/drizzle/table.d.ts
|
|
4
|
+
/** A table with the fixed `key`/`value` columns the Drizzle KV storage requires. */
|
|
5
|
+
type DrizzleKvTable = Table & {
|
|
6
|
+
key: Column;
|
|
7
|
+
value: Column;
|
|
8
|
+
};
|
|
9
|
+
//#endregion
|
|
10
|
+
export { DrizzleKvTable as t };
|
|
11
|
+
//# sourceMappingURL=table-BrioFSra.d.mts.map
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import { QueryClient } from "@tanstack/react-query";
|
|
3
|
+
import { BaseLocationHook } from "wouter";
|
|
4
|
+
import { Root } from "react-dom/client";
|
|
5
|
+
|
|
6
|
+
//#region src/ui/api-client.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* The admin SPA's HTTP client core for the panel API. Each product creates one client
|
|
9
|
+
* ({@link createApiClient}) and builds its endpoint functions on `req`/`send`. The client holds the
|
|
10
|
+
* base URL, credentials mode, fetch implementation and portal token; the bundled SPA or the React
|
|
11
|
+
* embed sets them once (one embed per product per page).
|
|
12
|
+
*
|
|
13
|
+
* @module
|
|
14
|
+
*/
|
|
15
|
+
/** The subset of `fetch` the client uses (the global `fetch` satisfies it). */
|
|
16
|
+
type FetchLike = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
|
17
|
+
/** Options for {@link ApiClient.setApiBase}. */
|
|
18
|
+
interface ApiClientOptions {
|
|
19
|
+
/** `credentials` mode for requests. Use `"include"` for cross-origin cookie auth. */
|
|
20
|
+
credentials?: RequestCredentials;
|
|
21
|
+
/** Custom fetch implementation (bearer tokens, extra headers, instrumentation). */
|
|
22
|
+
fetch?: FetchLike;
|
|
23
|
+
}
|
|
24
|
+
/** The JSON error body the panel API returns, with the HTTP status always filled in. */
|
|
25
|
+
interface ApiErrorBody {
|
|
26
|
+
/** Human-readable message. */
|
|
27
|
+
error: string;
|
|
28
|
+
/** The HTTP status of the response (forced from the response, whatever the body says). */
|
|
29
|
+
status: number;
|
|
30
|
+
/** Per-field validation issues. */
|
|
31
|
+
errors?: {
|
|
32
|
+
path: string;
|
|
33
|
+
message: string;
|
|
34
|
+
}[];
|
|
35
|
+
/** A machine-readable code, when the API sends one. */
|
|
36
|
+
code?: string;
|
|
37
|
+
[key: string]: unknown;
|
|
38
|
+
}
|
|
39
|
+
/** Thrown by the client for non-2xx responses. Products subclass it (`WebhooksApiError`…). */
|
|
40
|
+
declare class ApiError extends Error {
|
|
41
|
+
/** The HTTP status. */
|
|
42
|
+
readonly status: number;
|
|
43
|
+
/** The parsed error body. */
|
|
44
|
+
readonly body: ApiErrorBody;
|
|
45
|
+
constructor(status: number, body: ApiErrorBody);
|
|
46
|
+
}
|
|
47
|
+
/** A constructor for the error the client throws (an {@link ApiError} subclass, or compatible). */
|
|
48
|
+
type ApiErrorConstructor = new (status: number, body: ApiErrorBody) => Error;
|
|
49
|
+
/** Options for {@link createApiClient}. */
|
|
50
|
+
interface CreateApiClientOptions {
|
|
51
|
+
/** The error class to throw for non-2xx responses (the product's `…ApiError`). */
|
|
52
|
+
errorClass?: ApiErrorConstructor;
|
|
53
|
+
/** Initial base URL; `""` (relative to the page) by default. */
|
|
54
|
+
base?: string;
|
|
55
|
+
/** Initial `credentials` mode; `"same-origin"` by default. */
|
|
56
|
+
credentials?: RequestCredentials;
|
|
57
|
+
/** Initial fetch implementation; the global `fetch` by default (read at call time). */
|
|
58
|
+
fetch?: FetchLike;
|
|
59
|
+
}
|
|
60
|
+
/** A query-string value accepted by {@link toQuery}. */
|
|
61
|
+
type QueryValue = string | number | boolean | null | undefined | readonly string[];
|
|
62
|
+
/** One product's API client. */
|
|
63
|
+
interface ApiClient {
|
|
64
|
+
/** Point the client at a base URL (a trailing `/` is dropped), optionally with credentials/fetch. */
|
|
65
|
+
setApiBase(base: string, opts?: ApiClientOptions): void;
|
|
66
|
+
/** Attach a portal/viewer token as `Authorization: Bearer …` on every request (`null` clears it). */
|
|
67
|
+
setApiToken(token: string | null): void;
|
|
68
|
+
/** The token set by {@link setApiToken}, or `null`. */
|
|
69
|
+
getApiToken(): string | null;
|
|
70
|
+
/** The URL for an API path under the current base. */
|
|
71
|
+
apiUrl(path: string): string;
|
|
72
|
+
/**
|
|
73
|
+
* Fetch `path` and return the raw `Response` (for blobs, CSV, JWKS…). Throws the configured error
|
|
74
|
+
* class for non-2xx responses.
|
|
75
|
+
*/
|
|
76
|
+
send(path: string, init?: RequestInit): Promise<Response>;
|
|
77
|
+
/** Fetch `path` and parse JSON; an empty body resolves to `undefined`. */
|
|
78
|
+
req<T>(path: string, init?: RequestInit): Promise<T>;
|
|
79
|
+
/** {@link toQuery}, for convenience. */
|
|
80
|
+
query(params: Record<string, QueryValue>): string;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Build a query string (`"?a=1&b=2"`, or `""` when nothing is left), skipping `undefined`, `null`
|
|
84
|
+
* and `""`. Arrays are comma-joined (and skipped when empty); booleans become `"true"`/`"false"`.
|
|
85
|
+
*/
|
|
86
|
+
declare function toQuery(params: Record<string, QueryValue>): string;
|
|
87
|
+
/**
|
|
88
|
+
* Create one product's API client. `errorClass` is the product's error class (it receives
|
|
89
|
+
* `(status, body)`); it defaults to {@link ApiError}.
|
|
90
|
+
*
|
|
91
|
+
* ```ts
|
|
92
|
+
* export class WebhooksApiError extends ApiError {}
|
|
93
|
+
* const client = createApiClient({ errorClass: WebhooksApiError });
|
|
94
|
+
* export const { setApiBase, setApiToken } = client;
|
|
95
|
+
* export const listApps = () => client.req<App[]>("api/apps");
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
98
|
+
declare function createApiClient(options?: CreateApiClientOptions): ApiClient;
|
|
99
|
+
//#endregion
|
|
100
|
+
//#region src/ui/theme.d.ts
|
|
101
|
+
/**
|
|
102
|
+
* Theme preference: `system` (follows the OS), `light`, or `dark`. The preference is persisted in
|
|
103
|
+
* localStorage under a product key (`xtandard-<product>:theme`, passed to {@link createThemeStore});
|
|
104
|
+
* `system` live-updates when the OS scheme changes. The standalone SPA writes the resolved value to
|
|
105
|
+
* `<html data-theme>` (see {@link ThemeStore.initTheme}); the React embed writes it to its own
|
|
106
|
+
* wrapper instead, so it never touches the host document.
|
|
107
|
+
*
|
|
108
|
+
* Host detection ({@link detectHostTheme}, {@link subscribeHostTheme}) is key-free: it reads the
|
|
109
|
+
* page, not a preference.
|
|
110
|
+
*
|
|
111
|
+
* @module
|
|
112
|
+
*/
|
|
113
|
+
/** A theme preference: `system` follows the OS. */
|
|
114
|
+
type ThemePref = "system" | "light" | "dark";
|
|
115
|
+
/** A concrete theme — what every surface, text color and viewer resolves to. */
|
|
116
|
+
type ResolvedTheme = "light" | "dark";
|
|
117
|
+
/** The OS colour scheme right now (`light` when it can't be read, e.g. on the server). */
|
|
118
|
+
declare function systemTheme(): ResolvedTheme;
|
|
119
|
+
/** Call `cb` when the OS colour scheme flips. Returns the unsubscribe function. */
|
|
120
|
+
declare function subscribeSystemTheme(cb: () => void): () => void;
|
|
121
|
+
/** The concrete theme a preference resolves to right now. */
|
|
122
|
+
declare function resolveTheme(pref: ThemePref): ResolvedTheme;
|
|
123
|
+
/** A persisted theme preference, bound to one localStorage key. */
|
|
124
|
+
interface ThemeStore {
|
|
125
|
+
/** The localStorage key the preference lives under. */
|
|
126
|
+
readonly storageKey: string;
|
|
127
|
+
/** The stored preference (`system` when unset, invalid, or storage is unavailable). */
|
|
128
|
+
getThemePref(): ThemePref;
|
|
129
|
+
/** Persist `pref` and notify subscribers. */
|
|
130
|
+
setThemePref(pref: ThemePref): void;
|
|
131
|
+
/** The concrete theme the stored preference resolves to right now. */
|
|
132
|
+
getResolvedTheme(): ResolvedTheme;
|
|
133
|
+
/**
|
|
134
|
+
* Subscribe to changes of the resolved preference theme — an explicit {@link setThemePref} or,
|
|
135
|
+
* under `system`, the OS scheme flipping. Returns the unsubscribe function
|
|
136
|
+
* (`useSyncExternalStore`-compatible).
|
|
137
|
+
*/
|
|
138
|
+
subscribeThemePref(cb: () => void): () => void;
|
|
139
|
+
/**
|
|
140
|
+
* Standalone SPA only: apply the stored preference to `<html data-theme>` and keep it in sync
|
|
141
|
+
* (toggle + OS changes). Call once at boot, before first paint. Returns the unsubscribe function.
|
|
142
|
+
* The React embed does not call this — it themes its own wrapper.
|
|
143
|
+
*/
|
|
144
|
+
initTheme(): () => void;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Create the theme store for one product. `storageKey` is the product's localStorage key
|
|
148
|
+
* (`"xtandard-webhooks:theme"`…); it is a stored-data contract, so products pass it explicitly.
|
|
149
|
+
*/
|
|
150
|
+
declare function createThemeStore(storageKey: string): ThemeStore;
|
|
151
|
+
/** The bits of an element {@link detectHostTheme} reads (keeps it testable without a DOM). */
|
|
152
|
+
interface ThemeSignalSource {
|
|
153
|
+
classList: {
|
|
154
|
+
contains(token: string): boolean;
|
|
155
|
+
};
|
|
156
|
+
getAttribute(name: string): string | null;
|
|
157
|
+
style?: {
|
|
158
|
+
colorScheme?: string;
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* The host page's theme, for `theme="inherit"`: an explicit signal on `<html>` (then `<body>`) — a
|
|
163
|
+
* `dark`/`light` class, a `data-theme`/`data-mode`/`data-color-scheme` attribute, or an inline
|
|
164
|
+
* `color-scheme` — and, only when the host sets none, the OS `prefers-color-scheme`.
|
|
165
|
+
*
|
|
166
|
+
* Pass `root`/`body` to read other elements (tests, iframes); they default to the document's.
|
|
167
|
+
*/
|
|
168
|
+
declare function detectHostTheme(root?: ThemeSignalSource | null | undefined, body?: ThemeSignalSource | null | undefined): ResolvedTheme;
|
|
169
|
+
/**
|
|
170
|
+
* Watch the host page for theme switches: class/attribute/style changes on `<html>` and `<body>`,
|
|
171
|
+
* plus the OS scheme. Returns the unsubscribe function. Without a DOM or `MutationObserver` (SSR,
|
|
172
|
+
* old test environments) it only follows the OS scheme.
|
|
173
|
+
*/
|
|
174
|
+
declare function subscribeHostTheme(cb: () => void): () => void;
|
|
175
|
+
//#endregion
|
|
176
|
+
//#region src/ui/boot.d.ts
|
|
177
|
+
/** The props `bootSpa` (and `createEmbed`) pass to the product's `App`. */
|
|
178
|
+
interface ShellAppProps {
|
|
179
|
+
/** wouter location hook (browser history in the SPA; hash/browser/memory/custom in the embed). */
|
|
180
|
+
locationHook?: BaseLocationHook;
|
|
181
|
+
/** wouter search hook (the memory router's, so the query string survives `routing: "memory"`). */
|
|
182
|
+
searchHook?: () => string;
|
|
183
|
+
/** Router base path. */
|
|
184
|
+
base?: string;
|
|
185
|
+
/** Navbar logo override. */
|
|
186
|
+
logoUrl?: string;
|
|
187
|
+
/** Whether the shell shows its own theme toggle. */
|
|
188
|
+
showThemeToggle?: boolean;
|
|
189
|
+
/** Render the portal chrome regardless of `/config` (the token embed). */
|
|
190
|
+
forcePortal?: boolean;
|
|
191
|
+
}
|
|
192
|
+
/** A `QueryClient` with the shell's defaults: one retry, no refetch on window focus. */
|
|
193
|
+
declare function createShellQueryClient(): QueryClient;
|
|
194
|
+
/** Options for {@link bootSpa}. */
|
|
195
|
+
interface BootSpaOptions<P extends object = object> {
|
|
196
|
+
/** The product's root component. */
|
|
197
|
+
App: React$1.ComponentType<ShellAppProps & P>;
|
|
198
|
+
/** The global the panel handler injects (`"__WEBHOOKS_CONFIG__"`); its `basePath` is the router base. */
|
|
199
|
+
configGlobal: string;
|
|
200
|
+
/** The theme storage key (`"xtandard-webhooks:theme"`), or an existing store. */
|
|
201
|
+
themeKey: string | ThemeStore;
|
|
202
|
+
/**
|
|
203
|
+
* Take a portal token from `#token=`/`?token=`, strip it from the address bar, and attach it to
|
|
204
|
+
* `api`. Needs `api`. Default `false` (products without a portal).
|
|
205
|
+
*/
|
|
206
|
+
tokenFromUrl?: boolean;
|
|
207
|
+
/** The product's API client (for the token). */
|
|
208
|
+
api?: Pick<ApiClient, "setApiToken">;
|
|
209
|
+
/** Extra props for `App`. */
|
|
210
|
+
appProps?: P;
|
|
211
|
+
/** The mount element or its id; `"root"` by default. */
|
|
212
|
+
root?: HTMLElement | string;
|
|
213
|
+
/** Bring your own QueryClient. */
|
|
214
|
+
queryClient?: QueryClient;
|
|
215
|
+
/** Wrap in `React.StrictMode`; default `true`. */
|
|
216
|
+
strictMode?: boolean;
|
|
217
|
+
}
|
|
218
|
+
/** What {@link bootSpa} returns. */
|
|
219
|
+
interface BootedSpa {
|
|
220
|
+
root: Root;
|
|
221
|
+
queryClient: QueryClient;
|
|
222
|
+
themeStore: ThemeStore;
|
|
223
|
+
/** The token taken from the URL, if any. */
|
|
224
|
+
token: string | null;
|
|
225
|
+
}
|
|
226
|
+
/** Boot the standalone admin SPA. Call once from the product's `main.tsx`. */
|
|
227
|
+
declare function bootSpa<P extends object = object>(options: BootSpaOptions<P>): BootedSpa;
|
|
228
|
+
//#endregion
|
|
229
|
+
//#region src/ui/theme-context.d.ts
|
|
230
|
+
/**
|
|
231
|
+
* How the dashboard's theme is decided:
|
|
232
|
+
* - `"auto"` — its own system/light/dark preference (persisted), with the toggle.
|
|
233
|
+
* - `"inherit"` — follow the host page (see {@link detectHostTheme}); no toggle.
|
|
234
|
+
* - `"light"` / `"dark"` — fixed by the host (e.g. from its own theme state); no toggle.
|
|
235
|
+
*/
|
|
236
|
+
type ThemeMode = "auto" | "inherit" | ResolvedTheme;
|
|
237
|
+
/** What {@link useTheme} returns. */
|
|
238
|
+
interface ThemeState {
|
|
239
|
+
/** The single theme every surface, text color and viewer resolves to. */
|
|
240
|
+
resolved: ResolvedTheme;
|
|
241
|
+
/** Whether the dashboard owns the theme (shows its own toggle). */
|
|
242
|
+
showToggle: boolean;
|
|
243
|
+
/** The product's theme store, when a {@link ThemeProvider} supplied one. */
|
|
244
|
+
store: ThemeStore | undefined;
|
|
245
|
+
}
|
|
246
|
+
/** Resolve a {@link ThemeMode} against `store`, re-rendering on every relevant change. */
|
|
247
|
+
declare function useResolvedTheme(store: ThemeStore, mode: ThemeMode): ResolvedTheme;
|
|
248
|
+
/** Props for {@link ThemeProvider}. */
|
|
249
|
+
interface ThemeProviderProps {
|
|
250
|
+
/** The product's theme store ({@link createThemeStore}). */
|
|
251
|
+
store: ThemeStore;
|
|
252
|
+
/** How the theme is decided; defaults to `"auto"`. */
|
|
253
|
+
mode?: ThemeMode;
|
|
254
|
+
/** Render prop receiving the resolved theme (e.g. to set `data-theme` on a wrapper). */
|
|
255
|
+
children: (resolved: ResolvedTheme) => React$1.ReactNode;
|
|
256
|
+
}
|
|
257
|
+
/** Provide the resolved theme (and the store, for {@link ThemeToggle}) to the subtree. */
|
|
258
|
+
declare function ThemeProvider({
|
|
259
|
+
store,
|
|
260
|
+
mode,
|
|
261
|
+
children
|
|
262
|
+
}: ThemeProviderProps): React$1.ReactElement;
|
|
263
|
+
/**
|
|
264
|
+
* The active theme. Outside a {@link ThemeProvider} it follows the OS scheme and reports no toggle
|
|
265
|
+
* (there is no store to persist a choice in).
|
|
266
|
+
*/
|
|
267
|
+
declare function useTheme(): ThemeState;
|
|
268
|
+
//#endregion
|
|
269
|
+
export { createApiClient as A, ApiClientOptions as C, CreateApiClientOptions as D, ApiErrorConstructor as E, FetchLike as O, ApiClient as S, ApiErrorBody as T, detectHostTheme as _, useResolvedTheme as a, subscribeSystemTheme as b, BootedSpa as c, createShellQueryClient as d, ResolvedTheme as f, createThemeStore as g, ThemeStore as h, ThemeState as i, toQuery as j, QueryValue as k, ShellAppProps as l, ThemeSignalSource as m, ThemeProvider as n, useTheme as o, ThemePref as p, ThemeProviderProps as r, BootSpaOptions as s, ThemeMode as t, bootSpa as u, resolveTheme as v, ApiError as w, systemTheme as x, subscribeHostTheme as y };
|
|
270
|
+
//# sourceMappingURL=theme-context-DzZ1otaD.d.cts.map
|
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import { Root } from "react-dom/client";
|
|
3
|
+
import { QueryClient } from "@tanstack/react-query";
|
|
4
|
+
import { BaseLocationHook } from "wouter";
|
|
5
|
+
|
|
6
|
+
//#region src/ui/api-client.d.ts
|
|
7
|
+
/**
|
|
8
|
+
* The admin SPA's HTTP client core for the panel API. Each product creates one client
|
|
9
|
+
* ({@link createApiClient}) and builds its endpoint functions on `req`/`send`. The client holds the
|
|
10
|
+
* base URL, credentials mode, fetch implementation and portal token; the bundled SPA or the React
|
|
11
|
+
* embed sets them once (one embed per product per page).
|
|
12
|
+
*
|
|
13
|
+
* @module
|
|
14
|
+
*/
|
|
15
|
+
/** The subset of `fetch` the client uses (the global `fetch` satisfies it). */
|
|
16
|
+
type FetchLike = (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
|
|
17
|
+
/** Options for {@link ApiClient.setApiBase}. */
|
|
18
|
+
interface ApiClientOptions {
|
|
19
|
+
/** `credentials` mode for requests. Use `"include"` for cross-origin cookie auth. */
|
|
20
|
+
credentials?: RequestCredentials;
|
|
21
|
+
/** Custom fetch implementation (bearer tokens, extra headers, instrumentation). */
|
|
22
|
+
fetch?: FetchLike;
|
|
23
|
+
}
|
|
24
|
+
/** The JSON error body the panel API returns, with the HTTP status always filled in. */
|
|
25
|
+
interface ApiErrorBody {
|
|
26
|
+
/** Human-readable message. */
|
|
27
|
+
error: string;
|
|
28
|
+
/** The HTTP status of the response (forced from the response, whatever the body says). */
|
|
29
|
+
status: number;
|
|
30
|
+
/** Per-field validation issues. */
|
|
31
|
+
errors?: {
|
|
32
|
+
path: string;
|
|
33
|
+
message: string;
|
|
34
|
+
}[];
|
|
35
|
+
/** A machine-readable code, when the API sends one. */
|
|
36
|
+
code?: string;
|
|
37
|
+
[key: string]: unknown;
|
|
38
|
+
}
|
|
39
|
+
/** Thrown by the client for non-2xx responses. Products subclass it (`WebhooksApiError`…). */
|
|
40
|
+
declare class ApiError extends Error {
|
|
41
|
+
/** The HTTP status. */
|
|
42
|
+
readonly status: number;
|
|
43
|
+
/** The parsed error body. */
|
|
44
|
+
readonly body: ApiErrorBody;
|
|
45
|
+
constructor(status: number, body: ApiErrorBody);
|
|
46
|
+
}
|
|
47
|
+
/** A constructor for the error the client throws (an {@link ApiError} subclass, or compatible). */
|
|
48
|
+
type ApiErrorConstructor = new (status: number, body: ApiErrorBody) => Error;
|
|
49
|
+
/** Options for {@link createApiClient}. */
|
|
50
|
+
interface CreateApiClientOptions {
|
|
51
|
+
/** The error class to throw for non-2xx responses (the product's `…ApiError`). */
|
|
52
|
+
errorClass?: ApiErrorConstructor;
|
|
53
|
+
/** Initial base URL; `""` (relative to the page) by default. */
|
|
54
|
+
base?: string;
|
|
55
|
+
/** Initial `credentials` mode; `"same-origin"` by default. */
|
|
56
|
+
credentials?: RequestCredentials;
|
|
57
|
+
/** Initial fetch implementation; the global `fetch` by default (read at call time). */
|
|
58
|
+
fetch?: FetchLike;
|
|
59
|
+
}
|
|
60
|
+
/** A query-string value accepted by {@link toQuery}. */
|
|
61
|
+
type QueryValue = string | number | boolean | null | undefined | readonly string[];
|
|
62
|
+
/** One product's API client. */
|
|
63
|
+
interface ApiClient {
|
|
64
|
+
/** Point the client at a base URL (a trailing `/` is dropped), optionally with credentials/fetch. */
|
|
65
|
+
setApiBase(base: string, opts?: ApiClientOptions): void;
|
|
66
|
+
/** Attach a portal/viewer token as `Authorization: Bearer …` on every request (`null` clears it). */
|
|
67
|
+
setApiToken(token: string | null): void;
|
|
68
|
+
/** The token set by {@link setApiToken}, or `null`. */
|
|
69
|
+
getApiToken(): string | null;
|
|
70
|
+
/** The URL for an API path under the current base. */
|
|
71
|
+
apiUrl(path: string): string;
|
|
72
|
+
/**
|
|
73
|
+
* Fetch `path` and return the raw `Response` (for blobs, CSV, JWKS…). Throws the configured error
|
|
74
|
+
* class for non-2xx responses.
|
|
75
|
+
*/
|
|
76
|
+
send(path: string, init?: RequestInit): Promise<Response>;
|
|
77
|
+
/** Fetch `path` and parse JSON; an empty body resolves to `undefined`. */
|
|
78
|
+
req<T>(path: string, init?: RequestInit): Promise<T>;
|
|
79
|
+
/** {@link toQuery}, for convenience. */
|
|
80
|
+
query(params: Record<string, QueryValue>): string;
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Build a query string (`"?a=1&b=2"`, or `""` when nothing is left), skipping `undefined`, `null`
|
|
84
|
+
* and `""`. Arrays are comma-joined (and skipped when empty); booleans become `"true"`/`"false"`.
|
|
85
|
+
*/
|
|
86
|
+
declare function toQuery(params: Record<string, QueryValue>): string;
|
|
87
|
+
/**
|
|
88
|
+
* Create one product's API client. `errorClass` is the product's error class (it receives
|
|
89
|
+
* `(status, body)`); it defaults to {@link ApiError}.
|
|
90
|
+
*
|
|
91
|
+
* ```ts
|
|
92
|
+
* export class WebhooksApiError extends ApiError {}
|
|
93
|
+
* const client = createApiClient({ errorClass: WebhooksApiError });
|
|
94
|
+
* export const { setApiBase, setApiToken } = client;
|
|
95
|
+
* export const listApps = () => client.req<App[]>("api/apps");
|
|
96
|
+
* ```
|
|
97
|
+
*/
|
|
98
|
+
declare function createApiClient(options?: CreateApiClientOptions): ApiClient;
|
|
99
|
+
//#endregion
|
|
100
|
+
//#region src/ui/theme.d.ts
|
|
101
|
+
/**
|
|
102
|
+
* Theme preference: `system` (follows the OS), `light`, or `dark`. The preference is persisted in
|
|
103
|
+
* localStorage under a product key (`xtandard-<product>:theme`, passed to {@link createThemeStore});
|
|
104
|
+
* `system` live-updates when the OS scheme changes. The standalone SPA writes the resolved value to
|
|
105
|
+
* `<html data-theme>` (see {@link ThemeStore.initTheme}); the React embed writes it to its own
|
|
106
|
+
* wrapper instead, so it never touches the host document.
|
|
107
|
+
*
|
|
108
|
+
* Host detection ({@link detectHostTheme}, {@link subscribeHostTheme}) is key-free: it reads the
|
|
109
|
+
* page, not a preference.
|
|
110
|
+
*
|
|
111
|
+
* @module
|
|
112
|
+
*/
|
|
113
|
+
/** A theme preference: `system` follows the OS. */
|
|
114
|
+
type ThemePref = "system" | "light" | "dark";
|
|
115
|
+
/** A concrete theme — what every surface, text color and viewer resolves to. */
|
|
116
|
+
type ResolvedTheme = "light" | "dark";
|
|
117
|
+
/** The OS colour scheme right now (`light` when it can't be read, e.g. on the server). */
|
|
118
|
+
declare function systemTheme(): ResolvedTheme;
|
|
119
|
+
/** Call `cb` when the OS colour scheme flips. Returns the unsubscribe function. */
|
|
120
|
+
declare function subscribeSystemTheme(cb: () => void): () => void;
|
|
121
|
+
/** The concrete theme a preference resolves to right now. */
|
|
122
|
+
declare function resolveTheme(pref: ThemePref): ResolvedTheme;
|
|
123
|
+
/** A persisted theme preference, bound to one localStorage key. */
|
|
124
|
+
interface ThemeStore {
|
|
125
|
+
/** The localStorage key the preference lives under. */
|
|
126
|
+
readonly storageKey: string;
|
|
127
|
+
/** The stored preference (`system` when unset, invalid, or storage is unavailable). */
|
|
128
|
+
getThemePref(): ThemePref;
|
|
129
|
+
/** Persist `pref` and notify subscribers. */
|
|
130
|
+
setThemePref(pref: ThemePref): void;
|
|
131
|
+
/** The concrete theme the stored preference resolves to right now. */
|
|
132
|
+
getResolvedTheme(): ResolvedTheme;
|
|
133
|
+
/**
|
|
134
|
+
* Subscribe to changes of the resolved preference theme — an explicit {@link setThemePref} or,
|
|
135
|
+
* under `system`, the OS scheme flipping. Returns the unsubscribe function
|
|
136
|
+
* (`useSyncExternalStore`-compatible).
|
|
137
|
+
*/
|
|
138
|
+
subscribeThemePref(cb: () => void): () => void;
|
|
139
|
+
/**
|
|
140
|
+
* Standalone SPA only: apply the stored preference to `<html data-theme>` and keep it in sync
|
|
141
|
+
* (toggle + OS changes). Call once at boot, before first paint. Returns the unsubscribe function.
|
|
142
|
+
* The React embed does not call this — it themes its own wrapper.
|
|
143
|
+
*/
|
|
144
|
+
initTheme(): () => void;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Create the theme store for one product. `storageKey` is the product's localStorage key
|
|
148
|
+
* (`"xtandard-webhooks:theme"`…); it is a stored-data contract, so products pass it explicitly.
|
|
149
|
+
*/
|
|
150
|
+
declare function createThemeStore(storageKey: string): ThemeStore;
|
|
151
|
+
/** The bits of an element {@link detectHostTheme} reads (keeps it testable without a DOM). */
|
|
152
|
+
interface ThemeSignalSource {
|
|
153
|
+
classList: {
|
|
154
|
+
contains(token: string): boolean;
|
|
155
|
+
};
|
|
156
|
+
getAttribute(name: string): string | null;
|
|
157
|
+
style?: {
|
|
158
|
+
colorScheme?: string;
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
* The host page's theme, for `theme="inherit"`: an explicit signal on `<html>` (then `<body>`) — a
|
|
163
|
+
* `dark`/`light` class, a `data-theme`/`data-mode`/`data-color-scheme` attribute, or an inline
|
|
164
|
+
* `color-scheme` — and, only when the host sets none, the OS `prefers-color-scheme`.
|
|
165
|
+
*
|
|
166
|
+
* Pass `root`/`body` to read other elements (tests, iframes); they default to the document's.
|
|
167
|
+
*/
|
|
168
|
+
declare function detectHostTheme(root?: ThemeSignalSource | null | undefined, body?: ThemeSignalSource | null | undefined): ResolvedTheme;
|
|
169
|
+
/**
|
|
170
|
+
* Watch the host page for theme switches: class/attribute/style changes on `<html>` and `<body>`,
|
|
171
|
+
* plus the OS scheme. Returns the unsubscribe function. Without a DOM or `MutationObserver` (SSR,
|
|
172
|
+
* old test environments) it only follows the OS scheme.
|
|
173
|
+
*/
|
|
174
|
+
declare function subscribeHostTheme(cb: () => void): () => void;
|
|
175
|
+
//#endregion
|
|
176
|
+
//#region src/ui/boot.d.ts
|
|
177
|
+
/** The props `bootSpa` (and `createEmbed`) pass to the product's `App`. */
|
|
178
|
+
interface ShellAppProps {
|
|
179
|
+
/** wouter location hook (browser history in the SPA; hash/browser/memory/custom in the embed). */
|
|
180
|
+
locationHook?: BaseLocationHook;
|
|
181
|
+
/** wouter search hook (the memory router's, so the query string survives `routing: "memory"`). */
|
|
182
|
+
searchHook?: () => string;
|
|
183
|
+
/** Router base path. */
|
|
184
|
+
base?: string;
|
|
185
|
+
/** Navbar logo override. */
|
|
186
|
+
logoUrl?: string;
|
|
187
|
+
/** Whether the shell shows its own theme toggle. */
|
|
188
|
+
showThemeToggle?: boolean;
|
|
189
|
+
/** Render the portal chrome regardless of `/config` (the token embed). */
|
|
190
|
+
forcePortal?: boolean;
|
|
191
|
+
}
|
|
192
|
+
/** A `QueryClient` with the shell's defaults: one retry, no refetch on window focus. */
|
|
193
|
+
declare function createShellQueryClient(): QueryClient;
|
|
194
|
+
/** Options for {@link bootSpa}. */
|
|
195
|
+
interface BootSpaOptions<P extends object = object> {
|
|
196
|
+
/** The product's root component. */
|
|
197
|
+
App: React$1.ComponentType<ShellAppProps & P>;
|
|
198
|
+
/** The global the panel handler injects (`"__WEBHOOKS_CONFIG__"`); its `basePath` is the router base. */
|
|
199
|
+
configGlobal: string;
|
|
200
|
+
/** The theme storage key (`"xtandard-webhooks:theme"`), or an existing store. */
|
|
201
|
+
themeKey: string | ThemeStore;
|
|
202
|
+
/**
|
|
203
|
+
* Take a portal token from `#token=`/`?token=`, strip it from the address bar, and attach it to
|
|
204
|
+
* `api`. Needs `api`. Default `false` (products without a portal).
|
|
205
|
+
*/
|
|
206
|
+
tokenFromUrl?: boolean;
|
|
207
|
+
/** The product's API client (for the token). */
|
|
208
|
+
api?: Pick<ApiClient, "setApiToken">;
|
|
209
|
+
/** Extra props for `App`. */
|
|
210
|
+
appProps?: P;
|
|
211
|
+
/** The mount element or its id; `"root"` by default. */
|
|
212
|
+
root?: HTMLElement | string;
|
|
213
|
+
/** Bring your own QueryClient. */
|
|
214
|
+
queryClient?: QueryClient;
|
|
215
|
+
/** Wrap in `React.StrictMode`; default `true`. */
|
|
216
|
+
strictMode?: boolean;
|
|
217
|
+
}
|
|
218
|
+
/** What {@link bootSpa} returns. */
|
|
219
|
+
interface BootedSpa {
|
|
220
|
+
root: Root;
|
|
221
|
+
queryClient: QueryClient;
|
|
222
|
+
themeStore: ThemeStore;
|
|
223
|
+
/** The token taken from the URL, if any. */
|
|
224
|
+
token: string | null;
|
|
225
|
+
}
|
|
226
|
+
/** Boot the standalone admin SPA. Call once from the product's `main.tsx`. */
|
|
227
|
+
declare function bootSpa<P extends object = object>(options: BootSpaOptions<P>): BootedSpa;
|
|
228
|
+
//#endregion
|
|
229
|
+
//#region src/ui/theme-context.d.ts
|
|
230
|
+
/**
|
|
231
|
+
* How the dashboard's theme is decided:
|
|
232
|
+
* - `"auto"` — its own system/light/dark preference (persisted), with the toggle.
|
|
233
|
+
* - `"inherit"` — follow the host page (see {@link detectHostTheme}); no toggle.
|
|
234
|
+
* - `"light"` / `"dark"` — fixed by the host (e.g. from its own theme state); no toggle.
|
|
235
|
+
*/
|
|
236
|
+
type ThemeMode = "auto" | "inherit" | ResolvedTheme;
|
|
237
|
+
/** What {@link useTheme} returns. */
|
|
238
|
+
interface ThemeState {
|
|
239
|
+
/** The single theme every surface, text color and viewer resolves to. */
|
|
240
|
+
resolved: ResolvedTheme;
|
|
241
|
+
/** Whether the dashboard owns the theme (shows its own toggle). */
|
|
242
|
+
showToggle: boolean;
|
|
243
|
+
/** The product's theme store, when a {@link ThemeProvider} supplied one. */
|
|
244
|
+
store: ThemeStore | undefined;
|
|
245
|
+
}
|
|
246
|
+
/** Resolve a {@link ThemeMode} against `store`, re-rendering on every relevant change. */
|
|
247
|
+
declare function useResolvedTheme(store: ThemeStore, mode: ThemeMode): ResolvedTheme;
|
|
248
|
+
/** Props for {@link ThemeProvider}. */
|
|
249
|
+
interface ThemeProviderProps {
|
|
250
|
+
/** The product's theme store ({@link createThemeStore}). */
|
|
251
|
+
store: ThemeStore;
|
|
252
|
+
/** How the theme is decided; defaults to `"auto"`. */
|
|
253
|
+
mode?: ThemeMode;
|
|
254
|
+
/** Render prop receiving the resolved theme (e.g. to set `data-theme` on a wrapper). */
|
|
255
|
+
children: (resolved: ResolvedTheme) => React$1.ReactNode;
|
|
256
|
+
}
|
|
257
|
+
/** Provide the resolved theme (and the store, for {@link ThemeToggle}) to the subtree. */
|
|
258
|
+
declare function ThemeProvider({
|
|
259
|
+
store,
|
|
260
|
+
mode,
|
|
261
|
+
children
|
|
262
|
+
}: ThemeProviderProps): React$1.ReactElement;
|
|
263
|
+
/**
|
|
264
|
+
* The active theme. Outside a {@link ThemeProvider} it follows the OS scheme and reports no toggle
|
|
265
|
+
* (there is no store to persist a choice in).
|
|
266
|
+
*/
|
|
267
|
+
declare function useTheme(): ThemeState;
|
|
268
|
+
//#endregion
|
|
269
|
+
export { createApiClient as A, ApiClientOptions as C, CreateApiClientOptions as D, ApiErrorConstructor as E, FetchLike as O, ApiClient as S, ApiErrorBody as T, detectHostTheme as _, useResolvedTheme as a, subscribeSystemTheme as b, BootedSpa as c, createShellQueryClient as d, ResolvedTheme as f, createThemeStore as g, ThemeStore as h, ThemeState as i, toQuery as j, QueryValue as k, ShellAppProps as l, ThemeSignalSource as m, ThemeProvider as n, useTheme as o, ThemePref as p, ThemeProviderProps as r, BootSpaOptions as s, ThemeMode as t, bootSpa as u, resolveTheme as v, ApiError as w, systemTheme as x, subscribeHostTheme as y };
|
|
270
|
+
//# sourceMappingURL=theme-context-J65pythD.d.mts.map
|