@xtandard/permissions 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 +362 -2
- package/bin/xtandard-permissions.mjs +3 -0
- package/dist/better-auth-Bp9YVyQa.d.cts +56 -0
- package/dist/better-auth-DHyW5-yt.cjs +91 -0
- package/dist/better-auth-DHyW5-yt.cjs.map +1 -0
- package/dist/better-auth-NO40ZqSM.mjs +74 -0
- package/dist/better-auth-NO40ZqSM.mjs.map +1 -0
- package/dist/better-auth-NSXgt6ZU.d.mts +56 -0
- package/dist/catalog-DA_d1SdC.d.cts +153 -0
- package/dist/catalog-DJcJ3ycq.d.mts +153 -0
- package/dist/catalog.cjs +198 -0
- package/dist/catalog.cjs.map +1 -0
- package/dist/catalog.d.cts +3 -0
- package/dist/catalog.d.mts +3 -0
- package/dist/catalog.mjs +141 -0
- package/dist/catalog.mjs.map +1 -0
- package/dist/chunk-DakpK96I.cjs +43 -0
- package/dist/cli.cjs +548 -0
- package/dist/cli.cjs.map +1 -0
- package/dist/cli.d.cts +28 -0
- package/dist/cli.d.mts +28 -0
- package/dist/cli.mjs +544 -0
- package/dist/cli.mjs.map +1 -0
- package/dist/contract-BMiOmg2f.d.cts +50 -0
- package/dist/contract-Bpy8yPrS.cjs +70 -0
- package/dist/contract-Bpy8yPrS.cjs.map +1 -0
- package/dist/contract-CNgMXr2u.d.cts +46 -0
- package/dist/contract-CNgMXr2u.d.mts +46 -0
- package/dist/contract-CPmJVoRx.cjs +70 -0
- package/dist/contract-CPmJVoRx.cjs.map +1 -0
- package/dist/contract-D32H1t0u.d.mts +50 -0
- package/dist/contract-DTdTXZtJ.mjs +47 -0
- package/dist/contract-DTdTXZtJ.mjs.map +1 -0
- package/dist/contract-DUzgB-He.d.mts +375 -0
- package/dist/contract-Dk6d2ylD.d.cts +375 -0
- package/dist/contract-RMkmERhT.d.cts +2 -0
- package/dist/contract-RMkmERhT.d.mts +2 -0
- package/dist/contract-Yc5AZuvv.mjs +47 -0
- package/dist/contract-Yc5AZuvv.mjs.map +1 -0
- package/dist/create-fetch-handler-BHDU4chu.d.mts +77 -0
- package/dist/create-fetch-handler-BtX64_rS.d.cts +77 -0
- package/dist/create-fetch-handler-C-WyaRCR.cjs +653 -0
- package/dist/create-fetch-handler-C-WyaRCR.cjs.map +1 -0
- package/dist/create-fetch-handler-ojjpk1Iw.mjs +636 -0
- package/dist/create-fetch-handler-ojjpk1Iw.mjs.map +1 -0
- package/dist/elysia-shared-BM6cPoCU.mjs +78 -0
- package/dist/elysia-shared-BM6cPoCU.mjs.map +1 -0
- package/dist/elysia-shared-BUTFTeal.cjs +101 -0
- package/dist/elysia-shared-BUTFTeal.cjs.map +1 -0
- package/dist/elysia-shared-DtKViycb.d.cts +58 -0
- package/dist/elysia-shared-g8zsb_pU.d.mts +58 -0
- package/dist/engine-Bufv0TbD.mjs +574 -0
- package/dist/engine-Bufv0TbD.mjs.map +1 -0
- package/dist/engine-CGGVDCqi.d.cts +296 -0
- package/dist/engine-DpFIcbgh.d.mts +296 -0
- package/dist/engine-bMoz3iW-.cjs +587 -0
- package/dist/engine-bMoz3iW-.cjs.map +1 -0
- package/dist/entry-auth-basic.cjs +40 -0
- package/dist/entry-auth-basic.cjs.map +1 -0
- package/dist/entry-auth-basic.d.cts +24 -0
- package/dist/entry-auth-basic.d.mts +24 -0
- package/dist/entry-auth-basic.mjs +26 -0
- package/dist/entry-auth-basic.mjs.map +1 -0
- package/dist/entry-auth-better-auth.cjs +12 -0
- package/dist/entry-auth-better-auth.d.cts +5 -0
- package/dist/entry-auth-better-auth.d.mts +5 -0
- package/dist/entry-auth-better-auth.mjs +4 -0
- package/dist/entry-auth-delegated.cjs +8 -0
- package/dist/entry-auth-delegated.d.cts +2 -0
- package/dist/entry-auth-delegated.d.mts +2 -0
- package/dist/entry-auth-delegated.mjs +2 -0
- package/dist/entry-auth-jwt.cjs +116 -0
- package/dist/entry-auth-jwt.cjs.map +1 -0
- package/dist/entry-auth-jwt.d.cts +65 -0
- package/dist/entry-auth-jwt.d.mts +65 -0
- package/dist/entry-auth-jwt.mjs +108 -0
- package/dist/entry-auth-jwt.mjs.map +1 -0
- package/dist/entry-auth-none.cjs +14 -0
- package/dist/entry-auth-none.d.cts +2 -0
- package/dist/entry-auth-none.d.mts +2 -0
- package/dist/entry-auth-none.mjs +2 -0
- package/dist/entry-auth-session.cjs +82 -0
- package/dist/entry-auth-session.cjs.map +1 -0
- package/dist/entry-auth-session.d.cts +20 -0
- package/dist/entry-auth-session.d.mts +20 -0
- package/dist/entry-auth-session.mjs +75 -0
- package/dist/entry-auth-session.mjs.map +1 -0
- package/dist/entry-authorization-delegated.cjs +31 -0
- package/dist/entry-authorization-delegated.cjs.map +1 -0
- package/dist/entry-authorization-delegated.d.cts +27 -0
- package/dist/entry-authorization-delegated.d.mts +27 -0
- package/dist/entry-authorization-delegated.mjs +30 -0
- package/dist/entry-authorization-delegated.mjs.map +1 -0
- package/dist/entry-authorization-none.cjs +29 -0
- package/dist/entry-authorization-none.cjs.map +1 -0
- package/dist/entry-authorization-none.d.cts +17 -0
- package/dist/entry-authorization-none.d.mts +17 -0
- package/dist/entry-authorization-none.mjs +28 -0
- package/dist/entry-authorization-none.mjs.map +1 -0
- package/dist/entry-authorization-permissions.cjs +4 -0
- package/dist/entry-authorization-permissions.d.cts +49 -0
- package/dist/entry-authorization-permissions.d.mts +49 -0
- package/dist/entry-authorization-permissions.mjs +2 -0
- package/dist/entry-authorization-roles.cjs +9 -0
- package/dist/entry-authorization-roles.d.cts +37 -0
- package/dist/entry-authorization-roles.d.mts +37 -0
- package/dist/entry-authorization-roles.mjs +3 -0
- package/dist/entry-better-auth-client.cjs +31 -0
- package/dist/entry-better-auth-client.cjs.map +1 -0
- package/dist/entry-better-auth-client.d.cts +63 -0
- package/dist/entry-better-auth-client.d.mts +63 -0
- package/dist/entry-better-auth-client.mjs +29 -0
- package/dist/entry-better-auth-client.mjs.map +1 -0
- package/dist/entry-better-auth.cjs +289 -0
- package/dist/entry-better-auth.cjs.map +1 -0
- package/dist/entry-better-auth.d.cts +3 -0
- package/dist/entry-better-auth.d.mts +3 -0
- package/dist/entry-better-auth.mjs +284 -0
- package/dist/entry-better-auth.mjs.map +1 -0
- package/dist/entry-bridges-audit.cjs +106 -0
- package/dist/entry-bridges-audit.cjs.map +1 -0
- package/dist/entry-bridges-audit.d.cts +58 -0
- package/dist/entry-bridges-audit.d.mts +58 -0
- package/dist/entry-bridges-audit.mjs +105 -0
- package/dist/entry-bridges-audit.mjs.map +1 -0
- package/dist/entry-bridges-webhooks.cjs +90 -0
- package/dist/entry-bridges-webhooks.cjs.map +1 -0
- package/dist/entry-bridges-webhooks.d.cts +46 -0
- package/dist/entry-bridges-webhooks.d.mts +46 -0
- package/dist/entry-bridges-webhooks.mjs +88 -0
- package/dist/entry-bridges-webhooks.mjs.map +1 -0
- package/dist/entry-bun.cjs +33 -0
- package/dist/entry-bun.cjs.map +1 -0
- package/dist/entry-bun.d.cts +31 -0
- package/dist/entry-bun.d.mts +31 -0
- package/dist/entry-bun.mjs +30 -0
- package/dist/entry-bun.mjs.map +1 -0
- package/dist/entry-drizzle-mysql.cjs +34 -0
- package/dist/entry-drizzle-mysql.cjs.map +1 -0
- package/dist/entry-drizzle-mysql.d.cts +20 -0
- package/dist/entry-drizzle-mysql.d.mts +20 -0
- package/dist/entry-drizzle-mysql.mjs +33 -0
- package/dist/entry-drizzle-mysql.mjs.map +1 -0
- package/dist/entry-drizzle-pg.cjs +44 -0
- package/dist/entry-drizzle-pg.cjs.map +1 -0
- package/dist/entry-drizzle-pg.d.cts +20 -0
- package/dist/entry-drizzle-pg.d.mts +20 -0
- package/dist/entry-drizzle-pg.mjs +43 -0
- package/dist/entry-drizzle-pg.mjs.map +1 -0
- package/dist/entry-drizzle-sqlite.cjs +34 -0
- package/dist/entry-drizzle-sqlite.cjs.map +1 -0
- package/dist/entry-drizzle-sqlite.d.cts +15 -0
- package/dist/entry-drizzle-sqlite.d.mts +15 -0
- package/dist/entry-drizzle-sqlite.mjs +33 -0
- package/dist/entry-drizzle-sqlite.mjs.map +1 -0
- package/dist/entry-elysia.cjs +117 -0
- package/dist/entry-elysia.cjs.map +1 -0
- package/dist/entry-elysia.d.cts +446 -0
- package/dist/entry-elysia.d.mts +446 -0
- package/dist/entry-elysia.mjs +113 -0
- package/dist/entry-elysia.mjs.map +1 -0
- package/dist/entry-elysia2.cjs +117 -0
- package/dist/entry-elysia2.cjs.map +1 -0
- package/dist/entry-elysia2.d.cts +571 -0
- package/dist/entry-elysia2.d.mts +571 -0
- package/dist/entry-elysia2.mjs +113 -0
- package/dist/entry-elysia2.mjs.map +1 -0
- package/dist/entry-express.cjs +101 -0
- package/dist/entry-express.cjs.map +1 -0
- package/dist/entry-express.d.cts +36 -0
- package/dist/entry-express.d.mts +36 -0
- package/dist/entry-express.mjs +97 -0
- package/dist/entry-express.mjs.map +1 -0
- package/dist/entry-hono.cjs +63 -0
- package/dist/entry-hono.cjs.map +1 -0
- package/dist/entry-hono.d.cts +40 -0
- package/dist/entry-hono.d.mts +40 -0
- package/dist/entry-hono.mjs +60 -0
- package/dist/entry-hono.mjs.map +1 -0
- package/dist/entry-hooks-log.cjs +39 -0
- package/dist/entry-hooks-log.cjs.map +1 -0
- package/dist/entry-hooks-log.d.cts +19 -0
- package/dist/entry-hooks-log.d.mts +19 -0
- package/dist/entry-hooks-log.mjs +36 -0
- package/dist/entry-hooks-log.mjs.map +1 -0
- package/dist/entry-next.cjs +67 -0
- package/dist/entry-next.cjs.map +1 -0
- package/dist/entry-next.d.cts +60 -0
- package/dist/entry-next.d.mts +60 -0
- package/dist/entry-next.mjs +57 -0
- package/dist/entry-next.mjs.map +1 -0
- package/dist/entry-react.cjs +401 -0
- package/dist/entry-react.cjs.map +1 -0
- package/dist/entry-react.d.cts +206 -0
- package/dist/entry-react.d.mts +206 -0
- package/dist/entry-react.mjs +388 -0
- package/dist/entry-react.mjs.map +1 -0
- package/dist/entry-storage-cloudflare-kv.cjs +8 -0
- package/dist/entry-storage-cloudflare-kv.d.cts +2 -0
- package/dist/entry-storage-cloudflare-kv.d.mts +2 -0
- package/dist/entry-storage-cloudflare-kv.mjs +2 -0
- package/dist/entry-storage-drizzle.cjs +71 -0
- package/dist/entry-storage-drizzle.cjs.map +1 -0
- package/dist/entry-storage-drizzle.d.cts +27 -0
- package/dist/entry-storage-drizzle.d.mts +27 -0
- package/dist/entry-storage-drizzle.mjs +68 -0
- package/dist/entry-storage-drizzle.mjs.map +1 -0
- package/dist/entry-storage-file.cjs +54 -0
- package/dist/entry-storage-file.cjs.map +1 -0
- package/dist/entry-storage-file.d.cts +24 -0
- package/dist/entry-storage-file.d.mts +24 -0
- package/dist/entry-storage-file.mjs +46 -0
- package/dist/entry-storage-file.mjs.map +1 -0
- package/dist/entry-storage-libsql.cjs +64 -0
- package/dist/entry-storage-libsql.cjs.map +1 -0
- package/dist/entry-storage-libsql.d.cts +28 -0
- package/dist/entry-storage-libsql.d.mts +28 -0
- package/dist/entry-storage-libsql.mjs +61 -0
- package/dist/entry-storage-libsql.mjs.map +1 -0
- package/dist/entry-storage-memory.cjs +3 -0
- package/dist/entry-storage-memory.d.cts +25 -0
- package/dist/entry-storage-memory.d.mts +25 -0
- package/dist/entry-storage-memory.mjs +2 -0
- package/dist/entry-storage-mongodb.cjs +61 -0
- package/dist/entry-storage-mongodb.cjs.map +1 -0
- package/dist/entry-storage-mongodb.d.cts +25 -0
- package/dist/entry-storage-mongodb.d.mts +25 -0
- package/dist/entry-storage-mongodb.mjs +58 -0
- package/dist/entry-storage-mongodb.mjs.map +1 -0
- package/dist/entry-storage-postgres.cjs +62 -0
- package/dist/entry-storage-postgres.cjs.map +1 -0
- package/dist/entry-storage-postgres.d.cts +29 -0
- package/dist/entry-storage-postgres.d.mts +29 -0
- package/dist/entry-storage-postgres.mjs +58 -0
- package/dist/entry-storage-postgres.mjs.map +1 -0
- package/dist/entry-storage-redis.cjs +76 -0
- package/dist/entry-storage-redis.cjs.map +1 -0
- package/dist/entry-storage-redis.d.cts +29 -0
- package/dist/entry-storage-redis.d.mts +29 -0
- package/dist/entry-storage-redis.mjs +72 -0
- package/dist/entry-storage-redis.mjs.map +1 -0
- package/dist/entry-storage-sqlite.cjs +46 -0
- package/dist/entry-storage-sqlite.cjs.map +1 -0
- package/dist/entry-storage-sqlite.d.cts +22 -0
- package/dist/entry-storage-sqlite.d.mts +22 -0
- package/dist/entry-storage-sqlite.mjs +43 -0
- package/dist/entry-storage-sqlite.mjs.map +1 -0
- package/dist/entry-storage-unstorage.cjs +8 -0
- package/dist/entry-storage-unstorage.d.cts +2 -0
- package/dist/entry-storage-unstorage.d.mts +2 -0
- package/dist/entry-storage-unstorage.mjs +2 -0
- package/dist/error-codes-9MRMSSMQ.cjs +49 -0
- package/dist/error-codes-9MRMSSMQ.cjs.map +1 -0
- package/dist/error-codes-CCKuDDu7.mjs +44 -0
- package/dist/error-codes-CCKuDDu7.mjs.map +1 -0
- package/dist/errors-bL3XQLfE.mjs +54 -0
- package/dist/errors-bL3XQLfE.mjs.map +1 -0
- package/dist/errors-vVYic8gz.cjs +89 -0
- package/dist/errors-vVYic8gz.cjs.map +1 -0
- package/dist/events-AE4Ytqmz.d.cts +6 -0
- package/dist/events-AE4Ytqmz.d.mts +6 -0
- package/dist/events-DYZShrYB.mjs +15 -0
- package/dist/events-DYZShrYB.mjs.map +1 -0
- package/dist/events-FJ2K0wly.cjs +26 -0
- package/dist/events-FJ2K0wly.cjs.map +1 -0
- package/dist/guard-BOx5cnMP.mjs +141 -0
- package/dist/guard-BOx5cnMP.mjs.map +1 -0
- package/dist/guard-C3o7V14m.d.cts +62 -0
- package/dist/guard-DCbTnqPz.d.mts +62 -0
- package/dist/guard-nwdOYe90.cjs +188 -0
- package/dist/guard-nwdOYe90.cjs.map +1 -0
- package/dist/index-BVVgDSdq.d.cts +1 -0
- package/dist/index-BVVgDSdq.d.mts +1 -0
- package/dist/index.cjs +240 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +195 -0
- package/dist/index.d.mts +195 -0
- package/dist/index.mjs +60 -0
- package/dist/index.mjs.map +1 -0
- package/dist/kit-C7tepDB2.cjs +76 -0
- package/dist/kit-C7tepDB2.cjs.map +1 -0
- package/dist/kit-DMVBLBI9.d.mts +57 -0
- package/dist/kit-fzXHYb1l.mjs +65 -0
- package/dist/kit-fzXHYb1l.mjs.map +1 -0
- package/dist/kit-qAROuhOI.d.cts +57 -0
- package/dist/memory-BbBbbY8-.mjs +32 -0
- package/dist/memory-BbBbbY8-.mjs.map +1 -0
- package/dist/memory-knijqKw_.cjs +39 -0
- package/dist/memory-knijqKw_.cjs.map +1 -0
- package/dist/permissions-C9PjftY6.mjs +59 -0
- package/dist/permissions-C9PjftY6.mjs.map +1 -0
- package/dist/permissions-Cxri_P_k.cjs +70 -0
- package/dist/permissions-Cxri_P_k.cjs.map +1 -0
- package/dist/policy-BQmlo2lu.mjs +3 -0
- package/dist/policy-CGA6QD0a.d.mts +4 -0
- package/dist/policy-DFq_SYR3.d.cts +4 -0
- package/dist/react-embed.js +18710 -0
- package/dist/react.css +1 -0
- package/dist/relationships-BLYEJ9tc.cjs +907 -0
- package/dist/relationships-BLYEJ9tc.cjs.map +1 -0
- package/dist/relationships-BfLonEMI.mjs +756 -0
- package/dist/relationships-BfLonEMI.mjs.map +1 -0
- package/dist/roles-DBk4i8b5.mjs +69 -0
- package/dist/roles-DBk4i8b5.mjs.map +1 -0
- package/dist/roles-a8B5uZ35.cjs +104 -0
- package/dist/roles-a8B5uZ35.cjs.map +1 -0
- package/dist/rolldown-runtime-D7D4PA-g.mjs +13 -0
- package/dist/routes-DtRb3EO0.mjs +1001 -0
- package/dist/routes-DtRb3EO0.mjs.map +1 -0
- package/dist/routes-irNuuZqo.cjs +1049 -0
- package/dist/routes-irNuuZqo.cjs.map +1 -0
- package/dist/server-C2F4H6bR.d.cts +886 -0
- package/dist/server-CJ7AIJpO.d.mts +886 -0
- package/dist/table-DA98mVVT.d.cts +2 -0
- package/dist/table-DA98mVVT.d.mts +2 -0
- package/dist/testing.cjs +59 -0
- package/dist/testing.cjs.map +1 -0
- package/dist/testing.d.cts +37 -0
- package/dist/testing.d.mts +37 -0
- package/dist/testing.mjs +57 -0
- package/dist/testing.mjs.map +1 -0
- package/dist/types-elysia2/adapters/elysia-shared.d.ts +71 -0
- package/dist/types-elysia2/adapters/elysia2.d.ts +432 -0
- package/dist/types-elysia2/adapters/guard.d.ts +140 -0
- package/dist/types-elysia2/auth/contract.d.ts +9 -0
- package/dist/types-elysia2/auth-provider/contract.d.ts +57 -0
- package/dist/types-elysia2/auth-provider/kit.d.ts +57 -0
- package/dist/types-elysia2/authorization/contract.d.ts +53 -0
- package/dist/types-elysia2/authorization/permissions.d.ts +54 -0
- package/dist/types-elysia2/catalog.d.ts +197 -0
- package/dist/types-elysia2/engine.d.ts +192 -0
- package/dist/types-elysia2/entry-elysia2.d.ts +9 -0
- package/dist/types-elysia2/errors.d.ts +47 -0
- package/dist/types-elysia2/hooks/contract.d.ts +100 -0
- package/dist/types-elysia2/keys.d.ts +78 -0
- package/dist/types-elysia2/policy.d.ts +13 -0
- package/dist/types-elysia2/relationships.d.ts +162 -0
- package/dist/types-elysia2/schema.d.ts +299 -0
- package/dist/types-elysia2/server/cors.d.ts +8 -0
- package/dist/types-elysia2/server/create-fetch-handler.d.ts +87 -0
- package/dist/types-elysia2/server/openapi.d.ts +29 -0
- package/dist/types-elysia2/server/routes.d.ts +132 -0
- package/dist/types-elysia2/server/validation.d.ts +205 -0
- package/dist/types-elysia2/storage/contract.d.ts +18 -0
- package/dist/types-react/catalog.d.ts +197 -0
- package/dist/types-react/engine.d.ts +192 -0
- package/dist/types-react/entry-react-embed.d.ts +20 -0
- package/dist/types-react/errors.d.ts +47 -0
- package/dist/types-react/hooks/contract.d.ts +100 -0
- package/dist/types-react/keys.d.ts +78 -0
- package/dist/types-react/policy.d.ts +13 -0
- package/dist/types-react/react-embed.d.ts +37 -0
- package/dist/types-react/relationships.d.ts +162 -0
- package/dist/types-react/schema.d.ts +299 -0
- package/dist/types-react/storage/contract.d.ts +18 -0
- package/dist/types-react/ui/App.d.ts +23 -0
- package/dist/types-react/ui/api.d.ts +73 -0
- package/dist/types-react/ui/components/perm-bits.d.ts +64 -0
- package/dist/types-react/ui/lib/queries.d.ts +46 -0
- package/dist/types-react/ui/theme.d.ts +10 -0
- package/dist/types-react/ui/types.d.ts +109 -0
- package/dist/types-react/ui/views/CatalogView.d.ts +3 -0
- package/dist/types-react/ui/views/HistoryView.d.ts +6 -0
- package/dist/types-react/ui/views/PlaygroundView.d.ts +14 -0
- package/dist/types-react/ui/views/RelationshipsView.d.ts +6 -0
- package/dist/types-react/ui/views/SubjectDetailView.d.ts +7 -0
- package/dist/types-react/ui/views/SubjectsView.d.ts +6 -0
- package/dist/ui/apple-touch-icon.png +0 -0
- package/dist/ui/assets/index-DCPZRo-Z.css +1 -0
- package/dist/ui/assets/index-uXGOtyuj.js +104 -0
- package/dist/ui/favicon.ico +0 -0
- package/dist/ui/favicon.svg +15 -0
- package/dist/ui/index.html +20 -0
- package/package.json +587 -4
|
Binary file
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1024.0 1024.0" width="1024.0" height="1024.0" role="img" aria-label="xtandard-permissions">
|
|
2
|
+
<title>xtandard-permissions</title>
|
|
3
|
+
<defs><linearGradient id="bg" x1="0" y1="0" x2="0" y2="1024" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#1A1C1F"/><stop offset="1" stop-color="#08090B"/></linearGradient><linearGradient id="rim" x1="0" y1="0" x2="0" y2="1024" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#fff" stop-opacity=".14"/><stop offset="1" stop-color="#fff" stop-opacity=".03"/></linearGradient><filter id="shadow" x="-20%" y="-20%" width="140%" height="150%" color-interpolation-filters="sRGB"><feDropShadow dx="0" dy="6" stdDeviation="9" flood-color="#000" flood-opacity=".55"/></filter><linearGradient id="lime" x1="250" y1="250" x2="760" y2="740" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#D9F99D"/><stop offset=".42" stop-color="#A3E635"/><stop offset="1" stop-color="#65A30D"/></linearGradient></defs>
|
|
4
|
+
<rect width="1024" height="1024" rx="224" fill="url(#bg)"/>
|
|
5
|
+
<rect x="2" y="2" width="1020" height="1020" rx="222" fill="none" stroke="url(#rim)" stroke-width="4"/>
|
|
6
|
+
|
|
7
|
+
<g transform="translate(71.7 77.7) scale(0.86)">
|
|
8
|
+
<g fill="none" stroke="#5B6167" stroke-width="40" stroke-linecap="round" stroke-linejoin="round"><path d="M190 438L118 512L190 586"/><path d="M834 438L906 512L834 586"/></g>
|
|
9
|
+
<path d="M250 300L395 300L560 512L395 724L250 724L415 512Z" fill="url(#lime)"/>
|
|
10
|
+
<path d="M580.0 300L725.0 300L583.0 482.4L510.5 389.3Z" fill="url(#lime)"/>
|
|
11
|
+
<path d="M580.0 724L725.0 724L583.0 541.6L510.5 634.7Z" fill="url(#lime)"/>
|
|
12
|
+
<path d="M707.8 312.3L774.1 363.9L746.1 399.9L679.8 348.3Z" fill="url(#lime)" stroke="url(#lime)" stroke-width="8" stroke-linejoin="round"/>
|
|
13
|
+
<path d="M654.9 380.3L700.7 415.9L675.8 447.9L630.0 412.3Z" fill="url(#lime)" stroke="url(#lime)" stroke-width="8" stroke-linejoin="round"/>
|
|
14
|
+
</g>
|
|
15
|
+
</svg>
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<title>@xtandard/permissions</title>
|
|
7
|
+
<meta
|
|
8
|
+
name="description"
|
|
9
|
+
content="Admin panel for @xtandard/permissions: subjects, grants, roles, the catalog, a check playground and history"
|
|
10
|
+
/>
|
|
11
|
+
<link rel="icon" href="./favicon.svg" type="image/svg+xml" />
|
|
12
|
+
<link rel="icon" href="./favicon.ico" sizes="any" />
|
|
13
|
+
<link rel="apple-touch-icon" href="./apple-touch-icon.png" />
|
|
14
|
+
<script type="module" crossorigin src="./assets/index-uXGOtyuj.js"></script>
|
|
15
|
+
<link rel="stylesheet" crossorigin href="./assets/index-DCPZRo-Z.css">
|
|
16
|
+
</head>
|
|
17
|
+
<body>
|
|
18
|
+
<div id="root"></div>
|
|
19
|
+
</body>
|
|
20
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,589 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xtandard/permissions",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Embeddable permissions service as a library: a typed catalog of roles and assignable permissions in code, per-subject grants in any storage, synchronous checks, an admin panel, React hooks and auth-library integrations.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"abac",
|
|
7
|
+
"access-control",
|
|
8
|
+
"authorization",
|
|
9
|
+
"better-auth",
|
|
10
|
+
"permissions",
|
|
11
|
+
"permix",
|
|
12
|
+
"rbac",
|
|
13
|
+
"roles",
|
|
14
|
+
"self-hosted",
|
|
15
|
+
"typescript",
|
|
16
|
+
"xtandard"
|
|
17
|
+
],
|
|
18
|
+
"homepage": "https://github.com/xantiagoma/xtandard-permissions#readme",
|
|
19
|
+
"bugs": {
|
|
20
|
+
"url": "https://github.com/xantiagoma/xtandard-permissions/issues"
|
|
21
|
+
},
|
|
22
|
+
"license": "MIT",
|
|
23
|
+
"author": "Santiago Montoya <xantiagoma@gmail.com>",
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "git+https://github.com/xantiagoma/xtandard-permissions.git"
|
|
27
|
+
},
|
|
28
|
+
"bin": {
|
|
29
|
+
"xtandard-permissions": "bin/xtandard-permissions.mjs"
|
|
30
|
+
},
|
|
31
|
+
"files": [
|
|
32
|
+
"dist",
|
|
33
|
+
"bin",
|
|
34
|
+
"LICENSE",
|
|
35
|
+
"README.md"
|
|
36
|
+
],
|
|
37
|
+
"type": "module",
|
|
38
|
+
"sideEffects": false,
|
|
39
|
+
"main": "dist/index.cjs",
|
|
40
|
+
"module": "dist/index.mjs",
|
|
41
|
+
"types": "dist/index.d.mts",
|
|
42
|
+
"exports": {
|
|
43
|
+
".": {
|
|
44
|
+
"import": {
|
|
45
|
+
"types": "./dist/index.d.mts",
|
|
46
|
+
"default": "./dist/index.mjs"
|
|
47
|
+
},
|
|
48
|
+
"require": {
|
|
49
|
+
"types": "./dist/index.d.cts",
|
|
50
|
+
"default": "./dist/index.cjs"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"./catalog": {
|
|
54
|
+
"import": {
|
|
55
|
+
"types": "./dist/catalog.d.mts",
|
|
56
|
+
"default": "./dist/catalog.mjs"
|
|
57
|
+
},
|
|
58
|
+
"require": {
|
|
59
|
+
"types": "./dist/catalog.d.cts",
|
|
60
|
+
"default": "./dist/catalog.cjs"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"./testing": {
|
|
64
|
+
"import": {
|
|
65
|
+
"types": "./dist/testing.d.mts",
|
|
66
|
+
"default": "./dist/testing.mjs"
|
|
67
|
+
},
|
|
68
|
+
"require": {
|
|
69
|
+
"types": "./dist/testing.d.cts",
|
|
70
|
+
"default": "./dist/testing.cjs"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"./auth/none": {
|
|
74
|
+
"import": {
|
|
75
|
+
"types": "./dist/entry-auth-none.d.mts",
|
|
76
|
+
"default": "./dist/entry-auth-none.mjs"
|
|
77
|
+
},
|
|
78
|
+
"require": {
|
|
79
|
+
"types": "./dist/entry-auth-none.d.cts",
|
|
80
|
+
"default": "./dist/entry-auth-none.cjs"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"./auth/basic": {
|
|
84
|
+
"import": {
|
|
85
|
+
"types": "./dist/entry-auth-basic.d.mts",
|
|
86
|
+
"default": "./dist/entry-auth-basic.mjs"
|
|
87
|
+
},
|
|
88
|
+
"require": {
|
|
89
|
+
"types": "./dist/entry-auth-basic.d.cts",
|
|
90
|
+
"default": "./dist/entry-auth-basic.cjs"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"./auth/delegated": {
|
|
94
|
+
"import": {
|
|
95
|
+
"types": "./dist/entry-auth-delegated.d.mts",
|
|
96
|
+
"default": "./dist/entry-auth-delegated.mjs"
|
|
97
|
+
},
|
|
98
|
+
"require": {
|
|
99
|
+
"types": "./dist/entry-auth-delegated.d.cts",
|
|
100
|
+
"default": "./dist/entry-auth-delegated.cjs"
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
"./authorization/none": {
|
|
104
|
+
"import": {
|
|
105
|
+
"types": "./dist/entry-authorization-none.d.mts",
|
|
106
|
+
"default": "./dist/entry-authorization-none.mjs"
|
|
107
|
+
},
|
|
108
|
+
"require": {
|
|
109
|
+
"types": "./dist/entry-authorization-none.d.cts",
|
|
110
|
+
"default": "./dist/entry-authorization-none.cjs"
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
"./authorization/roles": {
|
|
114
|
+
"import": {
|
|
115
|
+
"types": "./dist/entry-authorization-roles.d.mts",
|
|
116
|
+
"default": "./dist/entry-authorization-roles.mjs"
|
|
117
|
+
},
|
|
118
|
+
"require": {
|
|
119
|
+
"types": "./dist/entry-authorization-roles.d.cts",
|
|
120
|
+
"default": "./dist/entry-authorization-roles.cjs"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"./authorization/delegated": {
|
|
124
|
+
"import": {
|
|
125
|
+
"types": "./dist/entry-authorization-delegated.d.mts",
|
|
126
|
+
"default": "./dist/entry-authorization-delegated.mjs"
|
|
127
|
+
},
|
|
128
|
+
"require": {
|
|
129
|
+
"types": "./dist/entry-authorization-delegated.d.cts",
|
|
130
|
+
"default": "./dist/entry-authorization-delegated.cjs"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"./authorization/permissions": {
|
|
134
|
+
"import": {
|
|
135
|
+
"types": "./dist/entry-authorization-permissions.d.mts",
|
|
136
|
+
"default": "./dist/entry-authorization-permissions.mjs"
|
|
137
|
+
},
|
|
138
|
+
"require": {
|
|
139
|
+
"types": "./dist/entry-authorization-permissions.d.cts",
|
|
140
|
+
"default": "./dist/entry-authorization-permissions.cjs"
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
"./bun": {
|
|
144
|
+
"import": {
|
|
145
|
+
"types": "./dist/entry-bun.d.mts",
|
|
146
|
+
"default": "./dist/entry-bun.mjs"
|
|
147
|
+
},
|
|
148
|
+
"require": {
|
|
149
|
+
"types": "./dist/entry-bun.d.cts",
|
|
150
|
+
"default": "./dist/entry-bun.cjs"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"./elysia": {
|
|
154
|
+
"import": {
|
|
155
|
+
"types": "./dist/entry-elysia.d.mts",
|
|
156
|
+
"default": "./dist/entry-elysia.mjs"
|
|
157
|
+
},
|
|
158
|
+
"require": {
|
|
159
|
+
"types": "./dist/entry-elysia.d.cts",
|
|
160
|
+
"default": "./dist/entry-elysia.cjs"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
"./elysia2": {
|
|
164
|
+
"import": {
|
|
165
|
+
"types": "./dist/types-elysia2/entry-elysia2.d.ts",
|
|
166
|
+
"default": "./dist/entry-elysia2.mjs"
|
|
167
|
+
},
|
|
168
|
+
"require": {
|
|
169
|
+
"types": "./dist/types-elysia2/entry-elysia2.d.ts",
|
|
170
|
+
"default": "./dist/entry-elysia2.cjs"
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"./express": {
|
|
174
|
+
"import": {
|
|
175
|
+
"types": "./dist/entry-express.d.mts",
|
|
176
|
+
"default": "./dist/entry-express.mjs"
|
|
177
|
+
},
|
|
178
|
+
"require": {
|
|
179
|
+
"types": "./dist/entry-express.d.cts",
|
|
180
|
+
"default": "./dist/entry-express.cjs"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"./hono": {
|
|
184
|
+
"import": {
|
|
185
|
+
"types": "./dist/entry-hono.d.mts",
|
|
186
|
+
"default": "./dist/entry-hono.mjs"
|
|
187
|
+
},
|
|
188
|
+
"require": {
|
|
189
|
+
"types": "./dist/entry-hono.d.cts",
|
|
190
|
+
"default": "./dist/entry-hono.cjs"
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"./next": {
|
|
194
|
+
"import": {
|
|
195
|
+
"types": "./dist/entry-next.d.mts",
|
|
196
|
+
"default": "./dist/entry-next.mjs"
|
|
197
|
+
},
|
|
198
|
+
"require": {
|
|
199
|
+
"types": "./dist/entry-next.d.cts",
|
|
200
|
+
"default": "./dist/entry-next.cjs"
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
"./hooks/log": {
|
|
204
|
+
"import": {
|
|
205
|
+
"types": "./dist/entry-hooks-log.d.mts",
|
|
206
|
+
"default": "./dist/entry-hooks-log.mjs"
|
|
207
|
+
},
|
|
208
|
+
"require": {
|
|
209
|
+
"types": "./dist/entry-hooks-log.d.cts",
|
|
210
|
+
"default": "./dist/entry-hooks-log.cjs"
|
|
211
|
+
}
|
|
212
|
+
},
|
|
213
|
+
"./storage/memory": {
|
|
214
|
+
"import": {
|
|
215
|
+
"types": "./dist/entry-storage-memory.d.mts",
|
|
216
|
+
"default": "./dist/entry-storage-memory.mjs"
|
|
217
|
+
},
|
|
218
|
+
"require": {
|
|
219
|
+
"types": "./dist/entry-storage-memory.d.cts",
|
|
220
|
+
"default": "./dist/entry-storage-memory.cjs"
|
|
221
|
+
}
|
|
222
|
+
},
|
|
223
|
+
"./storage/file": {
|
|
224
|
+
"import": {
|
|
225
|
+
"types": "./dist/entry-storage-file.d.mts",
|
|
226
|
+
"default": "./dist/entry-storage-file.mjs"
|
|
227
|
+
},
|
|
228
|
+
"require": {
|
|
229
|
+
"types": "./dist/entry-storage-file.d.cts",
|
|
230
|
+
"default": "./dist/entry-storage-file.cjs"
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
"./storage/redis": {
|
|
234
|
+
"import": {
|
|
235
|
+
"types": "./dist/entry-storage-redis.d.mts",
|
|
236
|
+
"default": "./dist/entry-storage-redis.mjs"
|
|
237
|
+
},
|
|
238
|
+
"require": {
|
|
239
|
+
"types": "./dist/entry-storage-redis.d.cts",
|
|
240
|
+
"default": "./dist/entry-storage-redis.cjs"
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
"./storage/postgres": {
|
|
244
|
+
"import": {
|
|
245
|
+
"types": "./dist/entry-storage-postgres.d.mts",
|
|
246
|
+
"default": "./dist/entry-storage-postgres.mjs"
|
|
247
|
+
},
|
|
248
|
+
"require": {
|
|
249
|
+
"types": "./dist/entry-storage-postgres.d.cts",
|
|
250
|
+
"default": "./dist/entry-storage-postgres.cjs"
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
"./storage/drizzle": {
|
|
254
|
+
"import": {
|
|
255
|
+
"types": "./dist/entry-storage-drizzle.d.mts",
|
|
256
|
+
"default": "./dist/entry-storage-drizzle.mjs"
|
|
257
|
+
},
|
|
258
|
+
"require": {
|
|
259
|
+
"types": "./dist/entry-storage-drizzle.d.cts",
|
|
260
|
+
"default": "./dist/entry-storage-drizzle.cjs"
|
|
261
|
+
}
|
|
262
|
+
},
|
|
263
|
+
"./storage/mongodb": {
|
|
264
|
+
"import": {
|
|
265
|
+
"types": "./dist/entry-storage-mongodb.d.mts",
|
|
266
|
+
"default": "./dist/entry-storage-mongodb.mjs"
|
|
267
|
+
},
|
|
268
|
+
"require": {
|
|
269
|
+
"types": "./dist/entry-storage-mongodb.d.cts",
|
|
270
|
+
"default": "./dist/entry-storage-mongodb.cjs"
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
"./storage/sqlite": {
|
|
274
|
+
"import": {
|
|
275
|
+
"types": "./dist/entry-storage-sqlite.d.mts",
|
|
276
|
+
"default": "./dist/entry-storage-sqlite.mjs"
|
|
277
|
+
},
|
|
278
|
+
"require": {
|
|
279
|
+
"types": "./dist/entry-storage-sqlite.d.cts",
|
|
280
|
+
"default": "./dist/entry-storage-sqlite.cjs"
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
"./storage/libsql": {
|
|
284
|
+
"import": {
|
|
285
|
+
"types": "./dist/entry-storage-libsql.d.mts",
|
|
286
|
+
"default": "./dist/entry-storage-libsql.mjs"
|
|
287
|
+
},
|
|
288
|
+
"require": {
|
|
289
|
+
"types": "./dist/entry-storage-libsql.d.cts",
|
|
290
|
+
"default": "./dist/entry-storage-libsql.cjs"
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
"./storage/unstorage": {
|
|
294
|
+
"import": {
|
|
295
|
+
"types": "./dist/entry-storage-unstorage.d.mts",
|
|
296
|
+
"default": "./dist/entry-storage-unstorage.mjs"
|
|
297
|
+
},
|
|
298
|
+
"require": {
|
|
299
|
+
"types": "./dist/entry-storage-unstorage.d.cts",
|
|
300
|
+
"default": "./dist/entry-storage-unstorage.cjs"
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
"./storage/cloudflare-kv": {
|
|
304
|
+
"import": {
|
|
305
|
+
"types": "./dist/entry-storage-cloudflare-kv.d.mts",
|
|
306
|
+
"default": "./dist/entry-storage-cloudflare-kv.mjs"
|
|
307
|
+
},
|
|
308
|
+
"require": {
|
|
309
|
+
"types": "./dist/entry-storage-cloudflare-kv.d.cts",
|
|
310
|
+
"default": "./dist/entry-storage-cloudflare-kv.cjs"
|
|
311
|
+
}
|
|
312
|
+
},
|
|
313
|
+
"./drizzle/pg": {
|
|
314
|
+
"import": {
|
|
315
|
+
"types": "./dist/entry-drizzle-pg.d.mts",
|
|
316
|
+
"default": "./dist/entry-drizzle-pg.mjs"
|
|
317
|
+
},
|
|
318
|
+
"require": {
|
|
319
|
+
"types": "./dist/entry-drizzle-pg.d.cts",
|
|
320
|
+
"default": "./dist/entry-drizzle-pg.cjs"
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
"./drizzle/mysql": {
|
|
324
|
+
"import": {
|
|
325
|
+
"types": "./dist/entry-drizzle-mysql.d.mts",
|
|
326
|
+
"default": "./dist/entry-drizzle-mysql.mjs"
|
|
327
|
+
},
|
|
328
|
+
"require": {
|
|
329
|
+
"types": "./dist/entry-drizzle-mysql.d.cts",
|
|
330
|
+
"default": "./dist/entry-drizzle-mysql.cjs"
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
"./drizzle/sqlite": {
|
|
334
|
+
"import": {
|
|
335
|
+
"types": "./dist/entry-drizzle-sqlite.d.mts",
|
|
336
|
+
"default": "./dist/entry-drizzle-sqlite.mjs"
|
|
337
|
+
},
|
|
338
|
+
"require": {
|
|
339
|
+
"types": "./dist/entry-drizzle-sqlite.d.cts",
|
|
340
|
+
"default": "./dist/entry-drizzle-sqlite.cjs"
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
"./auth/better-auth": {
|
|
344
|
+
"import": {
|
|
345
|
+
"types": "./dist/entry-auth-better-auth.d.mts",
|
|
346
|
+
"default": "./dist/entry-auth-better-auth.mjs"
|
|
347
|
+
},
|
|
348
|
+
"require": {
|
|
349
|
+
"types": "./dist/entry-auth-better-auth.d.cts",
|
|
350
|
+
"default": "./dist/entry-auth-better-auth.cjs"
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
"./auth/session": {
|
|
354
|
+
"import": {
|
|
355
|
+
"types": "./dist/entry-auth-session.d.mts",
|
|
356
|
+
"default": "./dist/entry-auth-session.mjs"
|
|
357
|
+
},
|
|
358
|
+
"require": {
|
|
359
|
+
"types": "./dist/entry-auth-session.d.cts",
|
|
360
|
+
"default": "./dist/entry-auth-session.cjs"
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
"./auth/jwt": {
|
|
364
|
+
"import": {
|
|
365
|
+
"types": "./dist/entry-auth-jwt.d.mts",
|
|
366
|
+
"default": "./dist/entry-auth-jwt.mjs"
|
|
367
|
+
},
|
|
368
|
+
"require": {
|
|
369
|
+
"types": "./dist/entry-auth-jwt.d.cts",
|
|
370
|
+
"default": "./dist/entry-auth-jwt.cjs"
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
"./better-auth": {
|
|
374
|
+
"import": {
|
|
375
|
+
"types": "./dist/entry-better-auth.d.mts",
|
|
376
|
+
"default": "./dist/entry-better-auth.mjs"
|
|
377
|
+
},
|
|
378
|
+
"require": {
|
|
379
|
+
"types": "./dist/entry-better-auth.d.cts",
|
|
380
|
+
"default": "./dist/entry-better-auth.cjs"
|
|
381
|
+
}
|
|
382
|
+
},
|
|
383
|
+
"./better-auth/client": {
|
|
384
|
+
"import": {
|
|
385
|
+
"types": "./dist/entry-better-auth-client.d.mts",
|
|
386
|
+
"default": "./dist/entry-better-auth-client.mjs"
|
|
387
|
+
},
|
|
388
|
+
"require": {
|
|
389
|
+
"types": "./dist/entry-better-auth-client.d.cts",
|
|
390
|
+
"default": "./dist/entry-better-auth-client.cjs"
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
"./bridges/audit": {
|
|
394
|
+
"import": {
|
|
395
|
+
"types": "./dist/entry-bridges-audit.d.mts",
|
|
396
|
+
"default": "./dist/entry-bridges-audit.mjs"
|
|
397
|
+
},
|
|
398
|
+
"require": {
|
|
399
|
+
"types": "./dist/entry-bridges-audit.d.cts",
|
|
400
|
+
"default": "./dist/entry-bridges-audit.cjs"
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
"./bridges/webhooks": {
|
|
404
|
+
"import": {
|
|
405
|
+
"types": "./dist/entry-bridges-webhooks.d.mts",
|
|
406
|
+
"default": "./dist/entry-bridges-webhooks.mjs"
|
|
407
|
+
},
|
|
408
|
+
"require": {
|
|
409
|
+
"types": "./dist/entry-bridges-webhooks.d.cts",
|
|
410
|
+
"default": "./dist/entry-bridges-webhooks.cjs"
|
|
411
|
+
}
|
|
412
|
+
},
|
|
413
|
+
"./react": {
|
|
414
|
+
"import": {
|
|
415
|
+
"types": "./dist/entry-react.d.mts",
|
|
416
|
+
"default": "./dist/entry-react.mjs"
|
|
417
|
+
},
|
|
418
|
+
"require": {
|
|
419
|
+
"types": "./dist/entry-react.d.cts",
|
|
420
|
+
"default": "./dist/entry-react.cjs"
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
"./react/embed": {
|
|
424
|
+
"import": {
|
|
425
|
+
"types": "./dist/types-react/entry-react-embed.d.ts",
|
|
426
|
+
"default": "./dist/react-embed.js"
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
"./react/styles.css": "./dist/react.css",
|
|
430
|
+
"./ui/*": "./dist/ui/*",
|
|
431
|
+
"./package.json": "./package.json"
|
|
432
|
+
},
|
|
433
|
+
"publishConfig": {
|
|
434
|
+
"access": "public"
|
|
435
|
+
},
|
|
436
|
+
"scripts": {
|
|
437
|
+
"build": "bun run build:lib && bun run build:elysia2-types && bun run build:ui && bun run build:react",
|
|
438
|
+
"build:lib": "vp pack",
|
|
439
|
+
"build:elysia2-types": "tsc -p tsconfig.elysia2.build.json && xtandard-kit fix-elysia2-types",
|
|
440
|
+
"build:ui": "vite build --config vite.ui.config.ts",
|
|
441
|
+
"dev:ui": "vite --config vite.ui.config.ts",
|
|
442
|
+
"build:react": "vite build --config vite.react.config.ts && xtandard-kit scope-embed-css --scope xtandard-permissions && tsc -p tsconfig.react.json",
|
|
443
|
+
"test": "vp test run",
|
|
444
|
+
"test:coverage": "vp test run --coverage",
|
|
445
|
+
"test:bun": "bun test ./test/*.bun.test.ts",
|
|
446
|
+
"test:e2e": "playwright test",
|
|
447
|
+
"lint": "vp lint",
|
|
448
|
+
"format": "vp fmt",
|
|
449
|
+
"format:check": "vp fmt --check",
|
|
450
|
+
"typecheck": "tsc --noEmit && tsc --noEmit -p tsconfig.elysia2.json && tsc -p examples/docs-snippets",
|
|
451
|
+
"typecheck:examples": "tsc -p examples/tsconfig.json && tsc -p examples/elysia2/tsconfig.json",
|
|
452
|
+
"check": "vp lint && vp fmt --check && bun run typecheck",
|
|
453
|
+
"docs:dev": "cd site && bun install && bun run dev",
|
|
454
|
+
"docs:build": "cd site && bun install && bun run build",
|
|
455
|
+
"docs:preview": "cd site && bun run preview",
|
|
456
|
+
"prepare": "husky || true",
|
|
457
|
+
"release": "changelogen --release --push",
|
|
458
|
+
"demo": "bun scripts/demo.ts",
|
|
459
|
+
"screenshots": "bun scripts/screenshots.ts",
|
|
460
|
+
"examples:hono": "bun scripts/example.ts hono",
|
|
461
|
+
"examples:elysia": "bun scripts/example.ts elysia",
|
|
462
|
+
"examples:elysia2": "bun scripts/example.ts elysia2",
|
|
463
|
+
"examples:express": "bun scripts/example.ts express",
|
|
464
|
+
"examples:bun": "bun scripts/example.ts bun",
|
|
465
|
+
"examples:next": "bun scripts/example.ts next",
|
|
466
|
+
"examples:better-auth": "bun scripts/example.ts better-auth",
|
|
467
|
+
"examples:react-app": "bun scripts/example.ts react-app",
|
|
468
|
+
"examples:jwt": "bun scripts/example.ts jwt",
|
|
469
|
+
"examples:rebac": "bun scripts/example.ts rebac",
|
|
470
|
+
"examples:storage-drivers": "bun scripts/example.ts storage-drivers",
|
|
471
|
+
"examples:ecosystem": "bun scripts/example.ts ecosystem",
|
|
472
|
+
"examples:demos": "bun scripts/example.ts all --demo"
|
|
473
|
+
},
|
|
474
|
+
"dependencies": {
|
|
475
|
+
"@xtandard/kit": "^0.1.2",
|
|
476
|
+
"@xtandard/lib": "^0.9.0",
|
|
477
|
+
"valibot": "^1.0.0",
|
|
478
|
+
"wouter": "^3.10.0"
|
|
479
|
+
},
|
|
480
|
+
"devDependencies": {
|
|
481
|
+
"@base-ui-components/react": "1.0.0-rc.0",
|
|
482
|
+
"@electric-sql/pglite": "^0.2.0",
|
|
483
|
+
"@elysia/eden": "2.0.0-rc.0",
|
|
484
|
+
"@elysiajs/eden": "^1.4",
|
|
485
|
+
"@libsql/client": "0.15.15",
|
|
486
|
+
"@playwright/test": "^1.49.0",
|
|
487
|
+
"@tailwindcss/vite": "^4.0.0",
|
|
488
|
+
"@tanstack/react-query": "^5.62.0",
|
|
489
|
+
"@testing-library/dom": "^10.4.2",
|
|
490
|
+
"@testing-library/react": "^16.3.3",
|
|
491
|
+
"@types/bun": "^1.1.14",
|
|
492
|
+
"@types/express": "^5.0.0",
|
|
493
|
+
"@types/pg": "^8.11.0",
|
|
494
|
+
"@types/react": "^19.0.0",
|
|
495
|
+
"@types/react-dom": "^19.0.0",
|
|
496
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
497
|
+
"@vitest/coverage-v8": "^4.1.6",
|
|
498
|
+
"better-auth": "^1.7.27",
|
|
499
|
+
"changelogen": "^0.6.2",
|
|
500
|
+
"clsx": "^2.1",
|
|
501
|
+
"drizzle-orm": "^0.45.2",
|
|
502
|
+
"elysia": "^1.4",
|
|
503
|
+
"elysia-v2": "npm:elysia@2.0.0-rc.0",
|
|
504
|
+
"exact-mirror": "^1.2.6",
|
|
505
|
+
"express": "^5.0.0",
|
|
506
|
+
"happy-dom": "^21.0.4",
|
|
507
|
+
"hono": "^4.6.0",
|
|
508
|
+
"husky": "^9.1.7",
|
|
509
|
+
"jose": "^6.2.3",
|
|
510
|
+
"lucide-react": "^1.22",
|
|
511
|
+
"mongodb": "^6.10.0",
|
|
512
|
+
"mysql2": "^3.24.6",
|
|
513
|
+
"permix": "^4.4.0",
|
|
514
|
+
"pg": "^8.13.0",
|
|
515
|
+
"playwright": "^1.49.0",
|
|
516
|
+
"postcss": "^8.5.16",
|
|
517
|
+
"postcss-prefix-selector": "^2.1.1",
|
|
518
|
+
"react": "^19.0.0",
|
|
519
|
+
"react-dom": "^19.0.0",
|
|
520
|
+
"redis": "^5.0.0",
|
|
521
|
+
"tailwind-merge": "^3.6",
|
|
522
|
+
"tailwindcss": "^4.0.0",
|
|
523
|
+
"typebox": "^1.4.3",
|
|
524
|
+
"typescript": "^5.7.0",
|
|
525
|
+
"unstorage": "^1.13.0",
|
|
526
|
+
"vite": "^6.0.0",
|
|
527
|
+
"vite-plus": "^0.1.22"
|
|
528
|
+
},
|
|
529
|
+
"peerDependencies": {
|
|
530
|
+
"@libsql/client": "0.15.15",
|
|
531
|
+
"better-auth": "^1.7.0",
|
|
532
|
+
"drizzle-orm": ">=0.44.0 || >=1.0.0-0",
|
|
533
|
+
"elysia": "^1.0.0 || ^2.0.0-0",
|
|
534
|
+
"express": "^4.0.0 || ^5.0.0",
|
|
535
|
+
"hono": "^4.0.0",
|
|
536
|
+
"jose": "^5.0.0 || ^6.0.0",
|
|
537
|
+
"mongodb": "^5.0.0 || ^6.0.0",
|
|
538
|
+
"permix": "^4.4.0",
|
|
539
|
+
"pg": "^8.0.0",
|
|
540
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
541
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
542
|
+
"redis": "^4.0.0 || ^5.0.0",
|
|
543
|
+
"unstorage": "^1.0.0"
|
|
544
|
+
},
|
|
545
|
+
"peerDependenciesMeta": {
|
|
546
|
+
"@libsql/client": {
|
|
547
|
+
"optional": true
|
|
548
|
+
},
|
|
549
|
+
"better-auth": {
|
|
550
|
+
"optional": true
|
|
551
|
+
},
|
|
552
|
+
"drizzle-orm": {
|
|
553
|
+
"optional": true
|
|
554
|
+
},
|
|
555
|
+
"elysia": {
|
|
556
|
+
"optional": true
|
|
557
|
+
},
|
|
558
|
+
"express": {
|
|
559
|
+
"optional": true
|
|
560
|
+
},
|
|
561
|
+
"hono": {
|
|
562
|
+
"optional": true
|
|
563
|
+
},
|
|
564
|
+
"jose": {
|
|
565
|
+
"optional": true
|
|
566
|
+
},
|
|
567
|
+
"mongodb": {
|
|
568
|
+
"optional": true
|
|
569
|
+
},
|
|
570
|
+
"pg": {
|
|
571
|
+
"optional": true
|
|
572
|
+
},
|
|
573
|
+
"react": {
|
|
574
|
+
"optional": true
|
|
575
|
+
},
|
|
576
|
+
"react-dom": {
|
|
577
|
+
"optional": true
|
|
578
|
+
},
|
|
579
|
+
"redis": {
|
|
580
|
+
"optional": true
|
|
581
|
+
},
|
|
582
|
+
"unstorage": {
|
|
583
|
+
"optional": true
|
|
584
|
+
}
|
|
585
|
+
},
|
|
586
|
+
"engines": {
|
|
587
|
+
"node": ">=20"
|
|
588
|
+
}
|
|
589
|
+
}
|