@m5kdev/web-ui 0.8.6 → 0.8.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_rolldown/runtime.js +23 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/api/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/context/endpoint-context.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/context/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/context/transaction.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/adapter/factory.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/adapter/get-default-field-name.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/adapter/get-default-model-name.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/adapter/get-field-attributes.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/adapter/get-field-name.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/adapter/get-id-field.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/adapter/get-model-name.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/adapter/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/adapter/types.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/adapter/utils.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/get-tables.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/plugin.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/schema/account.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/schema/rate-limit.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/schema/session.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/schema/shared.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/schema/user.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/schema/verification.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/db/type.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/oauth2/client-credentials-token.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/oauth2/create-authorization-url.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/oauth2/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/oauth2/oauth-provider.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/oauth2/refresh-access-token.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/oauth2/utils.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/oauth2/validate-authorization-code.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/apple.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/atlassian.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/cognito.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/discord.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/dropbox.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/facebook.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/figma.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/github.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/gitlab.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/google.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/huggingface.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/kakao.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/kick.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/line.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/linear.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/linkedin.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/microsoft-entra-id.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/naver.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/notion.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/paybin.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/paypal.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/polar.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/reddit.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/roblox.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/salesforce.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/slack.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/spotify.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/tiktok.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/twitch.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/twitter.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/vercel.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/vk.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/social-providers/zoom.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/types/context.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/types/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/types/init-options.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/types/plugin-client.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/types/plugin.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/utils/db.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better-fetch_fetch@1.1.21_better-cal_347838d331444e5371f256b914727290/node_modules/@better-auth/core/dist/utils/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/@better-auth_telemetry@1.4.18_@better-auth_core@1.4.18_@better-auth_utils@0.3.0_@better_5bdd8772f1558f3b68c06a14d130fcab/node_modules/@better-auth/telemetry/dist/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/@libsql_core@0.17.0/node_modules/@libsql/core/lib-esm/api.d.ts +79 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/client.d.ts +580 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/exports.d.ts +14 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/integration.d.ts +10 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/scope.d.ts +289 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/attachment.d.ts +32 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/breadcrumb.d.ts +86 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/checkin.d.ts +101 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/clientreport.d.ts +16 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/context.d.ts +132 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/csp.d.ts +19 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/datacategory.d.ts +5 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/debugMeta.d.ts +30 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/dsn.d.ts +23 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/envelope.d.ts +153 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/event.d.ts +91 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/eventprocessor.d.ts +16 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/exception.d.ts +16 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/extra.d.ts +6 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/feedback/sendFeedback.d.ts +35 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/integration.d.ts +43 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/link.d.ts +32 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/log.d.ts +73 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/measurement.d.ts +26 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/mechanism.d.ts +54 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/metric.d.ts +77 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/misc.d.ts +32 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/opentelemetry.d.ts +17 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/options.d.ts +426 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/package.d.ts +11 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/parameterize.d.ts +8 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/profiling.d.ts +132 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/replay.d.ts +29 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/request.d.ts +21 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/samplingcontext.d.ts +49 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/sdkinfo.d.ts +18 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/sdkmetadata.d.ts +9 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/session.d.ts +68 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/severity.d.ts +5 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/span.d.ts +183 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/spanStatus.d.ts +27 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/stackframe.d.ts +25 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/stacktrace.d.ts +12 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/startSpanOptions.d.ts +66 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/thread.d.ts +15 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/tracing.d.ts +51 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/transaction.d.ts +9 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/transport.d.ts +32 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/types-hoist/user.d.ts +20 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/utils/featureFlags.d.ts +13 -0
- package/dist/node_modules/.pnpm/@sentry_core@10.22.0/node_modules/@sentry/core/build/types/utils/prepareEvent.d.ts +13 -0
- package/dist/node_modules/.pnpm/@trpc_server@11.4.3_typescript@5.9.2/node_modules/@trpc/server/dist/index.d-D4qZxQJh.d.ts +31 -0
- package/dist/node_modules/.pnpm/@trpc_server@11.4.3_typescript@5.9.2/node_modules/@trpc/server/dist/unstable-core-do-not-import.d-ClFRzVsT.d.ts +912 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/api/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/api/middlewares/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/api/middlewares/origin-check.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/api/routes/account.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/api/routes/callback.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/api/routes/email-verification.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/api/routes/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/api/routes/password.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/api/routes/session.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/api/routes/sign-in.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/api/routes/sign-up.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/api/routes/update-user.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/auth/full.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/client/path-to-object.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/client/types.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/db/adapter-base.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/db/adapter-kysely.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/db/field-converter.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/db/field.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/db/get-migration.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/db/get-schema.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/db/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/db/internal-adapter.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/db/schema.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/db/to-zod.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/db/with-hooks.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/index.d.ts +3 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/oauth2/state.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/access/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/access/types.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/admin/admin.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/admin/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/admin/types.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/anonymous/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/anonymous/types.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/api-key/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/api-key/schema.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/api-key/types.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/bearer/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/captcha/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/custom-session/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/device-authorization/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/email-otp/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/email-otp/types.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/generic-oauth/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/generic-oauth/providers/auth0.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/generic-oauth/providers/gumroad.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/generic-oauth/providers/hubspot.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/generic-oauth/providers/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/generic-oauth/providers/keycloak.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/generic-oauth/providers/line.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/generic-oauth/providers/microsoft-entra-id.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/generic-oauth/providers/okta.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/generic-oauth/providers/patreon.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/generic-oauth/providers/slack.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/generic-oauth/types.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/haveibeenpwned/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/jwt/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/jwt/sign.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/jwt/types.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/jwt/utils.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/jwt/verify.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/last-login-method/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/magic-link/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/mcp/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/multi-session/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/oauth-proxy/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/oidc-provider/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/oidc-provider/schema.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/oidc-provider/types.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/one-tap/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/one-time-token/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/open-api/generator.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/open-api/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/organization/access/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/organization/access/statement.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/organization/adapter.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/organization/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/organization/organization.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/organization/routes/crud-access-control.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/organization/routes/crud-invites.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/organization/routes/crud-members.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/organization/routes/crud-org.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/organization/routes/crud-team.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/organization/schema.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/organization/types.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/phone-number/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/phone-number/types.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/siwe/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/two-factor/backup-codes/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/two-factor/client.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/two-factor/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/two-factor/otp/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/two-factor/totp/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/two-factor/types.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/username/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/plugins/username/schema.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/state.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/types/adapter.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/types/api.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/types/auth.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/types/helper.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/types/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/types/models.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/types/plugins.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/utils/get-request-ip.d.ts +1 -0
- package/dist/node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.4_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferut_929f3a53f15af7ff00a6cf0e0dc1d5a2/node_modules/better-auth/dist/utils/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/batch.d.ts +9 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/cache/core/cache.d.ts +33 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/cache/core/types.d.ts +37 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/casing.d.ts +17 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/column-builder.d.ts +116 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/column.d.ts +69 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/entity.d.ts +5 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/gel-core/columns/common.d.ts +16 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/gel-core/table.d.ts +12 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/libsql/driver-core.d.ts +13 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/migrator.d.ts +15 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/mysql-core/columns/common.d.ts +16 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/mysql-core/table.d.ts +13 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/operations.d.ts +27 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/pg-core/columns/common.d.ts +16 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/pg-core/sequence.d.ts +12 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/pg-core/table.d.ts +12 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/query-builders/query-builder.d.ts +16 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/query-builders/select.types.d.ts +38 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/query-promise.d.ts +14 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/relations.d.ts +171 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/runnable-query.d.ts +12 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/session.d.ts +10 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/singlestore-core/columns/common.d.ts +16 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/singlestore-core/table.d.ts +13 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/sql/expressions/conditions.d.ts +287 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/sql/expressions/select.d.ts +43 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/sql/sql.d.ts +225 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/sqlite-core/columns/common.d.ts +18 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/sqlite-core/db.d.ts +258 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/sqlite-core/dialect.d.ts +132 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/sqlite-core/indexes.d.ts +8 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/sqlite-core/query-builders/count.d.ts +31 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/sqlite-core/query-builders/delete.d.ts +122 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/sqlite-core/query-builders/insert.d.ts +171 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/sqlite-core/query-builders/query-builder.d.ts +33 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/sqlite-core/query-builders/query.d.ts +60 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/sqlite-core/query-builders/raw.d.ts +34 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/sqlite-core/query-builders/select.d.ts +476 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/sqlite-core/query-builders/select.types.d.ts +122 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/sqlite-core/query-builders/update.d.ts +154 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/sqlite-core/session.d.ts +112 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/sqlite-core/subquery.d.ts +23 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/sqlite-core/table.d.ts +13 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/sqlite-core/view-base.d.ts +13 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/sqlite-core/view.d.ts +21 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/subquery.d.ts +24 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/table.d.ts +71 -0
- package/dist/node_modules/.pnpm/drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-validate@5.0.10__@opent_ac1027c3f9e88da128946e54f6f618fa/node_modules/drizzle-orm/utils.d.ts +27 -0
- package/dist/node_modules/.pnpm/drizzle-zod@0.8.2_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-valid_797c3b5a0ad29f2403edf9a3c791ff27/node_modules/drizzle-zod/column.d.ts +1 -0
- package/dist/node_modules/.pnpm/drizzle-zod@0.8.2_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-valid_797c3b5a0ad29f2403edf9a3c791ff27/node_modules/drizzle-zod/column.types.d.ts +1 -0
- package/dist/node_modules/.pnpm/drizzle-zod@0.8.2_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-valid_797c3b5a0ad29f2403edf9a3c791ff27/node_modules/drizzle-zod/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/drizzle-zod@0.8.2_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-valid_797c3b5a0ad29f2403edf9a3c791ff27/node_modules/drizzle-zod/schema.d.ts +1 -0
- package/dist/node_modules/.pnpm/drizzle-zod@0.8.2_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-valid_797c3b5a0ad29f2403edf9a3c791ff27/node_modules/drizzle-zod/schema.types.d.ts +1 -0
- package/dist/node_modules/.pnpm/drizzle-zod@0.8.2_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-valid_797c3b5a0ad29f2403edf9a3c791ff27/node_modules/drizzle-zod/schema.types.internal.d.ts +1 -0
- package/dist/node_modules/.pnpm/drizzle-zod@0.8.2_drizzle-orm@0.44.3_@libsql_client@0.17.0_bufferutil@4.1.0_utf-8-valid_797c3b5a0ad29f2403edf9a3c791ff27/node_modules/drizzle-zod/utils.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/dialect-adapter-base.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/dialect-adapter.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/dialect.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/mssql/mssql-adapter.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/mssql/mssql-dialect.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/mssql/mssql-introspector.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/mysql/mysql-adapter.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/mysql/mysql-dialect.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/mysql/mysql-introspector.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/postgres/postgres-adapter.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/postgres/postgres-dialect.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/postgres/postgres-introspector.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/sqlite/sqlite-adapter.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/sqlite/sqlite-dialect.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/dialect/sqlite/sqlite-introspector.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/expression/expression-builder.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/index.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/kysely.d.ts +38 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/migration/file-migration-provider.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/migration/migrator.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/binary-operation-parser.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/delete-from-parser.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/expression-parser.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/group-by-parser.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/insert-values-parser.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/join-parser.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/merge-into-parser.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/reference-parser.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/returning-parser.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/select-from-parser.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/select-parser.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/set-operation-parser.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/tuple-parser.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/unary-operation-parser.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/update-parser.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/update-set-parser.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/value-parser.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/parser/with-parser.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/case-builder.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/delete-query-builder.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/having-interface.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/insert-query-builder.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/join-builder.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/merge-query-builder.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/on-conflict-builder.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/output-interface.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/returning-interface.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/select-query-builder.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/update-query-builder.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-builder/where-interface.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-creator.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-executor/default-query-executor.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-executor/noop-query-executor.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-executor/query-executor-base.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-executor/query-executor-provider.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/query-executor/query-executor.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/raw-builder/raw-builder.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/raw-builder/sql.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/alter-table-add-foreign-key-constraint-builder.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/alter-table-add-index-builder.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/alter-table-builder.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/alter-table-drop-constraint-builder.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/alter-table-executor.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/create-index-builder.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/create-schema-builder.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/create-table-builder.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/create-type-builder.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/create-view-builder.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/drop-index-builder.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/drop-schema-builder.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/drop-table-builder.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/drop-type-builder.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/drop-view-builder.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/refresh-materialized-view-builder.d.ts +1 -0
- package/dist/node_modules/.pnpm/kysely@0.28.5/node_modules/kysely/dist/esm/schema/schema.d.ts +1 -0
- package/dist/node_modules/.pnpm/neverthrow@8.2.0/node_modules/neverthrow/dist/index.d.ts +299 -0
- package/dist/node_modules/.pnpm/pino-std-serializers@7.0.0/node_modules/pino-std-serializers/index.d.ts +132 -0
- package/dist/node_modules/.pnpm/pino@9.6.0/node_modules/pino/pino.d.ts +766 -0
- package/dist/node_modules/.pnpm/resend@6.5.2_@react-email_render@2.0.0_react-dom@19.2.1_react@19.2.1__react@19.2.1_/node_modules/resend/dist/index.d.ts +1295 -0
- package/dist/node_modules/.pnpm/sonic-boom@4.2.0/node_modules/sonic-boom/types/index.d.ts +55 -0
- package/dist/node_modules/.pnpm/stripe@20.1.0_@types_node@20.19.11/node_modules/stripe/types/index.d.ts +573 -0
- package/dist/packages/backend/dist/src/modules/auth/auth.db.d.ts +610 -0
- package/dist/packages/backend/dist/src/modules/auth/auth.dto.d.ts +71 -0
- package/dist/packages/backend/dist/src/modules/auth/auth.lib.d.ts +8 -0
- package/dist/packages/backend/dist/src/modules/auth/auth.repository.d.ts +2455 -0
- package/dist/packages/backend/dist/src/modules/auth/auth.service.d.ts +106 -0
- package/dist/packages/backend/dist/src/modules/base/base.abstract.d.ts +30 -0
- package/dist/packages/backend/dist/src/modules/base/base.actor.d.ts +38 -0
- package/dist/packages/backend/dist/src/modules/base/base.dto.d.ts +13 -0
- package/dist/packages/backend/dist/src/modules/base/base.grants.d.ts +1 -0
- package/dist/packages/backend/dist/src/modules/base/base.procedure.d.ts +47 -0
- package/dist/packages/backend/dist/src/modules/base/base.repository.d.mts +2 -0
- package/dist/packages/backend/dist/src/modules/base/base.repository.d.ts +128 -0
- package/dist/packages/backend/dist/src/modules/base/base.service.d.ts +34 -0
- package/dist/packages/backend/dist/src/modules/base/base.types.d.ts +6 -0
- package/dist/packages/backend/dist/src/modules/billing/billing.repository.d.mts +10 -10
- package/dist/packages/backend/dist/src/modules/billing/billing.repository.d.ts +2788 -0
- package/dist/packages/backend/dist/src/modules/billing/billing.service.d.mts +6 -6
- package/dist/packages/backend/dist/src/modules/billing/billing.service.d.ts +53 -0
- package/dist/packages/backend/dist/src/modules/email/email.service.d.ts +63 -0
- package/dist/packages/backend/dist/src/types.d.ts +344 -0
- package/dist/packages/backend/dist/src/utils/errors.d.ts +60 -0
- package/dist/packages/backend/dist/src/utils/logger.d.ts +8 -0
- package/dist/packages/backend/dist/src/utils/trpc.d.ts +23 -0
- package/dist/src/animations/card.motion.d.ts +7 -0
- package/dist/src/animations/card.motion.js +27 -0
- package/dist/src/animations/card.motion.js.map +1 -0
- package/dist/src/components/AvatarUpload.d.ts +16 -0
- package/dist/src/components/AvatarUpload.js +111 -0
- package/dist/src/components/AvatarUpload.js.map +1 -0
- package/dist/src/components/Button.d.ts +15 -0
- package/dist/src/components/Button.js +16 -0
- package/dist/src/components/Button.js.map +1 -0
- package/dist/src/components/Calendar.d.ts +37 -0
- package/dist/src/components/Calendar.js +31 -0
- package/dist/src/components/Calendar.js.map +1 -0
- package/dist/src/components/CardsSelect.d.ts +27 -0
- package/dist/src/components/CardsSelect.js +82 -0
- package/dist/src/components/CardsSelect.js.map +1 -0
- package/dist/src/components/CollapsibleSidebarMenuItem.d.ts +22 -0
- package/dist/src/components/CollapsibleSidebarMenuItem.js +36 -0
- package/dist/src/components/CollapsibleSidebarMenuItem.js.map +1 -0
- package/dist/src/components/ColorPicker.d.ts +15 -0
- package/dist/src/components/ColorPicker.js +54 -0
- package/dist/src/components/ColorPicker.js.map +1 -0
- package/dist/src/components/CopyButton.d.ts +18 -0
- package/dist/src/components/CopyButton.js +35 -0
- package/dist/src/components/CopyButton.js.map +1 -0
- package/dist/src/components/CropDialog.d.ts +22 -0
- package/dist/src/components/CropDialog.js +116 -0
- package/dist/src/components/CropDialog.js.map +1 -0
- package/dist/src/components/DialogProvider.d.ts +23 -0
- package/dist/src/components/DialogProvider.js +75 -0
- package/dist/src/components/DialogProvider.js.map +1 -0
- package/dist/src/components/ErrorFallback.d.ts +13 -0
- package/dist/src/components/ErrorFallback.js +32 -0
- package/dist/src/components/ErrorFallback.js.map +1 -0
- package/dist/src/components/FileDropzone.d.ts +14 -0
- package/dist/src/components/FileDropzone.js +103 -0
- package/dist/src/components/FileDropzone.js.map +1 -0
- package/dist/src/components/MultiSelectDropdown.d.ts +29 -0
- package/dist/src/components/MultiSelectDropdown.js +106 -0
- package/dist/src/components/MultiSelectDropdown.js.map +1 -0
- package/dist/src/components/Orb.d.ts +16 -0
- package/dist/src/components/Orb.js +268 -0
- package/dist/src/components/Orb.js.map +1 -0
- package/dist/src/components/PageAlert.d.ts +23 -0
- package/dist/src/components/PageAlert.js +78 -0
- package/dist/src/components/PageAlert.js.map +1 -0
- package/dist/src/components/SelectChips.d.ts +21 -0
- package/dist/src/components/SelectChips.js +25 -0
- package/dist/src/components/SelectChips.js.map +1 -0
- package/dist/src/components/SidebarItem.d.ts +18 -0
- package/dist/src/components/SidebarItem.js +20 -0
- package/dist/src/components/SidebarItem.js.map +1 -0
- package/dist/src/components/Steps.d.ts +24 -0
- package/dist/src/components/Steps.js +204 -0
- package/dist/src/components/Steps.js.map +1 -0
- package/dist/src/components/TablerIconPicker.d.ts +13 -0
- package/dist/src/components/TablerIconPicker.js +4260 -0
- package/dist/src/components/TablerIconPicker.js.map +1 -0
- package/dist/src/components/app-header.d.ts +14 -0
- package/dist/src/components/app-header.js +31 -0
- package/dist/src/components/app-header.js.map +1 -0
- package/dist/src/components/blur-card.d.ts +27 -0
- package/dist/src/components/blur-card.js +139 -0
- package/dist/src/components/blur-card.js.map +1 -0
- package/dist/src/components/features-section-demo-1.d.ts +22 -0
- package/dist/src/components/features-section-demo-1.js +132 -0
- package/dist/src/components/features-section-demo-1.js.map +1 -0
- package/dist/src/components/features-section-demo-2.d.ts +6 -0
- package/dist/src/components/features-section-demo-2.js +83 -0
- package/dist/src/components/features-section-demo-2.js.map +1 -0
- package/dist/src/components/features-section-demo-3.d.ts +16 -0
- package/dist/src/components/features-section-demo-3.js +263 -0
- package/dist/src/components/features-section-demo-3.js.map +1 -0
- package/dist/src/components/mode-toggle.d.ts +7 -0
- package/dist/src/components/mode-toggle.js +46 -0
- package/dist/src/components/mode-toggle.js.map +1 -0
- package/dist/src/components/nav-main.d.ts +21 -0
- package/dist/src/components/nav-main.js +37 -0
- package/dist/src/components/nav-main.js.map +1 -0
- package/dist/src/components/pricing-cards.d.ts +7 -0
- package/dist/src/components/pricing-cards.js +130 -0
- package/dist/src/components/pricing-cards.js.map +1 -0
- package/dist/src/components/shared/ButtonCopy.d.ts +17 -0
- package/dist/src/components/shared/ButtonCopy.js +37 -0
- package/dist/src/components/shared/ButtonCopy.js.map +1 -0
- package/dist/src/components/team-switcher.d.ts +16 -0
- package/dist/src/components/team-switcher.js +75 -0
- package/dist/src/components/team-switcher.js.map +1 -0
- package/dist/src/components/theme-provider.d.ts +23 -0
- package/dist/src/components/theme-provider.js +48 -0
- package/dist/src/components/theme-provider.js.map +1 -0
- package/dist/src/components/typewriter.d.ts +39 -0
- package/dist/src/components/typewriter.js +50 -0
- package/dist/src/components/typewriter.js.map +1 -0
- package/dist/src/components/ui/alert-dialog.d.ts +49 -0
- package/dist/src/components/ui/alert-dialog.js +94 -0
- package/dist/src/components/ui/alert-dialog.js.map +1 -0
- package/dist/src/components/ui/alert.d.ts +25 -0
- package/dist/src/components/ui/alert.js +40 -0
- package/dist/src/components/ui/alert.js.map +1 -0
- package/dist/src/components/ui/avatar.d.ts +10 -0
- package/dist/src/components/ui/avatar.js +34 -0
- package/dist/src/components/ui/avatar.js.map +1 -0
- package/dist/src/components/ui/badge.d.mts +1 -1
- package/dist/src/components/ui/badge.d.ts +18 -0
- package/dist/src/components/ui/badge.js +25 -0
- package/dist/src/components/ui/badge.js.map +1 -0
- package/dist/src/components/ui/bento-grid.d.ts +26 -0
- package/dist/src/components/ui/bento-grid.js +35 -0
- package/dist/src/components/ui/bento-grid.js.map +1 -0
- package/dist/src/components/ui/bento-grid2.d.ts +31 -0
- package/dist/src/components/ui/bento-grid2.js +52 -0
- package/dist/src/components/ui/bento-grid2.js.map +1 -0
- package/dist/src/components/ui/breadcrumb.d.ts +31 -0
- package/dist/src/components/ui/breadcrumb.js +72 -0
- package/dist/src/components/ui/breadcrumb.js.map +1 -0
- package/dist/src/components/ui/button.d.mts +1 -1
- package/dist/src/components/ui/button.d.ts +16 -0
- package/dist/src/components/ui/button.js +47 -0
- package/dist/src/components/ui/button.js.map +1 -0
- package/dist/src/components/ui/card.d.ts +12 -0
- package/dist/src/components/ui/card.js +52 -0
- package/dist/src/components/ui/card.js.map +1 -0
- package/dist/src/components/ui/checkbox.d.ts +8 -0
- package/dist/src/components/ui/checkbox.js +24 -0
- package/dist/src/components/ui/checkbox.js.map +1 -0
- package/dist/src/components/ui/collapsible.d.ts +10 -0
- package/dist/src/components/ui/collapsible.js +14 -0
- package/dist/src/components/ui/collapsible.js.map +1 -0
- package/dist/src/components/ui/dialog.d.ts +45 -0
- package/dist/src/components/ui/dialog.js +97 -0
- package/dist/src/components/ui/dialog.js.map +1 -0
- package/dist/src/components/ui/dropdown-menu.d.ts +35 -0
- package/dist/src/components/ui/dropdown-menu.js +100 -0
- package/dist/src/components/ui/dropdown-menu.js.map +1 -0
- package/dist/src/components/ui/floating-navbar.d.ts +18 -0
- package/dist/src/components/ui/floating-navbar.js +54 -0
- package/dist/src/components/ui/floating-navbar.js.map +1 -0
- package/dist/src/components/ui/form.d.ts +32 -0
- package/dist/src/components/ui/form.js +102 -0
- package/dist/src/components/ui/form.js.map +1 -0
- package/dist/src/components/ui/image.d.ts +9 -0
- package/dist/src/components/ui/image.js +57 -0
- package/dist/src/components/ui/image.js.map +1 -0
- package/dist/src/components/ui/input.d.ts +7 -0
- package/dist/src/components/ui/input.js +20 -0
- package/dist/src/components/ui/input.js.map +1 -0
- package/dist/src/components/ui/label.d.ts +10 -0
- package/dist/src/components/ui/label.js +21 -0
- package/dist/src/components/ui/label.js.map +1 -0
- package/dist/src/components/ui/pagination.d.ts +40 -0
- package/dist/src/components/ui/pagination.js +87 -0
- package/dist/src/components/ui/pagination.js.map +1 -0
- package/dist/src/components/ui/progress.d.ts +8 -0
- package/dist/src/components/ui/progress.js +23 -0
- package/dist/src/components/ui/progress.js.map +1 -0
- package/dist/src/components/ui/resizable-navbar.d.ts +97 -0
- package/dist/src/components/ui/resizable-navbar.js +149 -0
- package/dist/src/components/ui/resizable-navbar.js.map +1 -0
- package/dist/src/components/ui/segment-control.d.ts +12 -0
- package/dist/src/components/ui/segment-control.js +89 -0
- package/dist/src/components/ui/segment-control.js.map +1 -0
- package/dist/src/components/ui/select.d.ts +17 -0
- package/dist/src/components/ui/select.js +88 -0
- package/dist/src/components/ui/select.js.map +1 -0
- package/dist/src/components/ui/separator.d.ts +8 -0
- package/dist/src/components/ui/separator.js +21 -0
- package/dist/src/components/ui/separator.js.map +1 -0
- package/dist/src/components/ui/sheet.d.ts +36 -0
- package/dist/src/components/ui/sheet.js +79 -0
- package/dist/src/components/ui/sheet.js.map +1 -0
- package/dist/src/components/ui/sidebar.d.ts +73 -0
- package/dist/src/components/ui/sidebar.js +403 -0
- package/dist/src/components/ui/sidebar.js.map +1 -0
- package/dist/src/components/ui/skeleton.d.ts +10 -0
- package/dist/src/components/ui/skeleton.js +15 -0
- package/dist/src/components/ui/skeleton.js.map +1 -0
- package/dist/src/components/ui/slider.d.ts +8 -0
- package/dist/src/components/ui/slider.js +23 -0
- package/dist/src/components/ui/slider.js.map +1 -0
- package/dist/src/components/ui/sonner.d.ts +11 -0
- package/dist/src/components/ui/sonner.js +24 -0
- package/dist/src/components/ui/sonner.js.map +1 -0
- package/dist/src/components/ui/spinner.d.ts +25 -0
- package/dist/src/components/ui/spinner.js +32 -0
- package/dist/src/components/ui/spinner.js.map +1 -0
- package/dist/src/components/ui/switch.d.ts +8 -0
- package/dist/src/components/ui/switch.js +20 -0
- package/dist/src/components/ui/switch.js.map +1 -0
- package/dist/src/components/ui/table.d.ts +39 -0
- package/dist/src/components/ui/table.js +76 -0
- package/dist/src/components/ui/table.js.map +1 -0
- package/dist/src/components/ui/tabs.d.ts +24 -0
- package/dist/src/components/ui/tabs.js +42 -0
- package/dist/src/components/ui/tabs.js.map +1 -0
- package/dist/src/components/ui/textarea.d.ts +11 -0
- package/dist/src/components/ui/textarea.js +16 -0
- package/dist/src/components/ui/textarea.js.map +1 -0
- package/dist/src/components/ui/timeline.d.ts +18 -0
- package/dist/src/components/ui/timeline.js +92 -0
- package/dist/src/components/ui/timeline.js.map +1 -0
- package/dist/src/components/ui/toast.d.ts +20 -0
- package/dist/src/components/ui/toast.js +69 -0
- package/dist/src/components/ui/toast.js.map +1 -0
- package/dist/src/components/ui/tooltip.d.ts +24 -0
- package/dist/src/components/ui/tooltip.js +42 -0
- package/dist/src/components/ui/tooltip.js.map +1 -0
- package/dist/src/components/ui/typewriter-effect.d.ts +30 -0
- package/dist/src/components/ui/typewriter-effect.js +109 -0
- package/dist/src/components/ui/typewriter-effect.js.map +1 -0
- package/dist/src/hooks/use-mobile.d.ts +5 -0
- package/dist/src/hooks/use-mobile.js +23 -0
- package/dist/src/hooks/use-mobile.js.map +1 -0
- package/dist/src/hooks/useDialog.d.ts +8 -0
- package/dist/src/hooks/useDialog.js +29 -0
- package/dist/src/hooks/useDialog.js.map +1 -0
- package/dist/src/icons/GoogleIcon.d.ts +9 -0
- package/dist/src/icons/GoogleIcon.js +35 -0
- package/dist/src/icons/GoogleIcon.js.map +1 -0
- package/dist/src/icons/LinkedInIcon.d.ts +9 -0
- package/dist/src/icons/LinkedInIcon.js +30 -0
- package/dist/src/icons/LinkedInIcon.js.map +1 -0
- package/dist/src/icons/MicrosoftIcon.d.ts +9 -0
- package/dist/src/icons/MicrosoftIcon.js +34 -0
- package/dist/src/icons/MicrosoftIcon.js.map +1 -0
- package/dist/src/lib/chatwoot.d.ts +20 -0
- package/dist/src/lib/chatwoot.js +27 -0
- package/dist/src/lib/chatwoot.js.map +1 -0
- package/dist/src/lib/utils.d.ts +7 -0
- package/dist/src/lib/utils.js +12 -0
- package/dist/src/lib/utils.js.map +1 -0
- package/dist/src/modules/app/components/AppLoader.d.ts +8 -0
- package/dist/src/modules/app/components/AppLoader.js +18 -0
- package/dist/src/modules/app/components/AppLoader.js.map +1 -0
- package/dist/src/modules/app/components/AppShell.d.ts +16 -0
- package/dist/src/modules/app/components/AppShell.js +18 -0
- package/dist/src/modules/app/components/AppShell.js.map +1 -0
- package/dist/src/modules/app/components/AppSidebar.d.ts +17 -0
- package/dist/src/modules/app/components/AppSidebar.js +20 -0
- package/dist/src/modules/app/components/AppSidebar.js.map +1 -0
- package/dist/src/modules/app/components/AppSidebarContent.d.ts +25 -0
- package/dist/src/modules/app/components/AppSidebarContent.js +38 -0
- package/dist/src/modules/app/components/AppSidebarContent.js.map +1 -0
- package/dist/src/modules/app/components/AppSidebarHeader.d.ts +18 -0
- package/dist/src/modules/app/components/AppSidebarHeader.js +43 -0
- package/dist/src/modules/app/components/AppSidebarHeader.js.map +1 -0
- package/dist/src/modules/app/components/AppSidebarInvites.d.ts +11 -0
- package/dist/src/modules/app/components/AppSidebarInvites.js +45 -0
- package/dist/src/modules/app/components/AppSidebarInvites.js.map +1 -0
- package/dist/src/modules/app/components/AppSidebarUser.d.ts +21 -0
- package/dist/src/modules/app/components/AppSidebarUser.js +127 -0
- package/dist/src/modules/app/components/AppSidebarUser.js.map +1 -0
- package/dist/src/modules/auth/components/AdminUserManagement.d.ts +13 -0
- package/dist/src/modules/auth/components/AdminUserManagement.js +977 -0
- package/dist/src/modules/auth/components/AdminUserManagement.js.map +1 -0
- package/dist/src/modules/auth/components/AdminUserManagement.mjs +1 -1
- package/dist/src/modules/auth/components/AdminWaitlist.d.ts +13 -0
- package/dist/src/modules/auth/components/AdminWaitlist.js +289 -0
- package/dist/src/modules/auth/components/AdminWaitlist.js.map +1 -0
- package/dist/src/modules/auth/components/AuthLayout.d.ts +12 -0
- package/dist/src/modules/auth/components/AuthLayout.js +21 -0
- package/dist/src/modules/auth/components/AuthLayout.js.map +1 -0
- package/dist/src/modules/auth/components/AuthProviders.d.ts +17 -0
- package/dist/src/modules/auth/components/AuthProviders.js +86 -0
- package/dist/src/modules/auth/components/AuthProviders.js.map +1 -0
- package/dist/src/modules/auth/components/AuthRouter.d.ts +18 -0
- package/dist/src/modules/auth/components/AuthRouter.js +50 -0
- package/dist/src/modules/auth/components/AuthRouter.js.map +1 -0
- package/dist/src/modules/auth/components/ClaimAccountRoute.d.ts +12 -0
- package/dist/src/modules/auth/components/ClaimAccountRoute.js +208 -0
- package/dist/src/modules/auth/components/ClaimAccountRoute.js.map +1 -0
- package/dist/src/modules/auth/components/ErrorAuthRoute.d.ts +7 -0
- package/dist/src/modules/auth/components/ErrorAuthRoute.js +131 -0
- package/dist/src/modules/auth/components/ErrorAuthRoute.js.map +1 -0
- package/dist/src/modules/auth/components/ForgotPasswordForm.d.ts +7 -0
- package/dist/src/modules/auth/components/ForgotPasswordForm.js +55 -0
- package/dist/src/modules/auth/components/ForgotPasswordForm.js.map +1 -0
- package/dist/src/modules/auth/components/ForgotPasswordRoute.d.ts +7 -0
- package/dist/src/modules/auth/components/ForgotPasswordRoute.js +39 -0
- package/dist/src/modules/auth/components/ForgotPasswordRoute.js.map +1 -0
- package/dist/src/modules/auth/components/InviteFriends.d.ts +13 -0
- package/dist/src/modules/auth/components/InviteFriends.js +282 -0
- package/dist/src/modules/auth/components/InviteFriends.js.map +1 -0
- package/dist/src/modules/auth/components/LastUsedBadge.d.ts +17 -0
- package/dist/src/modules/auth/components/LastUsedBadge.js +21 -0
- package/dist/src/modules/auth/components/LastUsedBadge.js.map +1 -0
- package/dist/src/modules/auth/components/LoginForm.d.ts +11 -0
- package/dist/src/modules/auth/components/LoginForm.js +113 -0
- package/dist/src/modules/auth/components/LoginForm.js.map +1 -0
- package/dist/src/modules/auth/components/LoginRoute.d.ts +11 -0
- package/dist/src/modules/auth/components/LoginRoute.js +46 -0
- package/dist/src/modules/auth/components/LoginRoute.js.map +1 -0
- package/dist/src/modules/auth/components/LogoutRoute.d.ts +6 -0
- package/dist/src/modules/auth/components/LogoutRoute.js +22 -0
- package/dist/src/modules/auth/components/LogoutRoute.js.map +1 -0
- package/dist/src/modules/auth/components/OrganizationAcceptInvitationRoute.d.ts +22 -0
- package/dist/src/modules/auth/components/OrganizationAcceptInvitationRoute.js +114 -0
- package/dist/src/modules/auth/components/OrganizationAcceptInvitationRoute.js.map +1 -0
- package/dist/src/modules/auth/components/OrganizationMembersRoute.d.ts +61 -0
- package/dist/src/modules/auth/components/OrganizationMembersRoute.js +460 -0
- package/dist/src/modules/auth/components/OrganizationMembersRoute.js.map +1 -0
- package/dist/src/modules/auth/components/OrganizationMembersRoute.mjs +1 -1
- package/dist/src/modules/auth/components/OrganizationPreferences.d.ts +30 -0
- package/dist/src/modules/auth/components/OrganizationPreferences.js +140 -0
- package/dist/src/modules/auth/components/OrganizationPreferences.js.map +1 -0
- package/dist/src/modules/auth/components/OrganizationSettingsRoute.d.ts +29 -0
- package/dist/src/modules/auth/components/OrganizationSettingsRoute.js +195 -0
- package/dist/src/modules/auth/components/OrganizationSettingsRoute.js.map +1 -0
- package/dist/src/modules/auth/components/OrganizationSettingsRoute.mjs +1 -1
- package/dist/src/modules/auth/components/OrganizationSwitcher.d.ts +18 -0
- package/dist/src/modules/auth/components/OrganizationSwitcher.js +98 -0
- package/dist/src/modules/auth/components/OrganizationSwitcher.js.map +1 -0
- package/dist/src/modules/auth/components/OrganizationSwitcher.mjs +1 -1
- package/dist/src/modules/auth/components/PreferencesEditor.d.ts +49 -0
- package/dist/src/modules/auth/components/PreferencesEditor.js +87 -0
- package/dist/src/modules/auth/components/PreferencesEditor.js.map +1 -0
- package/dist/src/modules/auth/components/ProfileRoute.d.ts +7 -0
- package/dist/src/modules/auth/components/ProfileRoute.js +87 -0
- package/dist/src/modules/auth/components/ProfileRoute.js.map +1 -0
- package/dist/src/modules/auth/components/RangeNuqsDatePicker.d.ts +45 -0
- package/dist/src/modules/auth/components/RangeNuqsDatePicker.js +241 -0
- package/dist/src/modules/auth/components/RangeNuqsDatePicker.js.map +1 -0
- package/dist/src/modules/auth/components/ResetPasswordForm.d.ts +7 -0
- package/dist/src/modules/auth/components/ResetPasswordForm.js +103 -0
- package/dist/src/modules/auth/components/ResetPasswordForm.js.map +1 -0
- package/dist/src/modules/auth/components/ResetPasswordRoute.d.ts +7 -0
- package/dist/src/modules/auth/components/ResetPasswordRoute.js +39 -0
- package/dist/src/modules/auth/components/ResetPasswordRoute.js.map +1 -0
- package/dist/src/modules/auth/components/SignupFormRoute.d.ts +15 -0
- package/dist/src/modules/auth/components/SignupFormRoute.js +151 -0
- package/dist/src/modules/auth/components/SignupFormRoute.js.map +1 -0
- package/dist/src/modules/auth/components/SignupRoute.d.ts +15 -0
- package/dist/src/modules/auth/components/SignupRoute.js +64 -0
- package/dist/src/modules/auth/components/SignupRoute.js.map +1 -0
- package/dist/src/modules/auth/components/UserPreferences.d.ts +23 -0
- package/dist/src/modules/auth/components/UserPreferences.js +28 -0
- package/dist/src/modules/auth/components/UserPreferences.js.map +1 -0
- package/dist/src/modules/auth/components/WaitlistCard.d.ts +13 -0
- package/dist/src/modules/auth/components/WaitlistCard.js +69 -0
- package/dist/src/modules/auth/components/WaitlistCard.js.map +1 -0
- package/dist/src/modules/auth/components/WaitlistCodeValidation.d.ts +15 -0
- package/dist/src/modules/auth/components/WaitlistCodeValidation.js +47 -0
- package/dist/src/modules/auth/components/WaitlistCodeValidation.js.map +1 -0
- package/dist/src/modules/billing/components/BillingBetaPage.d.ts +17 -0
- package/dist/src/modules/billing/components/BillingBetaPage.js +160 -0
- package/dist/src/modules/billing/components/BillingBetaPage.js.map +1 -0
- package/dist/src/modules/billing/components/BillingInvoicePage.d.ts +15 -0
- package/dist/src/modules/billing/components/BillingInvoicePage.js +164 -0
- package/dist/src/modules/billing/components/BillingInvoicePage.js.map +1 -0
- package/dist/src/modules/billing/components/BillingInvoicePage.mjs +1 -1
- package/dist/src/modules/billing/components/BillingPlanSelect.d.ts +13 -0
- package/dist/src/modules/billing/components/BillingPlanSelect.js +13 -0
- package/dist/src/modules/billing/components/BillingPlanSelect.js.map +1 -0
- package/dist/src/modules/billing/components/BillingRouter.d.ts +17 -0
- package/dist/src/modules/billing/components/BillingRouter.js +23 -0
- package/dist/src/modules/billing/components/BillingRouter.js.map +1 -0
- package/dist/src/modules/billing/components/BillingSinglePlanSelect.d.ts +18 -0
- package/dist/src/modules/billing/components/BillingSinglePlanSelect.js +169 -0
- package/dist/src/modules/billing/components/BillingSinglePlanSelect.js.map +1 -0
- package/dist/src/modules/table/components/ColumnOrderAndVisibility.d.ts +20 -0
- package/dist/src/modules/table/components/ColumnOrderAndVisibility.js +87 -0
- package/dist/src/modules/table/components/ColumnOrderAndVisibility.js.map +1 -0
- package/dist/src/modules/table/components/NuqsTable.d.mts +3 -1
- package/dist/src/modules/table/components/NuqsTable.d.ts +38 -0
- package/dist/src/modules/table/components/NuqsTable.js +345 -0
- package/dist/src/modules/table/components/NuqsTable.js.map +1 -0
- package/dist/src/modules/table/components/NuqsTable.mjs +110 -75
- package/dist/src/modules/table/components/NuqsTable.mjs.map +1 -1
- package/dist/src/modules/table/components/TableFiltering.d.ts +35 -0
- package/dist/src/modules/table/components/TableFiltering.js +420 -0
- package/dist/src/modules/table/components/TableFiltering.js.map +1 -0
- package/dist/src/modules/table/components/TableGroupBy.d.ts +22 -0
- package/dist/src/modules/table/components/TableGroupBy.js +60 -0
- package/dist/src/modules/table/components/TableGroupBy.js.map +1 -0
- package/dist/src/modules/table/components/TablePagination.d.ts +19 -0
- package/dist/src/modules/table/components/TablePagination.js +68 -0
- package/dist/src/modules/table/components/TablePagination.js.map +1 -0
- package/dist/src/modules/table/components/table.types.d.ts +17 -0
- package/dist/src/modules/table/components/table.types.js +0 -0
- package/dist/src/modules/table/filterTransformers.d.ts +58 -0
- package/dist/src/modules/table/filterTransformers.js +219 -0
- package/dist/src/modules/table/filterTransformers.js.map +1 -0
- package/dist/src/types.d.ts +8 -0
- package/dist/src/types.js +0 -0
- package/package.json +125 -35
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
require("../../../../_virtual/_rolldown/runtime.js");
|
|
3
|
+
const require_src_modules_auth_components_PreferencesEditor = require("./PreferencesEditor.js");
|
|
4
|
+
let react = require("react");
|
|
5
|
+
let _heroui_react = require("@heroui/react");
|
|
6
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
+
let react_i18next = require("react-i18next");
|
|
8
|
+
let _tanstack_react_query = require("@tanstack/react-query");
|
|
9
|
+
let _m5kdev_frontend_modules_auth_hooks_useSession = require("@m5kdev/frontend/modules/auth/hooks/useSession");
|
|
10
|
+
//#region src/modules/auth/components/OrganizationPreferences.tsx
|
|
11
|
+
function OrganizationStateCard({ title, message }) {
|
|
12
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
13
|
+
className: "p-6",
|
|
14
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_heroui_react.Card, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_heroui_react.CardHeader, {
|
|
15
|
+
className: "text-lg font-semibold",
|
|
16
|
+
children: title
|
|
17
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_heroui_react.CardBody, { children: message })] })
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
function getFlagValues(controls, flags) {
|
|
21
|
+
const activeFlags = new Set(flags);
|
|
22
|
+
return Object.fromEntries(Object.keys(controls).map((key) => [key, activeFlags.has(key)]));
|
|
23
|
+
}
|
|
24
|
+
function getFlagsFromValues(values) {
|
|
25
|
+
return Object.entries(values).filter(([, value]) => value === true).map(([key]) => key);
|
|
26
|
+
}
|
|
27
|
+
function OrganizationPreferences({ useTRPC, schema, controls, target = "preferences", labels, onInvalidateScopedQueries }) {
|
|
28
|
+
const { data: session, isLoading: isSessionLoading } = (0, _m5kdev_frontend_modules_auth_hooks_useSession.useSession)();
|
|
29
|
+
const { t } = (0, react_i18next.useTranslation)("web-ui");
|
|
30
|
+
const trpc = useTRPC();
|
|
31
|
+
const queryClient = (0, _tanstack_react_query.useQueryClient)();
|
|
32
|
+
const activeOrganizationId = session?.session.activeOrganizationId ?? "";
|
|
33
|
+
const labelKeyPrefix = target === "flags" ? "web-ui:organization.flags" : "web-ui:organization.preferences";
|
|
34
|
+
const resolvedLabels = (0, react.useMemo)(() => ({
|
|
35
|
+
title: labels?.title ?? t(`${labelKeyPrefix}.title`),
|
|
36
|
+
submit: labels?.submit ?? t(`${labelKeyPrefix}.submit`),
|
|
37
|
+
updated: labels?.updated ?? t(`${labelKeyPrefix}.updated`),
|
|
38
|
+
updateError: labels?.updateError ?? t(`${labelKeyPrefix}.updateError`),
|
|
39
|
+
loading: labels?.loading ?? t(`${labelKeyPrefix}.loading`),
|
|
40
|
+
noActiveOrganization: labels?.noActiveOrganization ?? t(`${labelKeyPrefix}.noActive`),
|
|
41
|
+
loadError: labels?.loadError ?? t(`${labelKeyPrefix}.loadError`)
|
|
42
|
+
}), [
|
|
43
|
+
labelKeyPrefix,
|
|
44
|
+
labels,
|
|
45
|
+
t
|
|
46
|
+
]);
|
|
47
|
+
const preferencesQuery = (0, _tanstack_react_query.useQuery)({
|
|
48
|
+
...trpc.auth.getOrganizationPreferences.queryOptions(),
|
|
49
|
+
enabled: target === "preferences" && Boolean(activeOrganizationId)
|
|
50
|
+
});
|
|
51
|
+
const flagsQuery = (0, _tanstack_react_query.useQuery)({
|
|
52
|
+
...trpc.auth.getOrganizationFlags.queryOptions(),
|
|
53
|
+
enabled: target === "flags" && Boolean(activeOrganizationId)
|
|
54
|
+
});
|
|
55
|
+
const setPreferencesMutation = (0, _tanstack_react_query.useMutation)(trpc.auth.setOrganizationPreferences.mutationOptions());
|
|
56
|
+
const setFlagsMutation = (0, _tanstack_react_query.useMutation)(trpc.auth.setOrganizationFlags.mutationOptions());
|
|
57
|
+
const currentValues = (0, react.useMemo)(() => {
|
|
58
|
+
if (target === "flags") return getFlagValues(controls, flagsQuery.data ?? []);
|
|
59
|
+
return preferencesQuery.data ?? {};
|
|
60
|
+
}, [
|
|
61
|
+
controls,
|
|
62
|
+
flagsQuery.data,
|
|
63
|
+
preferencesQuery.data,
|
|
64
|
+
target
|
|
65
|
+
]);
|
|
66
|
+
const updateValues = (0, react.useCallback)((partialValues, options) => {
|
|
67
|
+
if (target === "flags") {
|
|
68
|
+
const nextFlags = getFlagsFromValues({
|
|
69
|
+
...currentValues,
|
|
70
|
+
...partialValues
|
|
71
|
+
});
|
|
72
|
+
if (!options.noOptimisticUpdate) queryClient.setQueryData(trpc.auth.getOrganizationFlags.queryKey(), nextFlags);
|
|
73
|
+
setFlagsMutation.mutate(nextFlags, {
|
|
74
|
+
onSuccess: async (result) => {
|
|
75
|
+
queryClient.setQueryData(trpc.auth.getOrganizationFlags.queryKey(), result);
|
|
76
|
+
if (activeOrganizationId) await queryClient.invalidateQueries({ queryKey: ["auth-organization-details", activeOrganizationId] });
|
|
77
|
+
await onInvalidateScopedQueries?.();
|
|
78
|
+
options.onSuccess?.();
|
|
79
|
+
},
|
|
80
|
+
onError: async (error) => {
|
|
81
|
+
if (!options.noOptimisticUpdate) await queryClient.invalidateQueries({ queryKey: trpc.auth.getOrganizationFlags.queryKey() });
|
|
82
|
+
options.onError?.(error);
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
const nextPreferences = {
|
|
88
|
+
...preferencesQuery.data ?? {},
|
|
89
|
+
...partialValues
|
|
90
|
+
};
|
|
91
|
+
if (!options.noOptimisticUpdate) queryClient.setQueryData(trpc.auth.getOrganizationPreferences.queryKey(), nextPreferences);
|
|
92
|
+
setPreferencesMutation.mutate(nextPreferences, {
|
|
93
|
+
onSuccess: async (result) => {
|
|
94
|
+
queryClient.setQueryData(trpc.auth.getOrganizationPreferences.queryKey(), result);
|
|
95
|
+
if (activeOrganizationId) await queryClient.invalidateQueries({ queryKey: ["auth-organization-details", activeOrganizationId] });
|
|
96
|
+
await onInvalidateScopedQueries?.();
|
|
97
|
+
options.onSuccess?.();
|
|
98
|
+
},
|
|
99
|
+
onError: async (error) => {
|
|
100
|
+
if (!options.noOptimisticUpdate) await queryClient.invalidateQueries({ queryKey: trpc.auth.getOrganizationPreferences.queryKey() });
|
|
101
|
+
options.onError?.(error);
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
}, [
|
|
105
|
+
activeOrganizationId,
|
|
106
|
+
currentValues,
|
|
107
|
+
onInvalidateScopedQueries,
|
|
108
|
+
preferencesQuery.data,
|
|
109
|
+
queryClient,
|
|
110
|
+
setFlagsMutation,
|
|
111
|
+
setPreferencesMutation,
|
|
112
|
+
target,
|
|
113
|
+
trpc.auth.getOrganizationFlags,
|
|
114
|
+
trpc.auth.getOrganizationPreferences
|
|
115
|
+
]);
|
|
116
|
+
const isLoading = isSessionLoading || (target === "flags" ? flagsQuery.isLoading : preferencesQuery.isLoading);
|
|
117
|
+
const isPending = target === "flags" ? setFlagsMutation.isPending : setPreferencesMutation.isPending;
|
|
118
|
+
const queryError = target === "flags" ? flagsQuery.error : preferencesQuery.error;
|
|
119
|
+
if (!isSessionLoading && !activeOrganizationId) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(OrganizationStateCard, {
|
|
120
|
+
title: resolvedLabels.title,
|
|
121
|
+
message: resolvedLabels.noActiveOrganization
|
|
122
|
+
});
|
|
123
|
+
if (queryError) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(OrganizationStateCard, {
|
|
124
|
+
title: resolvedLabels.title,
|
|
125
|
+
message: queryError instanceof Error ? queryError.message : resolvedLabels.loadError
|
|
126
|
+
});
|
|
127
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_src_modules_auth_components_PreferencesEditor.PreferencesEditor, {
|
|
128
|
+
schema,
|
|
129
|
+
controls,
|
|
130
|
+
values: currentValues,
|
|
131
|
+
isLoading,
|
|
132
|
+
isPending,
|
|
133
|
+
labels: resolvedLabels,
|
|
134
|
+
updateValues
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
//#endregion
|
|
138
|
+
exports.OrganizationPreferences = OrganizationPreferences;
|
|
139
|
+
|
|
140
|
+
//# sourceMappingURL=OrganizationPreferences.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrganizationPreferences.js","names":["Card","CardHeader","CardBody","PreferencesEditor"],"sources":["../../../../../src/modules/auth/components/OrganizationPreferences.tsx"],"sourcesContent":["import { Card, CardBody, CardHeader } from \"@heroui/react\";\r\nimport { useSession } from \"@m5kdev/frontend/modules/auth/hooks/useSession\";\r\nimport { useMutation, useQuery, useQueryClient } from \"@tanstack/react-query\";\r\nimport { type ReactElement, useCallback, useMemo } from \"react\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport type { z } from \"zod\";\r\nimport type { UseBackendTRPC } from \"../../../types\";\r\nimport {\r\n type ControlsFor,\r\n type PreferenceEditorLabels,\r\n PreferencesEditor,\r\n type UpdatePreferencesOptions,\r\n} from \"./PreferencesEditor\";\r\n\r\ntype OrganizationPreferenceLabels = PreferenceEditorLabels & {\r\n noActiveOrganization: string;\r\n loadError: string;\r\n};\r\n\r\nexport type OrganizationPreferencesTarget = \"preferences\" | \"flags\";\r\n\r\nexport type OrganizationPreferencesProps<S extends z.ZodObject<z.ZodRawShape>> = {\r\n useTRPC: UseBackendTRPC;\r\n schema: S;\r\n controls: ControlsFor<z.infer<S>>;\r\n target?: OrganizationPreferencesTarget;\r\n labels?: Partial<OrganizationPreferenceLabels>;\r\n onInvalidateScopedQueries?: () => void | Promise<void>;\r\n};\r\n\r\nfunction OrganizationStateCard({ title, message }: { title: string; message: string }) {\r\n return (\r\n <div className=\"p-6\">\r\n <Card>\r\n <CardHeader className=\"text-lg font-semibold\">{title}</CardHeader>\r\n <CardBody>{message}</CardBody>\r\n </Card>\r\n </div>\r\n );\r\n}\r\n\r\nfunction getFlagValues<S extends z.ZodObject<z.ZodRawShape>>(\r\n controls: ControlsFor<z.infer<S>>,\r\n flags: string[]\r\n): Partial<z.infer<S>> {\r\n const activeFlags = new Set(flags);\r\n\r\n return Object.fromEntries(\r\n Object.keys(controls).map((key) => [key, activeFlags.has(key)])\r\n ) as Partial<z.infer<S>>;\r\n}\r\n\r\nfunction getFlagsFromValues(values: Record<string, unknown>): string[] {\r\n return Object.entries(values)\r\n .filter(([, value]) => value === true)\r\n .map(([key]) => key);\r\n}\r\n\r\nexport function OrganizationPreferences<S extends z.ZodObject<z.ZodRawShape>>({\r\n useTRPC,\r\n schema,\r\n controls,\r\n target = \"preferences\",\r\n labels,\r\n onInvalidateScopedQueries,\r\n}: OrganizationPreferencesProps<S>): ReactElement {\r\n const { data: session, isLoading: isSessionLoading } = useSession();\r\n const { t } = useTranslation(\"web-ui\");\r\n const trpc = useTRPC();\r\n const queryClient = useQueryClient();\r\n\r\n const activeOrganizationId = session?.session.activeOrganizationId ?? \"\";\r\n const labelKeyPrefix =\r\n target === \"flags\" ? \"web-ui:organization.flags\" : \"web-ui:organization.preferences\";\r\n\r\n const resolvedLabels = useMemo<OrganizationPreferenceLabels>(\r\n () => ({\r\n title: labels?.title ?? t(`${labelKeyPrefix}.title`),\r\n submit: labels?.submit ?? t(`${labelKeyPrefix}.submit`),\r\n updated: labels?.updated ?? t(`${labelKeyPrefix}.updated`),\r\n updateError: labels?.updateError ?? t(`${labelKeyPrefix}.updateError`),\r\n loading: labels?.loading ?? t(`${labelKeyPrefix}.loading`),\r\n noActiveOrganization: labels?.noActiveOrganization ?? t(`${labelKeyPrefix}.noActive`),\r\n loadError: labels?.loadError ?? t(`${labelKeyPrefix}.loadError`),\r\n }),\r\n [labelKeyPrefix, labels, t]\r\n );\r\n\r\n const preferencesQuery = useQuery({\r\n ...trpc.auth.getOrganizationPreferences.queryOptions(),\r\n enabled: target === \"preferences\" && Boolean(activeOrganizationId),\r\n });\r\n\r\n const flagsQuery = useQuery({\r\n ...trpc.auth.getOrganizationFlags.queryOptions(),\r\n enabled: target === \"flags\" && Boolean(activeOrganizationId),\r\n });\r\n\r\n const setPreferencesMutation = useMutation(\r\n trpc.auth.setOrganizationPreferences.mutationOptions()\r\n );\r\n const setFlagsMutation = useMutation(trpc.auth.setOrganizationFlags.mutationOptions());\r\n\r\n const currentValues = useMemo<Partial<z.infer<S>>>(() => {\r\n if (target === \"flags\") {\r\n return getFlagValues<S>(controls, flagsQuery.data ?? []);\r\n }\r\n\r\n return (preferencesQuery.data ?? {}) as Partial<z.infer<S>>;\r\n }, [controls, flagsQuery.data, preferencesQuery.data, target]);\r\n\r\n const updateValues = useCallback(\r\n (partialValues: Partial<z.infer<S>>, options: UpdatePreferencesOptions) => {\r\n if (target === \"flags\") {\r\n const nextValues = {\r\n ...currentValues,\r\n ...partialValues,\r\n } as Record<string, unknown>;\r\n const nextFlags = getFlagsFromValues(nextValues);\r\n\r\n if (!options.noOptimisticUpdate) {\r\n queryClient.setQueryData(trpc.auth.getOrganizationFlags.queryKey(), nextFlags);\r\n }\r\n\r\n setFlagsMutation.mutate(nextFlags, {\r\n onSuccess: async (result) => {\r\n queryClient.setQueryData(trpc.auth.getOrganizationFlags.queryKey(), result);\r\n if (activeOrganizationId) {\r\n await queryClient.invalidateQueries({\r\n queryKey: [\"auth-organization-details\", activeOrganizationId],\r\n });\r\n }\r\n await onInvalidateScopedQueries?.();\r\n options.onSuccess?.();\r\n },\r\n onError: async (error) => {\r\n if (!options.noOptimisticUpdate) {\r\n await queryClient.invalidateQueries({\r\n queryKey: trpc.auth.getOrganizationFlags.queryKey(),\r\n });\r\n }\r\n options.onError?.(error);\r\n },\r\n });\r\n return;\r\n }\r\n\r\n const nextPreferences = {\r\n ...(preferencesQuery.data ?? {}),\r\n ...partialValues,\r\n };\r\n\r\n if (!options.noOptimisticUpdate) {\r\n queryClient.setQueryData(trpc.auth.getOrganizationPreferences.queryKey(), nextPreferences);\r\n }\r\n\r\n setPreferencesMutation.mutate(nextPreferences, {\r\n onSuccess: async (result) => {\r\n queryClient.setQueryData(trpc.auth.getOrganizationPreferences.queryKey(), result);\r\n if (activeOrganizationId) {\r\n await queryClient.invalidateQueries({\r\n queryKey: [\"auth-organization-details\", activeOrganizationId],\r\n });\r\n }\r\n await onInvalidateScopedQueries?.();\r\n options.onSuccess?.();\r\n },\r\n onError: async (error) => {\r\n if (!options.noOptimisticUpdate) {\r\n await queryClient.invalidateQueries({\r\n queryKey: trpc.auth.getOrganizationPreferences.queryKey(),\r\n });\r\n }\r\n options.onError?.(error);\r\n },\r\n });\r\n },\r\n [\r\n activeOrganizationId,\r\n currentValues,\r\n onInvalidateScopedQueries,\r\n preferencesQuery.data,\r\n queryClient,\r\n setFlagsMutation,\r\n setPreferencesMutation,\r\n target,\r\n trpc.auth.getOrganizationFlags,\r\n trpc.auth.getOrganizationPreferences,\r\n ]\r\n );\r\n\r\n const isLoading =\r\n isSessionLoading || (target === \"flags\" ? flagsQuery.isLoading : preferencesQuery.isLoading);\r\n const isPending =\r\n target === \"flags\" ? setFlagsMutation.isPending : setPreferencesMutation.isPending;\r\n const queryError = target === \"flags\" ? flagsQuery.error : preferencesQuery.error;\r\n\r\n if (!isSessionLoading && !activeOrganizationId) {\r\n return (\r\n <OrganizationStateCard\r\n title={resolvedLabels.title}\r\n message={resolvedLabels.noActiveOrganization}\r\n />\r\n );\r\n }\r\n\r\n if (queryError) {\r\n return (\r\n <OrganizationStateCard\r\n title={resolvedLabels.title}\r\n message={queryError instanceof Error ? queryError.message : resolvedLabels.loadError}\r\n />\r\n );\r\n }\r\n\r\n return (\r\n <PreferencesEditor\r\n schema={schema}\r\n controls={controls}\r\n values={currentValues}\r\n isLoading={isLoading}\r\n isPending={isPending}\r\n labels={resolvedLabels}\r\n updateValues={updateValues}\r\n />\r\n );\r\n}\r\n"],"mappings":"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"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/modules/auth/components/OrganizationSettingsRoute.d.ts
|
|
4
|
+
type OrganizationSettingsRouteLabels = {
|
|
5
|
+
settingsTitle: string;
|
|
6
|
+
settingsDescription: string;
|
|
7
|
+
settingsNoActive: string;
|
|
8
|
+
settingsManageOnly: string;
|
|
9
|
+
formName: string;
|
|
10
|
+
formSlug: string;
|
|
11
|
+
formMetadata: string;
|
|
12
|
+
formMetadataInvalidJson: string;
|
|
13
|
+
formMetadataInvalid: string;
|
|
14
|
+
saveButton: string;
|
|
15
|
+
updateSuccess: string;
|
|
16
|
+
updateError: string;
|
|
17
|
+
loadError: string;
|
|
18
|
+
};
|
|
19
|
+
type OrganizationSettingsRouteProps = {
|
|
20
|
+
managerRoles?: string[];
|
|
21
|
+
onInvalidateScopedQueries?: () => void | Promise<void>;
|
|
22
|
+
};
|
|
23
|
+
declare function OrganizationSettingsRoute({
|
|
24
|
+
managerRoles,
|
|
25
|
+
onInvalidateScopedQueries
|
|
26
|
+
}: OrganizationSettingsRouteProps): _$react_jsx_runtime0.JSX.Element;
|
|
27
|
+
//#endregion
|
|
28
|
+
export { OrganizationSettingsRoute, OrganizationSettingsRouteLabels, OrganizationSettingsRouteProps };
|
|
29
|
+
//# sourceMappingURL=OrganizationSettingsRoute.d.ts.map
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
require("../../../../_virtual/_rolldown/runtime.js");
|
|
3
|
+
let react = require("react");
|
|
4
|
+
let _heroui_react = require("@heroui/react");
|
|
5
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
6
|
+
let react_i18next = require("react-i18next");
|
|
7
|
+
let sonner = require("sonner");
|
|
8
|
+
let _m5kdev_frontend_modules_auth_auth_lib = require("@m5kdev/frontend/modules/auth/auth.lib");
|
|
9
|
+
let _tanstack_react_query = require("@tanstack/react-query");
|
|
10
|
+
let _m5kdev_frontend_modules_auth_hooks_useSession = require("@m5kdev/frontend/modules/auth/hooks/useSession");
|
|
11
|
+
//#region src/modules/auth/components/OrganizationSettingsRoute.tsx
|
|
12
|
+
function OrganizationStateCard({ title, message }) {
|
|
13
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
14
|
+
className: "p-6",
|
|
15
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_heroui_react.Card, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_heroui_react.CardHeader, {
|
|
16
|
+
className: "text-lg font-semibold",
|
|
17
|
+
children: title
|
|
18
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_heroui_react.CardBody, { children: message })] })
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
function useOrganizationAccess({ managerRoles, onInvalidateScopedQueries }) {
|
|
22
|
+
const { data: session, registerSession } = (0, _m5kdev_frontend_modules_auth_hooks_useSession.useSession)();
|
|
23
|
+
const queryClient = (0, _tanstack_react_query.useQueryClient)();
|
|
24
|
+
const activeOrganizationId = session?.session.activeOrganizationId ?? "";
|
|
25
|
+
const activeOrganizationRole = (session?.session)?.activeOrganizationRole ?? "";
|
|
26
|
+
return {
|
|
27
|
+
activeOrganizationId,
|
|
28
|
+
activeOrganizationRole,
|
|
29
|
+
canManageOrganization: (0, react.useMemo)(() => new Set(managerRoles ?? ["admin", "owner"]), [managerRoles]).has(activeOrganizationRole),
|
|
30
|
+
refreshOrganizationQueries: (0, react.useCallback)(async () => {
|
|
31
|
+
await Promise.allSettled([
|
|
32
|
+
queryClient.invalidateQueries({ queryKey: ["auth-organization-list"] }),
|
|
33
|
+
queryClient.invalidateQueries({ queryKey: ["auth-organization-details", activeOrganizationId] }),
|
|
34
|
+
queryClient.invalidateQueries({ queryKey: ["auth-organization-members", activeOrganizationId] }),
|
|
35
|
+
queryClient.invalidateQueries({ queryKey: ["auth-organization-invitations", activeOrganizationId] })
|
|
36
|
+
]);
|
|
37
|
+
registerSession(() => {
|
|
38
|
+
onInvalidateScopedQueries?.();
|
|
39
|
+
});
|
|
40
|
+
}, [
|
|
41
|
+
activeOrganizationId,
|
|
42
|
+
onInvalidateScopedQueries,
|
|
43
|
+
queryClient,
|
|
44
|
+
registerSession
|
|
45
|
+
])
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function useOrganizationConfig() {
|
|
49
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
50
|
+
return {
|
|
51
|
+
resolvedLabels: (0, react.useMemo)(() => ({
|
|
52
|
+
settingsTitle: t("web-ui:organization.settings.title"),
|
|
53
|
+
settingsDescription: t("web-ui:organization.settings.description"),
|
|
54
|
+
settingsNoActive: t("web-ui:organization.settings.noActive"),
|
|
55
|
+
settingsManageOnly: t("web-ui:organization.settings.manageOnly"),
|
|
56
|
+
formName: t("web-ui:organization.settings.form.name"),
|
|
57
|
+
formSlug: t("web-ui:organization.settings.form.slug"),
|
|
58
|
+
formMetadata: t("web-ui:organization.settings.form.metadata"),
|
|
59
|
+
formMetadataInvalidJson: t("web-ui:organization.settings.form.metadataInvalidJson"),
|
|
60
|
+
formMetadataInvalid: t("web-ui:organization.settings.form.metadataInvalid"),
|
|
61
|
+
saveButton: t("web-ui:organization.settings.button.save"),
|
|
62
|
+
updateSuccess: t("web-ui:organization.settings.updateSuccess"),
|
|
63
|
+
updateError: t("web-ui:organization.settings.updateError"),
|
|
64
|
+
loadError: t("web-ui:organization.settings.loadError")
|
|
65
|
+
}), [t]),
|
|
66
|
+
resolvedRoleLabels: (0, react.useMemo)(() => ({
|
|
67
|
+
member: t("web-ui:organization.roles.member"),
|
|
68
|
+
admin: t("web-ui:organization.roles.admin"),
|
|
69
|
+
owner: t("web-ui:organization.roles.owner")
|
|
70
|
+
}), [t])
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
function OrganizationSettingsRoute({ managerRoles, onInvalidateScopedQueries }) {
|
|
74
|
+
const { resolvedLabels, resolvedRoleLabels } = useOrganizationConfig();
|
|
75
|
+
const { activeOrganizationId, activeOrganizationRole, canManageOrganization, refreshOrganizationQueries } = useOrganizationAccess({
|
|
76
|
+
managerRoles,
|
|
77
|
+
onInvalidateScopedQueries
|
|
78
|
+
});
|
|
79
|
+
const [organizationName, setOrganizationName] = (0, react.useState)("");
|
|
80
|
+
const [organizationSlug, setOrganizationSlug] = (0, react.useState)("");
|
|
81
|
+
const [organizationMetadata, setOrganizationMetadata] = (0, react.useState)("{}");
|
|
82
|
+
const [isSavingOrganization, setIsSavingOrganization] = (0, react.useState)(false);
|
|
83
|
+
const organizationQuery = (0, _tanstack_react_query.useQuery)({
|
|
84
|
+
queryKey: ["auth-organization-details", activeOrganizationId],
|
|
85
|
+
enabled: Boolean(activeOrganizationId && canManageOrganization),
|
|
86
|
+
queryFn: async () => {
|
|
87
|
+
const { data, error } = await _m5kdev_frontend_modules_auth_auth_lib.authClient.organization.getFullOrganization({ query: {
|
|
88
|
+
organizationId: activeOrganizationId,
|
|
89
|
+
membersLimit: 200
|
|
90
|
+
} });
|
|
91
|
+
if (error) throw new Error(error.message ?? resolvedLabels.loadError);
|
|
92
|
+
return data;
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
(0, react.useEffect)(() => {
|
|
96
|
+
const organization = organizationQuery.data;
|
|
97
|
+
if (!organization) return;
|
|
98
|
+
setOrganizationName(organization.name ?? "");
|
|
99
|
+
setOrganizationSlug(organization.slug ?? "");
|
|
100
|
+
setOrganizationMetadata(JSON.stringify(organization.metadata ?? {}, null, 2));
|
|
101
|
+
}, [organizationQuery.data]);
|
|
102
|
+
const onUpdateOrganization = async () => {
|
|
103
|
+
if (!canManageOrganization || !activeOrganizationId) return;
|
|
104
|
+
try {
|
|
105
|
+
setIsSavingOrganization(true);
|
|
106
|
+
let parsedMetadata;
|
|
107
|
+
try {
|
|
108
|
+
parsedMetadata = organizationMetadata.trim() ? JSON.parse(organizationMetadata) : {};
|
|
109
|
+
} catch (parseError) {
|
|
110
|
+
const message = parseError instanceof SyntaxError ? resolvedLabels.formMetadataInvalidJson : parseError instanceof Error ? parseError.message : resolvedLabels.formMetadataInvalid;
|
|
111
|
+
throw new Error(message);
|
|
112
|
+
}
|
|
113
|
+
const { error } = await _m5kdev_frontend_modules_auth_auth_lib.authClient.organization.update({
|
|
114
|
+
organizationId: activeOrganizationId,
|
|
115
|
+
data: {
|
|
116
|
+
name: organizationName.trim(),
|
|
117
|
+
slug: organizationSlug.trim(),
|
|
118
|
+
metadata: parsedMetadata
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
if (error) throw new Error(error.message ?? resolvedLabels.updateError);
|
|
122
|
+
await refreshOrganizationQueries();
|
|
123
|
+
sonner.toast.success(resolvedLabels.updateSuccess);
|
|
124
|
+
} catch (error) {
|
|
125
|
+
sonner.toast.error(error instanceof Error ? error.message : resolvedLabels.updateError);
|
|
126
|
+
} finally {
|
|
127
|
+
setIsSavingOrganization(false);
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
if (!activeOrganizationId) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(OrganizationStateCard, {
|
|
131
|
+
title: resolvedLabels.settingsTitle,
|
|
132
|
+
message: resolvedLabels.settingsNoActive
|
|
133
|
+
});
|
|
134
|
+
if (!canManageOrganization) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(OrganizationStateCard, {
|
|
135
|
+
title: resolvedLabels.settingsTitle,
|
|
136
|
+
message: resolvedLabels.settingsManageOnly
|
|
137
|
+
});
|
|
138
|
+
if (organizationQuery.isLoading) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
139
|
+
className: "p-6 flex justify-center",
|
|
140
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_heroui_react.Spinner, {})
|
|
141
|
+
});
|
|
142
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
143
|
+
className: "p-6",
|
|
144
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_heroui_react.Card, { children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_heroui_react.CardHeader, {
|
|
145
|
+
className: "flex items-center justify-between",
|
|
146
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
147
|
+
className: "flex flex-col",
|
|
148
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("h2", {
|
|
149
|
+
className: "text-xl font-semibold",
|
|
150
|
+
children: resolvedLabels.settingsTitle
|
|
151
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
152
|
+
className: "text-sm text-default-500",
|
|
153
|
+
children: resolvedLabels.settingsDescription
|
|
154
|
+
})]
|
|
155
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_heroui_react.Chip, {
|
|
156
|
+
variant: "flat",
|
|
157
|
+
color: "primary",
|
|
158
|
+
children: resolvedRoleLabels[activeOrganizationRole] ?? activeOrganizationRole ?? resolvedRoleLabels.member
|
|
159
|
+
})]
|
|
160
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(_heroui_react.CardBody, {
|
|
161
|
+
className: "grid gap-3",
|
|
162
|
+
children: [
|
|
163
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_heroui_react.Input, {
|
|
164
|
+
label: resolvedLabels.formName,
|
|
165
|
+
value: organizationName,
|
|
166
|
+
onValueChange: setOrganizationName
|
|
167
|
+
}),
|
|
168
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_heroui_react.Input, {
|
|
169
|
+
label: resolvedLabels.formSlug,
|
|
170
|
+
value: organizationSlug,
|
|
171
|
+
onValueChange: setOrganizationSlug
|
|
172
|
+
}),
|
|
173
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(_heroui_react.Textarea, {
|
|
174
|
+
label: resolvedLabels.formMetadata,
|
|
175
|
+
value: organizationMetadata,
|
|
176
|
+
onValueChange: setOrganizationMetadata,
|
|
177
|
+
minRows: 4
|
|
178
|
+
}),
|
|
179
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
180
|
+
className: "flex justify-end",
|
|
181
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_heroui_react.Button, {
|
|
182
|
+
color: "primary",
|
|
183
|
+
isLoading: isSavingOrganization,
|
|
184
|
+
onPress: onUpdateOrganization,
|
|
185
|
+
children: resolvedLabels.saveButton
|
|
186
|
+
})
|
|
187
|
+
})
|
|
188
|
+
]
|
|
189
|
+
})] })
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
//#endregion
|
|
193
|
+
exports.OrganizationSettingsRoute = OrganizationSettingsRoute;
|
|
194
|
+
|
|
195
|
+
//# sourceMappingURL=OrganizationSettingsRoute.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrganizationSettingsRoute.js","names":["Card","CardHeader","CardBody","authClient","Spinner","Chip","Input","Textarea","Button"],"sources":["../../../../../src/modules/auth/components/OrganizationSettingsRoute.tsx"],"sourcesContent":["import { Button, Card, CardBody, CardHeader, Chip, Input, Spinner, Textarea } from \"@heroui/react\";\r\nimport { authClient } from \"@m5kdev/frontend/modules/auth/auth.lib\";\r\nimport { useSession } from \"@m5kdev/frontend/modules/auth/hooks/useSession\";\r\nimport { useQuery, useQueryClient } from \"@tanstack/react-query\";\r\nimport { useCallback, useEffect, useMemo, useState } from \"react\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { toast } from \"sonner\";\r\n\r\ntype OrganizationDetails = {\r\n id: string;\r\n name: string;\r\n slug: string;\r\n logo?: string | null;\r\n metadata?: Record<string, unknown> | null;\r\n};\r\n\r\nexport type OrganizationSettingsRouteLabels = {\r\n settingsTitle: string;\r\n settingsDescription: string;\r\n settingsNoActive: string;\r\n settingsManageOnly: string;\r\n formName: string;\r\n formSlug: string;\r\n formMetadata: string;\r\n formMetadataInvalidJson: string;\r\n formMetadataInvalid: string;\r\n saveButton: string;\r\n updateSuccess: string;\r\n updateError: string;\r\n loadError: string;\r\n};\r\n\r\nexport type OrganizationSettingsRouteProps = {\r\n managerRoles?: string[];\r\n onInvalidateScopedQueries?: () => void | Promise<void>;\r\n};\r\n\r\nfunction OrganizationStateCard({ title, message }: { title: string; message: string }) {\r\n return (\r\n <div className=\"p-6\">\r\n <Card>\r\n <CardHeader className=\"text-lg font-semibold\">{title}</CardHeader>\r\n <CardBody>{message}</CardBody>\r\n </Card>\r\n </div>\r\n );\r\n}\r\n\r\nfunction useOrganizationAccess({\r\n managerRoles,\r\n onInvalidateScopedQueries,\r\n}: Pick<OrganizationSettingsRouteProps, \"managerRoles\" | \"onInvalidateScopedQueries\">) {\r\n const { data: session, registerSession } = useSession();\r\n const queryClient = useQueryClient();\r\n\r\n const activeOrganizationId = session?.session.activeOrganizationId ?? \"\";\r\n const activeOrganizationRole =\r\n (session?.session as { activeOrganizationRole?: string } | undefined)?.activeOrganizationRole ??\r\n \"\";\r\n const managerRoleSet = useMemo(() => new Set(managerRoles ?? [\"admin\", \"owner\"]), [managerRoles]);\r\n const canManageOrganization = managerRoleSet.has(activeOrganizationRole);\r\n\r\n const refreshOrganizationQueries = useCallback(async () => {\r\n await Promise.allSettled([\r\n queryClient.invalidateQueries({ queryKey: [\"auth-organization-list\"] }),\r\n queryClient.invalidateQueries({\r\n queryKey: [\"auth-organization-details\", activeOrganizationId],\r\n }),\r\n queryClient.invalidateQueries({\r\n queryKey: [\"auth-organization-members\", activeOrganizationId],\r\n }),\r\n queryClient.invalidateQueries({\r\n queryKey: [\"auth-organization-invitations\", activeOrganizationId],\r\n }),\r\n ]);\r\n\r\n registerSession(() => {\r\n void onInvalidateScopedQueries?.();\r\n });\r\n }, [activeOrganizationId, onInvalidateScopedQueries, queryClient, registerSession]);\r\n\r\n return {\r\n activeOrganizationId,\r\n activeOrganizationRole,\r\n canManageOrganization,\r\n refreshOrganizationQueries,\r\n };\r\n}\r\n\r\nfunction useOrganizationConfig() {\r\n const { t } = useTranslation();\r\n\r\n const translatedLabels = useMemo<OrganizationSettingsRouteLabels>(\r\n () => ({\r\n settingsTitle: t(\"web-ui:organization.settings.title\"),\r\n settingsDescription: t(\"web-ui:organization.settings.description\"),\r\n settingsNoActive: t(\"web-ui:organization.settings.noActive\"),\r\n settingsManageOnly: t(\"web-ui:organization.settings.manageOnly\"),\r\n formName: t(\"web-ui:organization.settings.form.name\"),\r\n formSlug: t(\"web-ui:organization.settings.form.slug\"),\r\n formMetadata: t(\"web-ui:organization.settings.form.metadata\"),\r\n formMetadataInvalidJson: t(\"web-ui:organization.settings.form.metadataInvalidJson\"),\r\n formMetadataInvalid: t(\"web-ui:organization.settings.form.metadataInvalid\"),\r\n saveButton: t(\"web-ui:organization.settings.button.save\"),\r\n updateSuccess: t(\"web-ui:organization.settings.updateSuccess\"),\r\n updateError: t(\"web-ui:organization.settings.updateError\"),\r\n loadError: t(\"web-ui:organization.settings.loadError\"),\r\n }),\r\n [t]\r\n );\r\n\r\n const translatedRoleLabels = useMemo<Record<string, string>>(\r\n () => ({\r\n member: t(\"web-ui:organization.roles.member\"),\r\n admin: t(\"web-ui:organization.roles.admin\"),\r\n owner: t(\"web-ui:organization.roles.owner\"),\r\n }),\r\n [t]\r\n );\r\n\r\n return { resolvedLabels: translatedLabels, resolvedRoleLabels: translatedRoleLabels };\r\n}\r\n\r\nexport function OrganizationSettingsRoute({\r\n managerRoles,\r\n onInvalidateScopedQueries,\r\n}: OrganizationSettingsRouteProps) {\r\n const { resolvedLabels, resolvedRoleLabels } = useOrganizationConfig();\r\n\r\n const {\r\n activeOrganizationId,\r\n activeOrganizationRole,\r\n canManageOrganization,\r\n refreshOrganizationQueries,\r\n } = useOrganizationAccess({ managerRoles, onInvalidateScopedQueries });\r\n\r\n const [organizationName, setOrganizationName] = useState(\"\");\r\n const [organizationSlug, setOrganizationSlug] = useState(\"\");\r\n const [organizationMetadata, setOrganizationMetadata] = useState(\"{}\");\r\n const [isSavingOrganization, setIsSavingOrganization] = useState(false);\r\n\r\n const organizationQuery = useQuery({\r\n queryKey: [\"auth-organization-details\", activeOrganizationId],\r\n enabled: Boolean(activeOrganizationId && canManageOrganization),\r\n queryFn: async () => {\r\n const { data, error } = await authClient.organization.getFullOrganization({\r\n query: {\r\n organizationId: activeOrganizationId,\r\n membersLimit: 200,\r\n },\r\n });\r\n if (error) {\r\n throw new Error(error.message ?? resolvedLabels.loadError);\r\n }\r\n return data as OrganizationDetails | null;\r\n },\r\n });\r\n\r\n useEffect(() => {\r\n const organization = organizationQuery.data;\r\n if (!organization) {\r\n return;\r\n }\r\n\r\n setOrganizationName(organization.name ?? \"\");\r\n setOrganizationSlug(organization.slug ?? \"\");\r\n setOrganizationMetadata(JSON.stringify(organization.metadata ?? {}, null, 2));\r\n }, [organizationQuery.data]);\r\n\r\n const onUpdateOrganization = async () => {\r\n if (!canManageOrganization || !activeOrganizationId) {\r\n return;\r\n }\r\n\r\n try {\r\n setIsSavingOrganization(true);\r\n let parsedMetadata: Record<string, unknown>;\r\n try {\r\n parsedMetadata = organizationMetadata.trim()\r\n ? (JSON.parse(organizationMetadata) as Record<string, unknown>)\r\n : {};\r\n } catch (parseError) {\r\n const message =\r\n parseError instanceof SyntaxError\r\n ? resolvedLabels.formMetadataInvalidJson\r\n : parseError instanceof Error\r\n ? parseError.message\r\n : resolvedLabels.formMetadataInvalid;\r\n throw new Error(message);\r\n }\r\n\r\n const { error } = await authClient.organization.update({\r\n organizationId: activeOrganizationId,\r\n data: {\r\n name: organizationName.trim(),\r\n slug: organizationSlug.trim(),\r\n metadata: parsedMetadata,\r\n },\r\n });\r\n\r\n if (error) {\r\n throw new Error(error.message ?? resolvedLabels.updateError);\r\n }\r\n\r\n await refreshOrganizationQueries();\r\n toast.success(resolvedLabels.updateSuccess);\r\n } catch (error) {\r\n toast.error(error instanceof Error ? error.message : resolvedLabels.updateError);\r\n } finally {\r\n setIsSavingOrganization(false);\r\n }\r\n };\r\n\r\n if (!activeOrganizationId) {\r\n return (\r\n <OrganizationStateCard\r\n title={resolvedLabels.settingsTitle}\r\n message={resolvedLabels.settingsNoActive}\r\n />\r\n );\r\n }\r\n\r\n if (!canManageOrganization) {\r\n return (\r\n <OrganizationStateCard\r\n title={resolvedLabels.settingsTitle}\r\n message={resolvedLabels.settingsManageOnly}\r\n />\r\n );\r\n }\r\n\r\n if (organizationQuery.isLoading) {\r\n return (\r\n <div className=\"p-6 flex justify-center\">\r\n <Spinner />\r\n </div>\r\n );\r\n }\r\n\r\n return (\r\n <div className=\"p-6\">\r\n <Card>\r\n <CardHeader className=\"flex items-center justify-between\">\r\n <div className=\"flex flex-col\">\r\n <h2 className=\"text-xl font-semibold\">{resolvedLabels.settingsTitle}</h2>\r\n <p className=\"text-sm text-default-500\">{resolvedLabels.settingsDescription}</p>\r\n </div>\r\n <Chip variant=\"flat\" color=\"primary\">\r\n {resolvedRoleLabels[activeOrganizationRole] ??\r\n activeOrganizationRole ??\r\n resolvedRoleLabels.member}\r\n </Chip>\r\n </CardHeader>\r\n <CardBody className=\"grid gap-3\">\r\n <Input\r\n label={resolvedLabels.formName}\r\n value={organizationName}\r\n onValueChange={setOrganizationName}\r\n />\r\n <Input\r\n label={resolvedLabels.formSlug}\r\n value={organizationSlug}\r\n onValueChange={setOrganizationSlug}\r\n />\r\n <Textarea\r\n label={resolvedLabels.formMetadata}\r\n value={organizationMetadata}\r\n onValueChange={setOrganizationMetadata}\r\n minRows={4}\r\n />\r\n <div className=\"flex justify-end\">\r\n <Button color=\"primary\" isLoading={isSavingOrganization} onPress={onUpdateOrganization}>\r\n {resolvedLabels.saveButton}\r\n </Button>\r\n </div>\r\n </CardBody>\r\n </Card>\r\n </div>\r\n );\r\n}\r\n"],"mappings":"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"}
|
|
@@ -3,8 +3,8 @@ import { Button, Card, CardBody, CardHeader, Chip, Input, Spinner, Textarea } fr
|
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { useTranslation } from "react-i18next";
|
|
5
5
|
import { toast } from "sonner";
|
|
6
|
-
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
|
7
6
|
import { authClient } from "@m5kdev/frontend/modules/auth/auth.lib";
|
|
7
|
+
import { useQuery, useQueryClient } from "@tanstack/react-query";
|
|
8
8
|
import { useSession } from "@m5kdev/frontend/modules/auth/hooks/useSession";
|
|
9
9
|
//#region src/modules/auth/components/OrganizationSettingsRoute.tsx
|
|
10
10
|
function OrganizationStateCard({ title, message }) {
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as _$react_jsx_runtime0 from "react/jsx-runtime";
|
|
2
|
+
|
|
3
|
+
//#region src/modules/auth/components/OrganizationSwitcher.d.ts
|
|
4
|
+
type OrganizationSwitcherProps = {
|
|
5
|
+
onInvalidateScopedQueries?: () => void | Promise<void>;
|
|
6
|
+
managerRoles?: string[];
|
|
7
|
+
managerPath?: string;
|
|
8
|
+
fallbackPath?: string;
|
|
9
|
+
};
|
|
10
|
+
declare function OrganizationSwitcher({
|
|
11
|
+
onInvalidateScopedQueries,
|
|
12
|
+
managerRoles,
|
|
13
|
+
managerPath,
|
|
14
|
+
fallbackPath
|
|
15
|
+
}: OrganizationSwitcherProps): _$react_jsx_runtime0.JSX.Element;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { OrganizationSwitcher, OrganizationSwitcherProps };
|
|
18
|
+
//# sourceMappingURL=OrganizationSwitcher.d.ts.map
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
require("../../../../_virtual/_rolldown/runtime.js");
|
|
3
|
+
const require_src_lib_utils = require("../../../lib/utils.js");
|
|
4
|
+
const require_src_components_ui_sidebar = require("../../../components/ui/sidebar.js");
|
|
5
|
+
let react = require("react");
|
|
6
|
+
let _heroui_react = require("@heroui/react");
|
|
7
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
8
|
+
let lucide_react = require("lucide-react");
|
|
9
|
+
let react_i18next = require("react-i18next");
|
|
10
|
+
let react_router = require("react-router");
|
|
11
|
+
let sonner = require("sonner");
|
|
12
|
+
let _m5kdev_frontend_modules_auth_auth_lib = require("@m5kdev/frontend/modules/auth/auth.lib");
|
|
13
|
+
let _tanstack_react_query = require("@tanstack/react-query");
|
|
14
|
+
let _m5kdev_frontend_modules_auth_hooks_useSession = require("@m5kdev/frontend/modules/auth/hooks/useSession");
|
|
15
|
+
//#region src/modules/auth/components/OrganizationSwitcher.tsx
|
|
16
|
+
function OrganizationSwitcher({ onInvalidateScopedQueries, managerRoles = ["admin", "owner"], managerPath = "/organization/members", fallbackPath = "/" }) {
|
|
17
|
+
const { t } = (0, react_i18next.useTranslation)();
|
|
18
|
+
const { data: session, registerSession } = (0, _m5kdev_frontend_modules_auth_hooks_useSession.useSession)();
|
|
19
|
+
const { open } = require_src_components_ui_sidebar.useSidebar();
|
|
20
|
+
const [isSwitching, setIsSwitching] = (0, react.useState)(false);
|
|
21
|
+
const activeOrganizationId = session?.session.activeOrganizationId ?? null;
|
|
22
|
+
const activeOrganizationRole = (session?.session)?.activeOrganizationRole ?? "";
|
|
23
|
+
const canManageOrganization = (0, react.useMemo)(() => new Set(managerRoles), [managerRoles]).has(activeOrganizationRole);
|
|
24
|
+
const { data: organizations = [], isError, error, refetch } = (0, _tanstack_react_query.useQuery)({
|
|
25
|
+
queryKey: ["auth-organization-list"],
|
|
26
|
+
queryFn: async () => {
|
|
27
|
+
const { data, error } = await _m5kdev_frontend_modules_auth_auth_lib.authClient.organization.list();
|
|
28
|
+
if (error) throw new Error(error.message ?? t("web-ui:organization.switcher.failedToLoadOrganizations"));
|
|
29
|
+
return data ?? [];
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
const handleSwitchOrganization = (0, react.useCallback)(async (organizationId) => {
|
|
33
|
+
if (!organizationId || organizationId === activeOrganizationId || isSwitching) return;
|
|
34
|
+
try {
|
|
35
|
+
setIsSwitching(true);
|
|
36
|
+
const { error } = await _m5kdev_frontend_modules_auth_auth_lib.authClient.organization.setActive({ organizationId });
|
|
37
|
+
if (error) throw new Error(error.message ?? t("web-ui:organization.switcher.failedToSwitchOrganization"));
|
|
38
|
+
registerSession(() => {
|
|
39
|
+
onInvalidateScopedQueries?.();
|
|
40
|
+
});
|
|
41
|
+
sonner.toast.success(t("web-ui:organization.switcher.organizationSwitched"));
|
|
42
|
+
} catch (error) {
|
|
43
|
+
sonner.toast.error(error instanceof Error ? error.message : t("web-ui:organization.switcher.failedToSwitchOrganization"));
|
|
44
|
+
} finally {
|
|
45
|
+
setIsSwitching(false);
|
|
46
|
+
}
|
|
47
|
+
}, [
|
|
48
|
+
activeOrganizationId,
|
|
49
|
+
isSwitching,
|
|
50
|
+
onInvalidateScopedQueries,
|
|
51
|
+
registerSession,
|
|
52
|
+
t
|
|
53
|
+
]);
|
|
54
|
+
if (!open) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_heroui_react.Button, {
|
|
55
|
+
as: react_router.Link,
|
|
56
|
+
to: canManageOrganization ? managerPath : fallbackPath,
|
|
57
|
+
variant: "light",
|
|
58
|
+
size: "sm",
|
|
59
|
+
isIconOnly: true,
|
|
60
|
+
"aria-label": t("web-ui:organization.switcher.label"),
|
|
61
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(lucide_react.Building2, { className: "h-4 w-4" })
|
|
62
|
+
});
|
|
63
|
+
if (isError) return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
64
|
+
className: "mb-4 flex flex-col gap-2",
|
|
65
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("p", {
|
|
66
|
+
className: "text-sm text-destructive",
|
|
67
|
+
children: error instanceof Error ? error.message : t("web-ui:organization.switcher.failedToLoadOrganizations")
|
|
68
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_heroui_react.Button, {
|
|
69
|
+
size: "sm",
|
|
70
|
+
variant: "flat",
|
|
71
|
+
onPress: () => void refetch(),
|
|
72
|
+
children: t("web-ui:organization.switcher.retry")
|
|
73
|
+
})]
|
|
74
|
+
});
|
|
75
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
76
|
+
className: "mb-4",
|
|
77
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_heroui_react.Select, {
|
|
78
|
+
size: "sm",
|
|
79
|
+
label: t("web-ui:organization.switcher.label"),
|
|
80
|
+
selectedKeys: activeOrganizationId ? [activeOrganizationId] : [],
|
|
81
|
+
disallowEmptySelection: true,
|
|
82
|
+
isDisabled: isSwitching || organizations.length === 0,
|
|
83
|
+
onSelectionChange: (keys) => {
|
|
84
|
+
const selectedOrganizationId = Array.from(keys)[0];
|
|
85
|
+
if (selectedOrganizationId) handleSwitchOrganization(selectedOrganizationId);
|
|
86
|
+
},
|
|
87
|
+
classNames: {
|
|
88
|
+
trigger: require_src_lib_utils.cn("min-h-10"),
|
|
89
|
+
value: require_src_lib_utils.cn("text-sm")
|
|
90
|
+
},
|
|
91
|
+
children: organizations.map((organization) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(_heroui_react.SelectItem, { children: organization.name }, organization.id))
|
|
92
|
+
})
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
//#endregion
|
|
96
|
+
exports.OrganizationSwitcher = OrganizationSwitcher;
|
|
97
|
+
|
|
98
|
+
//# sourceMappingURL=OrganizationSwitcher.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"OrganizationSwitcher.js","names":["useSidebar","authClient","Button","Link","Building2","Select","cn","SelectItem"],"sources":["../../../../../src/modules/auth/components/OrganizationSwitcher.tsx"],"sourcesContent":["import { Button, Select, SelectItem } from \"@heroui/react\";\r\nimport { authClient } from \"@m5kdev/frontend/modules/auth/auth.lib\";\r\nimport { useSession } from \"@m5kdev/frontend/modules/auth/hooks/useSession\";\r\nimport { useQuery } from \"@tanstack/react-query\";\r\nimport { Building2 } from \"lucide-react\";\r\nimport { useCallback, useMemo, useState } from \"react\";\r\nimport { useTranslation } from \"react-i18next\";\r\nimport { Link } from \"react-router\";\r\nimport { toast } from \"sonner\";\r\nimport { useSidebar } from \"../../../components/ui/sidebar\";\r\nimport { cn } from \"../../../lib/utils\";\r\n\r\ntype OrganizationOption = {\r\n id: string;\r\n name: string;\r\n slug: string;\r\n};\r\n\r\nexport type OrganizationSwitcherProps = {\r\n onInvalidateScopedQueries?: () => void | Promise<void>;\r\n managerRoles?: string[];\r\n managerPath?: string;\r\n fallbackPath?: string;\r\n};\r\n\r\nexport function OrganizationSwitcher({\r\n onInvalidateScopedQueries,\r\n managerRoles = [\"admin\", \"owner\"],\r\n managerPath = \"/organization/members\",\r\n fallbackPath = \"/\",\r\n}: OrganizationSwitcherProps) {\r\n const { t } = useTranslation();\r\n const { data: session, registerSession } = useSession();\r\n const { open } = useSidebar();\r\n const [isSwitching, setIsSwitching] = useState(false);\r\n const activeOrganizationId = session?.session.activeOrganizationId ?? null;\r\n const activeOrganizationRole =\r\n (session?.session as { activeOrganizationRole?: string } | undefined)?.activeOrganizationRole ??\r\n \"\";\r\n const managerRoleSet = useMemo(() => new Set(managerRoles), [managerRoles]);\r\n const canManageOrganization = managerRoleSet.has(activeOrganizationRole);\r\n\r\n const {\r\n data: organizations = [],\r\n isError,\r\n error,\r\n refetch,\r\n } = useQuery({\r\n queryKey: [\"auth-organization-list\"],\r\n queryFn: async () => {\r\n const { data, error } = await authClient.organization.list();\r\n if (error) {\r\n throw new Error(\r\n error.message ?? t(\"web-ui:organization.switcher.failedToLoadOrganizations\")\r\n );\r\n }\r\n return (data ?? []) as OrganizationOption[];\r\n },\r\n });\r\n\r\n const handleSwitchOrganization = useCallback(\r\n async (organizationId: string) => {\r\n if (!organizationId || organizationId === activeOrganizationId || isSwitching) {\r\n return;\r\n }\r\n\r\n try {\r\n setIsSwitching(true);\r\n const { error } = await authClient.organization.setActive({ organizationId });\r\n if (error) {\r\n throw new Error(\r\n error.message ?? t(\"web-ui:organization.switcher.failedToSwitchOrganization\")\r\n );\r\n }\r\n\r\n registerSession(() => {\r\n void onInvalidateScopedQueries?.();\r\n });\r\n toast.success(t(\"web-ui:organization.switcher.organizationSwitched\"));\r\n } catch (error) {\r\n toast.error(\r\n error instanceof Error\r\n ? error.message\r\n : t(\"web-ui:organization.switcher.failedToSwitchOrganization\")\r\n );\r\n } finally {\r\n setIsSwitching(false);\r\n }\r\n },\r\n [activeOrganizationId, isSwitching, onInvalidateScopedQueries, registerSession, t]\r\n );\r\n\r\n if (!open) {\r\n return (\r\n <Button\r\n as={Link}\r\n to={canManageOrganization ? managerPath : fallbackPath}\r\n variant=\"light\"\r\n size=\"sm\"\r\n isIconOnly\r\n aria-label={t(\"web-ui:organization.switcher.label\")}\r\n >\r\n <Building2 className=\"h-4 w-4\" />\r\n </Button>\r\n );\r\n }\r\n\r\n if (isError) {\r\n return (\r\n <div className=\"mb-4 flex flex-col gap-2\">\r\n <p className=\"text-sm text-destructive\">\r\n {error instanceof Error\r\n ? error.message\r\n : t(\"web-ui:organization.switcher.failedToLoadOrganizations\")}\r\n </p>\r\n <Button size=\"sm\" variant=\"flat\" onPress={() => void refetch()}>\r\n {t(\"web-ui:organization.switcher.retry\")}\r\n </Button>\r\n </div>\r\n );\r\n }\r\n\r\n return (\r\n <div className=\"mb-4\">\r\n <Select\r\n size=\"sm\"\r\n label={t(\"web-ui:organization.switcher.label\")}\r\n selectedKeys={activeOrganizationId ? [activeOrganizationId] : []}\r\n disallowEmptySelection\r\n isDisabled={isSwitching || organizations.length === 0}\r\n onSelectionChange={(keys) => {\r\n const selectedOrganizationId = Array.from(keys as Set<string>)[0];\r\n if (selectedOrganizationId) {\r\n void handleSwitchOrganization(selectedOrganizationId);\r\n }\r\n }}\r\n classNames={{\r\n trigger: cn(\"min-h-10\"),\r\n value: cn(\"text-sm\"),\r\n }}\r\n >\r\n {organizations.map((organization) => (\r\n <SelectItem key={organization.id}>{organization.name}</SelectItem>\r\n ))}\r\n </Select>\r\n </div>\r\n );\r\n}\r\n"],"mappings":"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"}
|
|
@@ -7,8 +7,8 @@ import { Building2 } from "lucide-react";
|
|
|
7
7
|
import { useTranslation } from "react-i18next";
|
|
8
8
|
import { Link as Link$1 } from "react-router";
|
|
9
9
|
import { toast } from "sonner";
|
|
10
|
-
import { useQuery } from "@tanstack/react-query";
|
|
11
10
|
import { authClient } from "@m5kdev/frontend/modules/auth/auth.lib";
|
|
11
|
+
import { useQuery } from "@tanstack/react-query";
|
|
12
12
|
import { useSession } from "@m5kdev/frontend/modules/auth/hooks/useSession";
|
|
13
13
|
//#region src/modules/auth/components/OrganizationSwitcher.tsx
|
|
14
14
|
function OrganizationSwitcher({ onInvalidateScopedQueries, managerRoles = ["admin", "owner"], managerPath = "/organization/members", fallbackPath = "/" }) {
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
|
|
4
|
+
//#region src/modules/auth/components/PreferencesEditor.d.ts
|
|
5
|
+
type UpdatePreferencesOptions = {
|
|
6
|
+
noOptimisticUpdate?: boolean;
|
|
7
|
+
onSuccess?: () => void;
|
|
8
|
+
onError?: (error: unknown) => void;
|
|
9
|
+
};
|
|
10
|
+
interface ControlDefinition {
|
|
11
|
+
label: string;
|
|
12
|
+
element: "switch" | "select" | "number";
|
|
13
|
+
options?: {
|
|
14
|
+
label: string;
|
|
15
|
+
value: string;
|
|
16
|
+
}[];
|
|
17
|
+
min?: number;
|
|
18
|
+
max?: number;
|
|
19
|
+
step?: number;
|
|
20
|
+
}
|
|
21
|
+
type ControlsFor<Preferences> = { [K in keyof Preferences]: ControlDefinition };
|
|
22
|
+
type PreferenceEditorLabels = {
|
|
23
|
+
title: string;
|
|
24
|
+
submit: string;
|
|
25
|
+
updated: string;
|
|
26
|
+
updateError: string;
|
|
27
|
+
loading?: string;
|
|
28
|
+
};
|
|
29
|
+
type PreferenceEditorProps<S extends z.ZodObject<z.ZodRawShape>> = {
|
|
30
|
+
schema: S;
|
|
31
|
+
controls: ControlsFor<z.infer<S>>;
|
|
32
|
+
values: Partial<z.infer<S>>;
|
|
33
|
+
isLoading: boolean;
|
|
34
|
+
isPending: boolean;
|
|
35
|
+
labels: PreferenceEditorLabels;
|
|
36
|
+
updateValues: (partialValues: Partial<z.infer<S>>, options: UpdatePreferencesOptions) => void;
|
|
37
|
+
};
|
|
38
|
+
declare function PreferencesEditor<S extends z.ZodObject<z.ZodRawShape>>({
|
|
39
|
+
schema,
|
|
40
|
+
controls,
|
|
41
|
+
values,
|
|
42
|
+
isLoading,
|
|
43
|
+
isPending,
|
|
44
|
+
labels,
|
|
45
|
+
updateValues
|
|
46
|
+
}: PreferenceEditorProps<S>): ReactElement;
|
|
47
|
+
//#endregion
|
|
48
|
+
export { ControlDefinition, ControlsFor, PreferenceEditorLabels, PreferenceEditorProps, PreferencesEditor, UpdatePreferencesOptions };
|
|
49
|
+
//# sourceMappingURL=PreferencesEditor.d.ts.map
|