payload-auth 1.1.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/authjs/index.d.ts.map +1 -1
- package/dist/authjs/index.js +2 -2
- package/dist/better-auth/adapter/generate-schema/generate-schema-builder.d.ts +1 -1
- package/dist/better-auth/adapter/generate-schema/generate-schema-builder.d.ts.map +1 -1
- package/dist/better-auth/adapter/generate-schema/generate-schema-builder.js +3 -3
- package/dist/better-auth/adapter/generate-schema/get-payload-schema.d.ts.map +1 -1
- package/dist/better-auth/adapter/generate-schema/get-payload-schema.js +4 -4
- package/dist/better-auth/adapter/generate-schema/index.js +5 -5
- package/dist/better-auth/adapter/generate-schema/utils.js +1 -1
- package/dist/better-auth/adapter/index.d.ts +2 -2
- package/dist/better-auth/adapter/index.d.ts.map +1 -1
- package/dist/better-auth/adapter/index.js +53 -53
- package/dist/better-auth/adapter/transform/index.d.ts +5 -5
- package/dist/better-auth/adapter/transform/index.d.ts.map +1 -1
- package/dist/better-auth/adapter/transform/index.js +69 -69
- package/dist/better-auth/adapter/types.d.ts +3 -3
- package/dist/better-auth/adapter/types.d.ts.map +1 -1
- package/dist/better-auth/adapter/types.js +1 -1
- package/dist/better-auth/index.js +4 -4
- package/dist/better-auth/plugin/{lib/constants.d.ts → constants.d.ts} +12 -6
- package/dist/better-auth/plugin/constants.d.ts.map +1 -0
- package/dist/better-auth/plugin/constants.js +62 -0
- package/dist/better-auth/plugin/helpers/check-passkey-plugin.d.ts +1 -1
- package/dist/better-auth/plugin/helpers/check-passkey-plugin.d.ts.map +1 -1
- package/dist/better-auth/plugin/helpers/check-passkey-plugin.js +2 -2
- package/dist/better-auth/plugin/helpers/check-username-plugin.d.ts +1 -1
- package/dist/better-auth/plugin/helpers/check-username-plugin.d.ts.map +1 -1
- package/dist/better-auth/plugin/helpers/check-username-plugin.js +2 -2
- package/dist/better-auth/plugin/helpers/generate-verify-email-url.d.ts +1 -1
- package/dist/better-auth/plugin/helpers/generate-verify-email-url.d.ts.map +1 -1
- package/dist/better-auth/plugin/helpers/generate-verify-email-url.js +7 -7
- package/dist/better-auth/plugin/helpers/get-admin-access.d.ts +1 -1
- package/dist/better-auth/plugin/helpers/get-admin-access.d.ts.map +1 -1
- package/dist/better-auth/plugin/helpers/get-admin-access.js +2 -2
- package/dist/better-auth/plugin/helpers/get-all-roles.d.ts +1 -1
- package/dist/better-auth/plugin/helpers/get-all-roles.d.ts.map +1 -1
- package/dist/better-auth/plugin/helpers/get-all-roles.js +4 -4
- package/dist/better-auth/plugin/helpers/get-ip.d.ts +1 -1
- package/dist/better-auth/plugin/helpers/get-ip.d.ts.map +1 -1
- package/dist/better-auth/plugin/helpers/get-ip.js +14 -14
- package/dist/better-auth/plugin/helpers/get-requst-collection.d.ts +1 -1
- package/dist/better-auth/plugin/helpers/get-requst-collection.d.ts.map +1 -1
- package/dist/better-auth/plugin/helpers/get-requst-collection.js +2 -2
- package/dist/better-auth/plugin/helpers/index.d.ts +1 -1
- package/dist/better-auth/plugin/helpers/index.d.ts.map +1 -1
- package/dist/better-auth/plugin/helpers/index.js +1 -1
- package/dist/better-auth/plugin/helpers/prepare-session-data.d.ts +3 -3
- package/dist/better-auth/plugin/helpers/prepare-session-data.d.ts.map +1 -1
- package/dist/better-auth/plugin/helpers/prepare-session-data.js +4 -3
- package/dist/better-auth/plugin/helpers/serialize-cookie.d.ts +2 -2
- package/dist/better-auth/plugin/helpers/serialize-cookie.d.ts.map +1 -1
- package/dist/better-auth/plugin/helpers/serialize-cookie.js +33 -33
- package/dist/better-auth/plugin/index.d.ts +6 -6
- package/dist/better-auth/plugin/index.d.ts.map +1 -1
- package/dist/better-auth/plugin/index.js +19 -53
- package/dist/better-auth/plugin/lib/build-collections/accounts/hooks/sync-password-to-user.d.ts +1 -1
- package/dist/better-auth/plugin/lib/build-collections/accounts/hooks/sync-password-to-user.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/build-collections/accounts/hooks/sync-password-to-user.js +6 -6
- package/dist/better-auth/plugin/lib/build-collections/accounts/index.d.ts +3 -3
- package/dist/better-auth/plugin/lib/build-collections/accounts/index.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/build-collections/accounts/index.js +47 -47
- package/dist/better-auth/plugin/lib/build-collections/admin-invitations/hooks/get-url-after-read.d.ts +3 -3
- package/dist/better-auth/plugin/lib/build-collections/admin-invitations/hooks/get-url-after-read.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/build-collections/admin-invitations/hooks/get-url-after-read.js +1 -1
- package/dist/better-auth/plugin/lib/build-collections/admin-invitations/hooks/get-url-before-change.d.ts +1 -1
- package/dist/better-auth/plugin/lib/build-collections/admin-invitations/hooks/get-url-before-change.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/build-collections/admin-invitations/hooks/get-url-before-change.js +2 -2
- package/dist/better-auth/plugin/lib/build-collections/admin-invitations/index.d.ts +3 -3
- package/dist/better-auth/plugin/lib/build-collections/admin-invitations/index.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/build-collections/admin-invitations/index.js +33 -24
- package/dist/better-auth/plugin/lib/build-collections/api-keys.d.ts +3 -3
- package/dist/better-auth/plugin/lib/build-collections/api-keys.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/build-collections/api-keys.js +77 -80
- package/dist/better-auth/plugin/lib/build-collections/index.d.ts +3 -3
- package/dist/better-auth/plugin/lib/build-collections/index.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/build-collections/index.js +2 -2
- package/dist/better-auth/plugin/lib/build-collections/invitations.d.ts +3 -3
- package/dist/better-auth/plugin/lib/build-collections/invitations.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/build-collections/invitations.js +30 -30
- package/dist/better-auth/plugin/lib/build-collections/jwks.d.ts +3 -3
- package/dist/better-auth/plugin/lib/build-collections/jwks.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/build-collections/jwks.js +13 -13
- package/dist/better-auth/plugin/lib/build-collections/members.d.ts +3 -3
- package/dist/better-auth/plugin/lib/build-collections/members.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/build-collections/members.js +22 -22
- package/dist/better-auth/plugin/lib/build-collections/oauth-access-tokens.d.ts +3 -3
- package/dist/better-auth/plugin/lib/build-collections/oauth-access-tokens.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/build-collections/oauth-access-tokens.js +33 -33
- package/dist/better-auth/plugin/lib/build-collections/oauth-applications.d.ts +3 -3
- package/dist/better-auth/plugin/lib/build-collections/oauth-applications.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/build-collections/oauth-applications.js +40 -40
- package/dist/better-auth/plugin/lib/build-collections/oauth-consents.d.ts +3 -3
- package/dist/better-auth/plugin/lib/build-collections/oauth-consents.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/build-collections/oauth-consents.js +20 -20
- package/dist/better-auth/plugin/lib/build-collections/organizations.d.ts +3 -3
- package/dist/better-auth/plugin/lib/build-collections/organizations.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/build-collections/organizations.js +21 -21
- package/dist/better-auth/plugin/lib/build-collections/passkeys.d.ts +3 -3
- package/dist/better-auth/plugin/lib/build-collections/passkeys.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/build-collections/passkeys.js +37 -37
- package/dist/better-auth/plugin/lib/build-collections/sessions.d.ts +3 -3
- package/dist/better-auth/plugin/lib/build-collections/sessions.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/build-collections/sessions.js +33 -33
- package/dist/better-auth/plugin/lib/build-collections/sso-providers.d.ts +3 -3
- package/dist/better-auth/plugin/lib/build-collections/sso-providers.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/build-collections/sso-providers.js +29 -29
- package/dist/better-auth/plugin/lib/build-collections/teams.d.ts +3 -3
- package/dist/better-auth/plugin/lib/build-collections/teams.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/build-collections/teams.js +13 -13
- package/dist/better-auth/plugin/lib/build-collections/two-factors.d.ts +3 -3
- package/dist/better-auth/plugin/lib/build-collections/two-factors.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/build-collections/two-factors.js +17 -17
- package/dist/better-auth/plugin/lib/build-collections/users/better-auth-strategy.d.ts +1 -1
- package/dist/better-auth/plugin/lib/build-collections/users/better-auth-strategy.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/build-collections/users/better-auth-strategy.js +8 -8
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/generate-invite-url.d.ts +3 -4
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/generate-invite-url.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/generate-invite-url.js +12 -11
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/refresh-token.d.ts +1 -1
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/refresh-token.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/refresh-token.js +19 -18
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/send-invite-url.d.ts +3 -2
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/send-invite-url.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/send-invite-url.js +28 -6
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/set-admin-role.d.ts +2 -2
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/set-admin-role.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/set-admin-role.js +9 -8
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/signup.d.ts +2 -2
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/signup.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/signup.js +34 -30
- package/dist/better-auth/plugin/lib/build-collections/users/hooks/after-login.d.ts +1 -1
- package/dist/better-auth/plugin/lib/build-collections/users/hooks/after-login.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/build-collections/users/hooks/after-login.js +7 -6
- package/dist/better-auth/plugin/lib/build-collections/users/hooks/after-logout.d.ts +1 -1
- package/dist/better-auth/plugin/lib/build-collections/users/hooks/after-logout.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/build-collections/users/hooks/after-logout.js +11 -11
- package/dist/better-auth/plugin/lib/build-collections/users/hooks/before-delete.d.ts +2 -2
- package/dist/better-auth/plugin/lib/build-collections/users/hooks/before-delete.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/build-collections/users/hooks/before-delete.js +2 -2
- package/dist/better-auth/plugin/lib/build-collections/users/hooks/before-login.d.ts +1 -1
- package/dist/better-auth/plugin/lib/build-collections/users/hooks/before-login.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/build-collections/users/hooks/before-login.js +3 -3
- package/dist/better-auth/plugin/lib/build-collections/users/hooks/on-verified-change.d.ts +1 -1
- package/dist/better-auth/plugin/lib/build-collections/users/hooks/on-verified-change.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/build-collections/users/hooks/on-verified-change.js +1 -1
- package/dist/better-auth/plugin/lib/build-collections/users/hooks/sync-account.d.ts +1 -1
- package/dist/better-auth/plugin/lib/build-collections/users/hooks/sync-account.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/build-collections/users/hooks/sync-account.js +9 -9
- package/dist/better-auth/plugin/lib/build-collections/users/index.d.ts +3 -3
- package/dist/better-auth/plugin/lib/build-collections/users/index.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/build-collections/users/index.js +84 -94
- package/dist/better-auth/plugin/lib/build-collections/utils/get-timestamp-fields.d.ts +1 -1
- package/dist/better-auth/plugin/lib/build-collections/utils/get-timestamp-fields.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/build-collections/utils/get-timestamp-fields.js +7 -7
- package/dist/better-auth/plugin/lib/build-collections/utils/payload-access.d.ts +1 -1
- package/dist/better-auth/plugin/lib/build-collections/utils/payload-access.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/build-collections/utils/payload-access.js +9 -9
- package/dist/better-auth/plugin/lib/build-collections/verifications.d.ts +3 -3
- package/dist/better-auth/plugin/lib/build-collections/verifications.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/build-collections/verifications.js +17 -17
- package/dist/better-auth/plugin/lib/get-payload-auth.d.ts +2 -2
- package/dist/better-auth/plugin/lib/get-payload-auth.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/get-payload-auth.js +1 -1
- package/dist/better-auth/plugin/lib/get-required-collection-slugs.d.ts +2 -2
- package/dist/better-auth/plugin/lib/get-required-collection-slugs.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/get-required-collection-slugs.js +7 -7
- package/dist/better-auth/plugin/lib/init-better-auth.d.ts +4 -4
- package/dist/better-auth/plugin/lib/init-better-auth.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/init-better-auth.js +1 -1
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/admin-plugin.d.ts +1 -1
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/admin-plugin.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/admin-plugin.js +3 -3
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/api-key-plugin.js +3 -3
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/index.d.ts +4 -4
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/index.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/index.js +12 -12
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/oidc-plugin.js +10 -11
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/organizations-plugin.js +15 -16
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/passkey-plugin.js +3 -3
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/sso-plugin.js +3 -3
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/ensure-password-set-before-create.d.ts +1 -1
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/ensure-password-set-before-create.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/ensure-password-set-before-create.js +7 -6
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/password.d.ts +1 -1
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/password.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/password.js +7 -6
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/save-to-jwt-middleware.d.ts +4 -4
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/save-to-jwt-middleware.d.ts.map +1 -1
- package/dist/better-auth/plugin/lib/sanitize-better-auth-options/utils/save-to-jwt-middleware.js +4 -4
- package/dist/better-auth/plugin/payload/components/admin-buttons/index.d.ts +2 -2
- package/dist/better-auth/plugin/payload/components/admin-buttons/index.d.ts.map +1 -1
- package/dist/better-auth/plugin/payload/components/admin-buttons/index.js +18 -18
- package/dist/better-auth/plugin/payload/components/admin-invite-button/index.d.ts +2 -2
- package/dist/better-auth/plugin/payload/components/admin-invite-button/index.d.ts.map +1 -1
- package/dist/better-auth/plugin/payload/components/admin-invite-button/index.js +58 -40
- package/dist/better-auth/plugin/payload/components/admin-invite-button/index.scss +2 -3
- package/dist/better-auth/plugin/payload/components/admin-social-provider-buttons/index.d.ts +3 -3
- package/dist/better-auth/plugin/payload/components/admin-social-provider-buttons/index.d.ts.map +1 -1
- package/dist/better-auth/plugin/payload/components/admin-social-provider-buttons/index.js +7 -9
- package/dist/better-auth/plugin/payload/components/admin-social-provider-buttons/index.scss +4 -1
- package/dist/better-auth/plugin/payload/components/logout-button.d.ts +1 -1
- package/dist/better-auth/plugin/payload/components/logout-button.d.ts.map +1 -1
- package/dist/better-auth/plugin/payload/components/logout-button.js +7 -9
- package/dist/better-auth/plugin/payload/components/rsc-redirect.d.ts +1 -1
- package/dist/better-auth/plugin/payload/components/rsc-redirect.d.ts.map +1 -1
- package/dist/better-auth/plugin/payload/components/rsc-redirect.js +1 -1
- package/dist/better-auth/plugin/payload/components/token-field.d.ts +2 -2
- package/dist/better-auth/plugin/payload/components/token-field.d.ts.map +1 -1
- package/dist/better-auth/plugin/payload/components/token-field.js +3 -3
- package/dist/better-auth/plugin/payload/exports/client.d.ts +5 -6
- package/dist/better-auth/plugin/payload/exports/client.d.ts.map +1 -1
- package/dist/better-auth/plugin/payload/exports/client.js +2 -3
- package/dist/better-auth/plugin/payload/exports/rsc.d.ts +6 -9
- package/dist/better-auth/plugin/payload/exports/rsc.d.ts.map +1 -1
- package/dist/better-auth/plugin/payload/exports/rsc.js +5 -8
- package/dist/better-auth/plugin/payload/utils/generate-admin-invite-url.d.ts +1 -1
- package/dist/better-auth/plugin/payload/utils/generate-admin-invite-url.d.ts.map +1 -1
- package/dist/better-auth/plugin/payload/utils/generate-admin-invite-url.js +6 -5
- package/dist/better-auth/plugin/payload/utils/generate-metadata.d.ts +3 -3
- package/dist/better-auth/plugin/payload/utils/generate-metadata.d.ts.map +1 -1
- package/dist/better-auth/plugin/payload/utils/generate-metadata.js +18 -18
- package/dist/better-auth/plugin/payload/utils/get-safe-redirect.d.ts.map +1 -1
- package/dist/better-auth/plugin/payload/utils/get-safe-redirect.js +1 -1
- package/dist/better-auth/plugin/payload/views/admin-login/client.d.ts +18 -0
- package/dist/better-auth/plugin/payload/views/admin-login/client.d.ts.map +1 -0
- package/dist/better-auth/plugin/payload/views/admin-login/client.js +192 -0
- package/dist/better-auth/plugin/payload/views/admin-login/index.d.ts +11 -0
- package/dist/better-auth/plugin/payload/views/admin-login/index.d.ts.map +1 -0
- package/dist/better-auth/plugin/payload/views/admin-login/index.js +126 -0
- package/dist/better-auth/plugin/payload/views/admin-signup/client.d.ts +16 -0
- package/dist/better-auth/plugin/payload/views/admin-signup/client.d.ts.map +1 -0
- package/dist/better-auth/plugin/payload/views/admin-signup/client.js +190 -0
- package/dist/better-auth/plugin/payload/views/admin-signup/index.d.ts +12 -0
- package/dist/better-auth/plugin/payload/views/admin-signup/index.d.ts.map +1 -0
- package/dist/better-auth/plugin/payload/views/admin-signup/index.js +114 -0
- package/dist/better-auth/plugin/payload/views/{create-first-admin → admin-signup}/index.scss +1 -1
- package/dist/better-auth/plugin/payload/views/forgot-password/client.d.ts +4 -7
- package/dist/better-auth/plugin/payload/views/forgot-password/client.d.ts.map +1 -1
- package/dist/better-auth/plugin/payload/views/forgot-password/client.js +72 -100
- package/dist/better-auth/plugin/payload/views/forgot-password/index.d.ts +6 -6
- package/dist/better-auth/plugin/payload/views/forgot-password/index.d.ts.map +1 -1
- package/dist/better-auth/plugin/payload/views/forgot-password/index.js +23 -34
- package/dist/better-auth/plugin/payload/views/reset-password/client.d.ts +4 -2
- package/dist/better-auth/plugin/payload/views/reset-password/client.d.ts.map +1 -1
- package/dist/better-auth/plugin/payload/views/reset-password/client.js +88 -53
- package/dist/better-auth/plugin/payload/views/reset-password/index.d.ts +2 -2
- package/dist/better-auth/plugin/payload/views/reset-password/index.d.ts.map +1 -1
- package/dist/better-auth/plugin/payload/views/reset-password/index.js +51 -56
- package/dist/better-auth/plugin/types.d.ts +37 -19
- package/dist/better-auth/plugin/types.d.ts.map +1 -1
- package/dist/better-auth/plugin/types.js +1 -1
- package/dist/better-auth/types.js +2 -2
- package/dist/clerk/admin-ui.js +4 -4
- package/dist/clerk/index.js +5 -5
- package/dist/clerk/plugin/auth-strategy.js +4 -4
- package/dist/clerk/plugin/collections/users/access.js +1 -1
- package/dist/clerk/plugin/collections/users/endpoints/sync-from-clerk.d.ts +2 -2
- package/dist/clerk/plugin/collections/users/endpoints/sync-from-clerk.d.ts.map +1 -1
- package/dist/clerk/plugin/collections/users/endpoints/sync-from-clerk.js +9 -9
- package/dist/clerk/plugin/collections/users/endpoints/webhook/handlers/index.js +4 -4
- package/dist/clerk/plugin/collections/users/endpoints/webhook/handlers/userCreated.d.ts.map +1 -1
- package/dist/clerk/plugin/collections/users/endpoints/webhook/handlers/userCreated.js +2 -2
- package/dist/clerk/plugin/collections/users/endpoints/webhook/handlers/userDeleted.d.ts.map +1 -1
- package/dist/clerk/plugin/collections/users/endpoints/webhook/handlers/userDeleted.js +2 -2
- package/dist/clerk/plugin/collections/users/endpoints/webhook/handlers/userUpdated.d.ts.map +1 -1
- package/dist/clerk/plugin/collections/users/endpoints/webhook/handlers/userUpdated.js +2 -2
- package/dist/clerk/plugin/collections/users/endpoints/webhook/index.d.ts.map +1 -1
- package/dist/clerk/plugin/collections/users/endpoints/webhook/index.js +5 -4
- package/dist/clerk/plugin/collections/users/fields.js +1 -1
- package/dist/clerk/plugin/collections/users/index.d.ts +1 -1
- package/dist/clerk/plugin/collections/users/index.d.ts.map +1 -1
- package/dist/clerk/plugin/collections/users/index.js +7 -7
- package/dist/clerk/plugin/components/after-login-form.js +4 -4
- package/dist/clerk/plugin/components/logout-button.d.ts.map +1 -1
- package/dist/clerk/plugin/components/logout-button.js +17 -17
- package/dist/clerk/plugin/components/sync-clerk-users-button.d.ts +1 -1
- package/dist/clerk/plugin/components/sync-clerk-users-button.d.ts.map +1 -1
- package/dist/clerk/plugin/components/sync-clerk-users-button.js +8 -8
- package/dist/clerk/plugin.d.ts +4 -4
- package/dist/clerk/plugin.d.ts.map +1 -1
- package/dist/clerk/plugin.js +4 -4
- package/dist/clerk/types.js +1 -1
- package/dist/clerk/utils/clerk-user.d.ts.map +1 -1
- package/dist/clerk/utils/clerk-user.js +1 -1
- package/dist/clerk/utils/index.js +4 -4
- package/dist/clerk/utils/load-clerk-instance.d.ts.map +1 -1
- package/dist/clerk/utils/load-clerk-instance.js +2 -2
- package/dist/clerk/utils/svix.d.ts +1 -1
- package/dist/clerk/utils/svix.d.ts.map +1 -1
- package/dist/clerk/utils/svix.js +2 -2
- package/dist/clerk/utils/user.d.ts.map +1 -1
- package/dist/clerk/utils/user.js +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/kinde/index.d.ts.map +1 -1
- package/dist/kinde/index.js +2 -2
- package/dist/{better-auth/plugin/payload → shared}/components/icons.d.ts +3 -3
- package/dist/shared/components/icons.d.ts.map +1 -0
- package/dist/shared/components/icons.js +437 -0
- package/dist/shared/components/logo.d.ts +4 -0
- package/dist/shared/components/logo.d.ts.map +1 -0
- package/dist/shared/components/logo.js +24 -0
- package/dist/shared/form/components/submit.d.ts +8 -0
- package/dist/shared/form/components/submit.d.ts.map +1 -0
- package/dist/shared/form/components/submit.js +21 -0
- package/dist/shared/form/fields/text-field.d.ts +8 -0
- package/dist/shared/form/fields/text-field.d.ts.map +1 -0
- package/dist/shared/form/fields/text-field.js +41 -0
- package/dist/shared/form/index.d.ts +34 -0
- package/dist/shared/form/index.d.ts.map +1 -0
- package/dist/shared/form/index.js +17 -0
- package/dist/shared/form/ui/header/index.d.ts +9 -0
- package/dist/shared/form/ui/header/index.d.ts.map +1 -0
- package/dist/shared/form/ui/header/index.js +24 -0
- package/dist/shared/form/ui/index.d.ts +31 -0
- package/dist/shared/form/ui/index.d.ts.map +1 -0
- package/dist/shared/form/ui/index.js +60 -0
- package/dist/shared/form/ui/index.scss +12 -0
- package/dist/shared/index.d.ts +3 -0
- package/dist/shared/index.d.ts.map +1 -0
- package/dist/shared/index.js +4 -0
- package/dist/shared/payload/fields/field-copy-button/index.css +47 -0
- package/dist/shared/payload/fields/field-copy-button/index.d.ts +4 -0
- package/dist/shared/payload/fields/field-copy-button/index.d.ts.map +1 -0
- package/dist/shared/payload/fields/field-copy-button/index.js +38 -0
- package/dist/shared/payload/fields/generate-uuid-button/index.css +14 -0
- package/dist/shared/payload/fields/generate-uuid-button/index.d.ts +4 -0
- package/dist/shared/payload/fields/generate-uuid-button/index.d.ts.map +1 -0
- package/dist/shared/payload/fields/generate-uuid-button/index.js +26 -0
- package/dist/shared/payload/fields/index.d.ts +3 -0
- package/dist/shared/payload/fields/index.d.ts.map +1 -0
- package/dist/shared/payload/fields/index.js +4 -0
- package/dist/shared/utils/regex.d.ts +3 -0
- package/dist/shared/utils/regex.d.ts.map +1 -0
- package/dist/shared/utils/regex.js +4 -0
- package/dist/shared/utils/try-catch.d.ts +12 -0
- package/dist/shared/utils/try-catch.d.ts.map +1 -0
- package/dist/shared/utils/try-catch.js +17 -0
- package/package.json +7 -5
- package/dist/better-auth/plugin/helpers/get-admin-routes.d.ts +0 -14
- package/dist/better-auth/plugin/helpers/get-admin-routes.d.ts.map +0 -1
- package/dist/better-auth/plugin/helpers/get-admin-routes.js +0 -6
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/forgot-password.d.ts +0 -3
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/forgot-password.d.ts.map +0 -1
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/forgot-password.js +0 -96
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/login.d.ts +0 -4
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/login.d.ts.map +0 -1
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/login.js +0 -115
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/reset-password.d.ts +0 -3
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/reset-password.d.ts.map +0 -1
- package/dist/better-auth/plugin/lib/build-collections/users/endpoints/reset-password.js +0 -62
- package/dist/better-auth/plugin/lib/constants.d.ts.map +0 -1
- package/dist/better-auth/plugin/lib/constants.js +0 -56
- package/dist/better-auth/plugin/payload/components/form-header/index.d.ts +0 -9
- package/dist/better-auth/plugin/payload/components/form-header/index.d.ts.map +0 -1
- package/dist/better-auth/plugin/payload/components/form-header/index.js +0 -23
- package/dist/better-auth/plugin/payload/components/icons.d.ts.map +0 -1
- package/dist/better-auth/plugin/payload/components/icons.js +0 -437
- package/dist/better-auth/plugin/payload/components/logo.d.ts +0 -4
- package/dist/better-auth/plugin/payload/components/logo.d.ts.map +0 -1
- package/dist/better-auth/plugin/payload/components/logo.js +0 -24
- package/dist/better-auth/plugin/payload/components/styles.css +0 -73
- package/dist/better-auth/plugin/payload/views/admin-invite/client.d.ts +0 -12
- package/dist/better-auth/plugin/payload/views/admin-invite/client.d.ts.map +0 -1
- package/dist/better-auth/plugin/payload/views/admin-invite/client.js +0 -92
- package/dist/better-auth/plugin/payload/views/admin-invite/index.d.ts +0 -11
- package/dist/better-auth/plugin/payload/views/admin-invite/index.d.ts.map +0 -1
- package/dist/better-auth/plugin/payload/views/admin-invite/index.js +0 -84
- package/dist/better-auth/plugin/payload/views/admin-invite/index.scss +0 -25
- package/dist/better-auth/plugin/payload/views/create-first-admin/client.d.ts +0 -14
- package/dist/better-auth/plugin/payload/views/create-first-admin/client.d.ts.map +0 -1
- package/dist/better-auth/plugin/payload/views/create-first-admin/client.js +0 -95
- package/dist/better-auth/plugin/payload/views/create-first-admin/index.d.ts +0 -12
- package/dist/better-auth/plugin/payload/views/create-first-admin/index.d.ts.map +0 -1
- package/dist/better-auth/plugin/payload/views/create-first-admin/index.js +0 -144
- package/dist/better-auth/plugin/payload/views/forgot-password/index.scss +0 -0
- package/dist/better-auth/plugin/payload/views/inactivity/index.d.ts +0 -5
- package/dist/better-auth/plugin/payload/views/inactivity/index.d.ts.map +0 -1
- package/dist/better-auth/plugin/payload/views/inactivity/index.js +0 -12
- package/dist/better-auth/plugin/payload/views/login/form/fields/login-field.d.ts +0 -9
- package/dist/better-auth/plugin/payload/views/login/form/fields/login-field.d.ts.map +0 -1
- package/dist/better-auth/plugin/payload/views/login/form/fields/login-field.js +0 -54
- package/dist/better-auth/plugin/payload/views/login/form/fields/password/index.d.ts +0 -1
- package/dist/better-auth/plugin/payload/views/login/form/fields/password/index.d.ts.map +0 -1
- package/dist/better-auth/plugin/payload/views/login/form/fields/password/index.js +0 -121
- package/dist/better-auth/plugin/payload/views/login/form/fields/password/index.scss +0 -31
- package/dist/better-auth/plugin/payload/views/login/form/fields/password/types.d.ts +0 -56
- package/dist/better-auth/plugin/payload/views/login/form/fields/password/types.d.ts.map +0 -1
- package/dist/better-auth/plugin/payload/views/login/form/fields/password/types.js +0 -3
- package/dist/better-auth/plugin/payload/views/login/form/index.d.ts +0 -17
- package/dist/better-auth/plugin/payload/views/login/form/index.d.ts.map +0 -1
- package/dist/better-auth/plugin/payload/views/login/form/index.js +0 -137
- package/dist/better-auth/plugin/payload/views/login/form/index.scss +0 -23
- package/dist/better-auth/plugin/payload/views/login/index.d.ts +0 -11
- package/dist/better-auth/plugin/payload/views/login/index.d.ts.map +0 -1
- package/dist/better-auth/plugin/payload/views/login/index.js +0 -98
- package/dist/better-auth/plugin/payload/views/login/index.scss +0 -10
- package/dist/better-auth/plugin/payload/views/logout/client.d.ts +0 -8
- package/dist/better-auth/plugin/payload/views/logout/client.d.ts.map +0 -1
- package/dist/better-auth/plugin/payload/views/logout/client.js +0 -76
- package/dist/better-auth/plugin/payload/views/logout/index.d.ts +0 -8
- package/dist/better-auth/plugin/payload/views/logout/index.d.ts.map +0 -1
- package/dist/better-auth/plugin/payload/views/logout/index.js +0 -14
- package/dist/better-auth/plugin/payload/views/logout/index.scss +0 -0
- package/dist/better-auth/plugin/payload/views/reset-password/index.scss +0 -9
- package/dist/better-auth/plugin/payload/views/reset-password/metadata.d.ts +0 -3
- package/dist/better-auth/plugin/payload/views/reset-password/metadata.d.ts.map +0 -1
- package/dist/better-auth/plugin/payload/views/reset-password/metadata.js +0 -11
- /package/dist/{better-auth/plugin/payload/components/form-header → shared/form/ui/header}/index.scss +0 -0
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useStore } from "@tanstack/react-form";
|
|
3
|
+
import { useFieldContext } from "../index";
|
|
4
|
+
import { FieldErrors, FieldInputWrap, FormField, FormLabel } from "../ui";
|
|
5
|
+
export function TextField({ className, label, required = false, type = 'text', autoComplete = 'off' }) {
|
|
6
|
+
const field = useFieldContext();
|
|
7
|
+
const meta = useStore(field.store, (state)=>state.meta);
|
|
8
|
+
const hasError = meta.isTouched && meta.errors.length > 0;
|
|
9
|
+
return /*#__PURE__*/ _jsxs(FormField, {
|
|
10
|
+
id: field.name,
|
|
11
|
+
className: className,
|
|
12
|
+
hasError: hasError,
|
|
13
|
+
children: [
|
|
14
|
+
/*#__PURE__*/ _jsx(FormLabel, {
|
|
15
|
+
label: label,
|
|
16
|
+
htmlFor: field.name,
|
|
17
|
+
required: required
|
|
18
|
+
}),
|
|
19
|
+
/*#__PURE__*/ _jsxs(FieldInputWrap, {
|
|
20
|
+
children: [
|
|
21
|
+
/*#__PURE__*/ _jsx("input", {
|
|
22
|
+
autoComplete: autoComplete,
|
|
23
|
+
type: type,
|
|
24
|
+
id: field.name,
|
|
25
|
+
name: field.name,
|
|
26
|
+
value: field.state.value,
|
|
27
|
+
onChange: (e)=>field.handleChange(e.target.value),
|
|
28
|
+
onBlur: field.handleBlur,
|
|
29
|
+
required: required,
|
|
30
|
+
className: "text-field"
|
|
31
|
+
}),
|
|
32
|
+
/*#__PURE__*/ _jsx(FieldErrors, {
|
|
33
|
+
meta: meta
|
|
34
|
+
})
|
|
35
|
+
]
|
|
36
|
+
})
|
|
37
|
+
]
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9zaGFyZWQvZm9ybS9maWVsZHMvdGV4dC1maWVsZC50c3giXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgdXNlU3RvcmUgfSBmcm9tICdAdGFuc3RhY2svcmVhY3QtZm9ybSdcbmltcG9ydCB7IHVzZUZpZWxkQ29udGV4dCB9IGZyb20gJy4uL2luZGV4J1xuaW1wb3J0IHsgRmllbGRFcnJvcnMsIEZpZWxkSW5wdXRXcmFwLCBGb3JtRmllbGQsIEZvcm1MYWJlbCB9IGZyb20gJy4uL3VpJ1xuXG5leHBvcnQgZnVuY3Rpb24gVGV4dEZpZWxkKHtcbiAgY2xhc3NOYW1lLFxuICBsYWJ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MsUUFBVUEsTUFBTUYsSUFBSTtJQUV4RCxNQUFNRyxXQUFXSCxLQUFLSSxTQUFTLElBQUlKLEtBQUtLLE1BQU0sQ0FBQ0MsTUFBTSxHQUFHO0lBRXhELHFCQUNFLE1BQUNmO1FBQVVnQixJQUFJUixNQUFNUyxJQUFJO1FBQUVkLFdBQVdBO1FBQVdTLFVBQVVBOzswQkFDekQsS0FBQ1g7Z0JBQVVHLE9BQU9BO2dCQUFPYyxTQUFTVixNQUFNUyxJQUFJO2dCQUFFWixVQUFVQTs7MEJBQ3hELE1BQUNOOztrQ0FDQyxLQUFDb0I7d0JBQ0NaLGNBQWNBO3dCQUNkRCxNQUFNQTt3QkFDTlUsSUFBSVIsTUFBTVMsSUFBSTt3QkFDZEEsTUFBTVQsTUFBTVMsSUFBSTt3QkFDaEJHLE9BQU9aLE1BQU1HLEtBQUssQ0FBQ1MsS0FBSzt3QkFDeEJDLFVBQVUsQ0FBQ0MsSUFBTWQsTUFBTWUsWUFBWSxDQUFDRCxFQUFFRSxNQUFNLENBQUNKLEtBQUs7d0JBQ2xESyxRQUFRakIsTUFBTWtCLFVBQVU7d0JBQ3hCckIsVUFBVUE7d0JBQ1ZGLFdBQVU7O2tDQUVaLEtBQUNMO3dCQUFZVyxNQUFNQTs7Ozs7O0FBSTNCIn0=
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { TextField } from './fields/text-field';
|
|
2
|
+
declare const fieldContext: import("react").Context<import("@tanstack/react-form").AnyFieldApi>, formContext: import("react").Context<import("@tanstack/react-form").AnyFormApi>, useFieldContext: <TData>() => import("@tanstack/react-form").FieldApi<any, string, TData, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any>, useFormContext: () => import("@tanstack/react-form").ReactFormExtendedApi<Record<string, never>, any, any, any, any, any, any, any, any, any>;
|
|
3
|
+
declare const useAppForm: <TFormData, TOnMount extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnChange extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnChangeAsync extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnBlurAsync extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta>(props: import("@tanstack/react-form").FormOptions<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnServer, TSubmitMeta>) => import("@tanstack/react-form").FormApi<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnServer, TSubmitMeta> & import("@tanstack/react-form").ReactFormApi<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnServer, TSubmitMeta> & NoInfer<{
|
|
4
|
+
readonly Submit: import("react").FC<{
|
|
5
|
+
label: string;
|
|
6
|
+
loadingLabel: string;
|
|
7
|
+
}>;
|
|
8
|
+
}> & {
|
|
9
|
+
AppField: import("@tanstack/react-form").FieldComponent<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnServer, TSubmitMeta, NoInfer<{
|
|
10
|
+
readonly TextField: typeof TextField;
|
|
11
|
+
}>>;
|
|
12
|
+
AppForm: import("react").ComponentType<import("react").PropsWithChildren>;
|
|
13
|
+
}, withForm: <TFormData, TOnMount extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnChange extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnChangeAsync extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnBlur extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnBlurAsync extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnSubmit extends import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined, TOnSubmitAsync extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TOnServer extends import("@tanstack/react-form").FormAsyncValidateOrFn<TFormData> | undefined, TSubmitMeta, TRenderProps extends Record<string, unknown> = {}>({ render, props, }: import("@tanstack/react-form").WithFormProps<TFormData, TOnMount, TOnChange, TOnChangeAsync, TOnBlur, TOnBlurAsync, TOnSubmit, TOnSubmitAsync, TOnServer, TSubmitMeta, {
|
|
14
|
+
readonly TextField: typeof TextField;
|
|
15
|
+
}, {
|
|
16
|
+
readonly Submit: import("react").FC<{
|
|
17
|
+
label: string;
|
|
18
|
+
loadingLabel: string;
|
|
19
|
+
}>;
|
|
20
|
+
}, TRenderProps>) => (props: import("react").PropsWithChildren<NoInfer<[unknown] extends [TRenderProps] ? any : TRenderProps> & {
|
|
21
|
+
form: import("@tanstack/react-form").FormApi<[unknown] extends [TFormData] ? any : TFormData, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnMount] ? [TOnMount] extends [TOnMount & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnMount : TOnMount, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnChange] ? [TOnChange] extends [TOnChange & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnChange : TOnChange, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnChangeAsync] ? [TOnChangeAsync] extends [TOnChangeAsync & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnChangeAsync : TOnChangeAsync, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnBlur] ? [TOnBlur] extends [TOnBlur & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlur : TOnBlur, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnBlurAsync] ? [TOnBlurAsync] extends [TOnBlurAsync & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlurAsync : TOnBlurAsync, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnSubmit] ? [TOnSubmit] extends [TOnSubmit & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmit : TOnSubmit, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnSubmitAsync] ? [TOnSubmitAsync] extends [TOnSubmitAsync & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmitAsync : TOnSubmitAsync, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnServer] ? [TOnServer] extends [TOnServer & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnServer : TOnServer, [unknown] extends [TSubmitMeta] ? any : TSubmitMeta> & import("@tanstack/react-form").ReactFormApi<[unknown] extends [TFormData] ? any : TFormData, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnMount] ? [TOnMount] extends [TOnMount & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnMount : TOnMount, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnChange] ? [TOnChange] extends [TOnChange & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnChange : TOnChange, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnChangeAsync] ? [TOnChangeAsync] extends [TOnChangeAsync & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnChangeAsync : TOnChangeAsync, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnBlur] ? [TOnBlur] extends [TOnBlur & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlur : TOnBlur, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnBlurAsync] ? [TOnBlurAsync] extends [TOnBlurAsync & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlurAsync : TOnBlurAsync, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnSubmit] ? [TOnSubmit] extends [TOnSubmit & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmit : TOnSubmit, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnSubmitAsync] ? [TOnSubmitAsync] extends [TOnSubmitAsync & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmitAsync : TOnSubmitAsync, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnServer] ? [TOnServer] extends [TOnServer & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnServer : TOnServer, [unknown] extends [TSubmitMeta] ? any : TSubmitMeta> & NoInfer<{
|
|
22
|
+
readonly Submit: import("react").FC<{
|
|
23
|
+
label: string;
|
|
24
|
+
loadingLabel: string;
|
|
25
|
+
}>;
|
|
26
|
+
}> & {
|
|
27
|
+
AppField: import("@tanstack/react-form").FieldComponent<[unknown] extends [TFormData] ? any : TFormData, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnMount] ? [TOnMount] extends [TOnMount & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnMount : TOnMount, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnChange] ? [TOnChange] extends [TOnChange & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnChange : TOnChange, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnChangeAsync] ? [TOnChangeAsync] extends [TOnChangeAsync & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnChangeAsync : TOnChangeAsync, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnBlur] ? [TOnBlur] extends [TOnBlur & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlur : TOnBlur, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnBlurAsync] ? [TOnBlurAsync] extends [TOnBlurAsync & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnBlurAsync : TOnBlurAsync, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnSubmit] ? [TOnSubmit] extends [TOnSubmit & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmit : TOnSubmit, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnSubmitAsync] ? [TOnSubmitAsync] extends [TOnSubmitAsync & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnSubmitAsync : TOnSubmitAsync, [import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined] extends [TOnServer] ? [TOnServer] extends [TOnServer & (import("@tanstack/react-form").FormValidateOrFn<TFormData> | undefined)] ? any : TOnServer : TOnServer, [unknown] extends [TSubmitMeta] ? any : TSubmitMeta, NoInfer<{
|
|
28
|
+
readonly TextField: typeof TextField;
|
|
29
|
+
}>>;
|
|
30
|
+
AppForm: import("react").ComponentType<import("react").PropsWithChildren>;
|
|
31
|
+
};
|
|
32
|
+
}>) => import("react").JSX.Element;
|
|
33
|
+
export { useAppForm, withForm, fieldContext, formContext, useFieldContext, useFormContext };
|
|
34
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/shared/form/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAG/C,QAAA,MAAQ,YAAY,uEAAE,WAAW,sEAAE,eAAe,4JAAE,cAAc,+HAA6B,CAAA;AAE/F,QAAA,MAAQ,UAAU;;;;;;;;;;GAAE,QAAQ;;;;;;;;;;;;;;;;;;;kCAS1B,CAAA;AAEF,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { createFormHookContexts, createFormHook } from "@tanstack/react-form";
|
|
2
|
+
import { TextField } from "./fields/text-field";
|
|
3
|
+
import { Submit } from "./components/submit";
|
|
4
|
+
const { fieldContext, formContext, useFieldContext, useFormContext } = createFormHookContexts();
|
|
5
|
+
const { useAppForm, withForm } = createFormHook({
|
|
6
|
+
fieldContext,
|
|
7
|
+
formContext,
|
|
8
|
+
fieldComponents: {
|
|
9
|
+
TextField
|
|
10
|
+
},
|
|
11
|
+
formComponents: {
|
|
12
|
+
Submit
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
export { useAppForm, withForm, fieldContext, formContext, useFieldContext, useFormContext };
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9zaGFyZWQvZm9ybS9pbmRleC50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBjcmVhdGVGb3JtSG9va0NvbnRleHRzLCBjcmVhdGVGb3JtSG9vayB9IGZyb20gJ0B0YW5zdGFjay9yZWFjdC1mb3JtJ1xuaW1wb3J0IHsgVGV4dEZpZWxkIH0gZnJvbSAnLi9maWVsZHMvdGV4dC1maWVsZCdcbmltcG9ydCB7IFN1Ym1pdCB9IGZyb20gJy4vY29tcG9uZW50cy9zdWJtaXQnXG5cbmNvbnN0IHsgZmllbGRDb250ZXh0LCBmb3JtQ29udGV4dCwgdXNlRmllbGRDb250ZXh0LCB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O0FBQ0Y7QUFFQSxTQUFTSyxVQUFVLEVBQUVDLFFBQVEsRUFBRUwsWUFBWSxFQUFFQyxXQUFXLEVBQUVDLGVBQWUsRUFBRUMsY0FBYyxHQUFFIn0=
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { type ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
import './index.scss';
|
|
3
|
+
type Props = ComponentPropsWithoutRef<'div'> & {
|
|
4
|
+
description?: React.ReactNode | string;
|
|
5
|
+
heading: string;
|
|
6
|
+
};
|
|
7
|
+
declare const FormHeader: React.FC<Props>;
|
|
8
|
+
export { FormHeader };
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared/form/ui/header/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,wBAAwB,EAAE,MAAM,OAAO,CAAA;AAE5D,OAAO,cAAc,CAAA;AAIrB,KAAK,KAAK,GAAG,wBAAwB,CAAC,KAAK,CAAC,GAAG;IAC7C,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAA;IACtC,OAAO,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAW/B,CAAA;AAED,OAAO,EAAE,UAAU,EAAE,CAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import "./index.scss";
|
|
4
|
+
const baseClass = 'form-header';
|
|
5
|
+
const FormHeader = ({ description, heading, ...props })=>{
|
|
6
|
+
if (!heading) {
|
|
7
|
+
return null;
|
|
8
|
+
}
|
|
9
|
+
return /*#__PURE__*/ _jsxs("div", {
|
|
10
|
+
className: baseClass,
|
|
11
|
+
...props,
|
|
12
|
+
children: [
|
|
13
|
+
/*#__PURE__*/ _jsx("h1", {
|
|
14
|
+
children: heading
|
|
15
|
+
}),
|
|
16
|
+
Boolean(description) && /*#__PURE__*/ _jsx("p", {
|
|
17
|
+
children: description
|
|
18
|
+
})
|
|
19
|
+
]
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
export { FormHeader };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9zaGFyZWQvZm9ybS91aS9oZWFkZXIvaW5kZXgudHN4Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBSZWFjdCwgeyB0eXBlIENvbXBvbmVudFByb3BzV2l0aG91dFJlZiB9IGZyb20gJ3JlYWN0J1xuXG5pbXBvcnQgJy4vaW5kZXguc2NzcydcblxuY29uc3QgYmFzZUNsYXNzID0gJ2Zvcm0taGVhZGVyJ1xuXG50eXBlIFByb3BzID0gQ29tcG9uZW50UHJvcHNXaXRob3V0UmVmPCdkaXYnPiAmIHtcbiAgZGVzY3JpcHRpb24/OiBSZWFjdC5SZWFjdE5vZGUgfCBzdHJpbmdcbiAgaGVhZGluZzogc3RyaW5nXG59XG5cbmNvbnN0IEZvcm1IZWFkZXI6IFJlYWN0LkZDPFByb3BzPiA9ICh7IGRlc2NyaXB0aW9uLCBoZWFkaW5nLCAuLi5wcm9wcyB9KSA9PiB7XG4gIGlmICghaGVhZGluZykge1xuICAgIHJldHVybiBudWxsXG4gIH1cblxuICByZXR1cm4gKFxuICAgIDxkaXYgY2xhc3NOYW1lPXtiYXNlQ2xhc3N9IHsuLi5wcm9wc30+XG4gICAgICA8aDE+e2hlYWRpbmd9PC9oMT5cbiAgICAgIHtCb29sZWFuKGRlc2NyaXB0aW9uKSAmJiA8cD57ZGVzY3JpcHRpb259PC9wPn1cbiAgICA8L2Rpdj5cbiAgKVxufVxuXG5leHBvcnQgeyBGb3JtSGVhZGVyIH1cbiJdLCJuYW1lcyI6WyJSZWFjdCIsImJhc2VDbGFzcyIsIkZvcm1IZWFkZXIiLCJkZXNjcmlwdGlvbiIsImhlYWRpbmciLCJwcm9wcyIsImRpdiIsImNsYXNzTmFtZSIsImgxIiwiQm9vbGVhbiIsInAiXSwibWFwcGluZ3MiOiI7QUFBQSxPQUFPQSxXQUE4QyxRQUFPO0FBRTVELE9BQU8sZUFBYztBQUVyQixNQUFNQyxZQUFZO0FBT2xCLE1BQU1DLGFBQThCLENBQUMsRUFBRUMsV0FBVyxFQUFFQyxPQUFPLEVBQUUsR0FBR0MsT0FBTztJQUNyRSxJQUFJLENBQUNELFNBQVM7UUFDWixPQUFPO0lBQ1Q7SUFFQSxxQkFDRSxNQUFDRTtRQUFJQyxXQUFXTjtRQUFZLEdBQUdJLEtBQUs7OzBCQUNsQyxLQUFDRzswQkFBSUo7O1lBQ0pLLFFBQVFOLDhCQUFnQixLQUFDTzswQkFBR1A7Ozs7QUFHbkM7QUFFQSxTQUFTRCxVQUFVLEdBQUUifQ==
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React, { type ComponentPropsWithoutRef, type ReactNode } from 'react';
|
|
2
|
+
import type { AnyFieldMeta } from '@tanstack/react-form';
|
|
3
|
+
import './index.scss';
|
|
4
|
+
type FormFieldProps = ComponentPropsWithoutRef<'div'> & {
|
|
5
|
+
hasError?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const FormField: React.FC<FormFieldProps>;
|
|
8
|
+
type FormLabelProps = ComponentPropsWithoutRef<'label'> & {
|
|
9
|
+
label: ReactNode;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare const FormLabel: React.FC<FormLabelProps>;
|
|
13
|
+
type FieldErrorsProps = {
|
|
14
|
+
meta: AnyFieldMeta;
|
|
15
|
+
className?: string;
|
|
16
|
+
};
|
|
17
|
+
export declare const FieldErrors: ({ meta, className }: FieldErrorsProps) => React.JSX.Element | null;
|
|
18
|
+
type FormErrorProps = {
|
|
19
|
+
errors?: string[];
|
|
20
|
+
className?: string;
|
|
21
|
+
};
|
|
22
|
+
declare const FormErrors: React.FC<FormErrorProps>;
|
|
23
|
+
type FormProps = ComponentPropsWithoutRef<'form'>;
|
|
24
|
+
declare const Form: React.FC<FormProps>;
|
|
25
|
+
type FormInputWrapProps = ComponentPropsWithoutRef<'div'>;
|
|
26
|
+
declare const FormInputWrap: React.FC<FormInputWrapProps>;
|
|
27
|
+
type FieldInputWrapProps = ComponentPropsWithoutRef<'div'>;
|
|
28
|
+
declare const FieldInputWrap: React.FC<FieldInputWrapProps>;
|
|
29
|
+
export type { FormFieldProps, FormLabelProps, FormErrorProps, FormProps, FormInputWrapProps };
|
|
30
|
+
export { FormField, FormLabel, FormErrors, Form, FormInputWrap, FieldInputWrap };
|
|
31
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/form/ui/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,KAAK,wBAAwB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAA;AAE5E,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAA;AAGxD,OAAO,cAAc,CAAA;AAErB,KAAK,cAAc,GAAG,wBAAwB,CAAC,KAAK,CAAC,GAAG;IACtD,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAIvC,CAAA;AAED,KAAK,cAAc,GAAG,wBAAwB,CAAC,OAAO,CAAC,GAAG;IACxD,KAAK,EAAE,SAAS,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,QAAA,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAKvC,CAAA;AAED,KAAK,gBAAgB,GAAG;IACtB,IAAI,EAAE,YAAY,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,eAAO,MAAM,WAAW,GAAI,qBAAqB,gBAAgB,6BAShE,CAAA;AAED,KAAK,cAAc,GAAG;IACpB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA;AAED,QAAA,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAK/B,CAAA;AAEV,KAAK,SAAS,GAAG,wBAAwB,CAAC,MAAM,CAAC,CAAA;AAEjD,QAAA,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAI7B,CAAA;AAED,KAAK,kBAAkB,GAAG,wBAAwB,CAAC,KAAK,CAAC,CAAA;AAEzD,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAI/C,CAAA;AAED,KAAK,mBAAmB,GAAG,wBAAwB,CAAC,KAAK,CAAC,CAAA;AAE1D,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAIjD,CAAA;AAED,YAAY,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAA;AAC7F,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,aAAa,EAAE,cAAc,EAAE,CAAA"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
3
|
+
import clsx from "clsx";
|
|
4
|
+
import { Tooltip } from "@payloadcms/ui/elements/Tooltip";
|
|
5
|
+
import "./index.scss";
|
|
6
|
+
const FormField = ({ children, hasError, className, ...rest })=>/*#__PURE__*/ _jsx("div", {
|
|
7
|
+
className: clsx('field-type', className, {
|
|
8
|
+
error: hasError
|
|
9
|
+
}),
|
|
10
|
+
...rest,
|
|
11
|
+
children: children
|
|
12
|
+
});
|
|
13
|
+
const FormLabel = ({ label, required = false, className, ...rest })=>/*#__PURE__*/ _jsxs("label", {
|
|
14
|
+
className: clsx('field-label', className),
|
|
15
|
+
...rest,
|
|
16
|
+
children: [
|
|
17
|
+
label,
|
|
18
|
+
required && /*#__PURE__*/ _jsx("span", {
|
|
19
|
+
className: "required",
|
|
20
|
+
children: "*"
|
|
21
|
+
})
|
|
22
|
+
]
|
|
23
|
+
});
|
|
24
|
+
export const FieldErrors = ({ meta, className })=>{
|
|
25
|
+
if (!meta.isTouched) return null;
|
|
26
|
+
const error = meta.errors.at(0)?.message || null;
|
|
27
|
+
return /*#__PURE__*/ _jsx(Tooltip, {
|
|
28
|
+
alignCaret: "right",
|
|
29
|
+
className: clsx('field-error', className),
|
|
30
|
+
show: !!error,
|
|
31
|
+
delay: 0,
|
|
32
|
+
staticPositioning: true,
|
|
33
|
+
children: error
|
|
34
|
+
});
|
|
35
|
+
};
|
|
36
|
+
const FormErrors = ({ errors, className })=>errors ? /*#__PURE__*/ _jsx(Tooltip, {
|
|
37
|
+
alignCaret: "right",
|
|
38
|
+
className: clsx('field-error', className),
|
|
39
|
+
delay: 0,
|
|
40
|
+
staticPositioning: true,
|
|
41
|
+
children: errors.join(', ')
|
|
42
|
+
}) : null;
|
|
43
|
+
const Form = ({ children, className, ...rest })=>/*#__PURE__*/ _jsx("form", {
|
|
44
|
+
className: clsx('form', className),
|
|
45
|
+
...rest,
|
|
46
|
+
children: children
|
|
47
|
+
});
|
|
48
|
+
const FormInputWrap = ({ children, className, ...rest })=>/*#__PURE__*/ _jsx("div", {
|
|
49
|
+
className: `${className}__inputWrap`,
|
|
50
|
+
...rest,
|
|
51
|
+
children: children
|
|
52
|
+
});
|
|
53
|
+
const FieldInputWrap = ({ children, className, ...rest })=>/*#__PURE__*/ _jsx("div", {
|
|
54
|
+
className: clsx('field-type__wrap', className),
|
|
55
|
+
...rest,
|
|
56
|
+
children: children
|
|
57
|
+
});
|
|
58
|
+
export { FormField, FormLabel, FormErrors, Form, FormInputWrap, FieldInputWrap };
|
|
59
|
+
|
|
60
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9zaGFyZWQvZm9ybS91aS9pbmRleC50c3giXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IFJlYWN0LCB7IHR5cGUgQ29tcG9uZW50UHJvcHNXaXRob3V0UmVmLCB0eXBlIFJlYWN0Tm9kZSB9IGZyb20gJ3JlYWN0J1xuaW1wb3J0IGNsc3ggZnJvbSAnY2xzeCdcbmltcG9ydCB0eXBlIHsgQW55RmllbGRNZXRhIH0gZnJvbSAnQHRhbnN0YWNrL3JlYWN0LWZvcm0nXG5pbXBvcnQgeyBUb29sdGlwIH0gZnJvbSAnQHBheWxvYWRjbXMvdWkvZWxlbWVudHMvVG9vbHRpcCdcblxuaW1wb3J0ICcuL2luZGV4LnNjc3MnXG5cbnR5cGUgRm9ybUZpZWxkUHJvcHMgPSBDb21wb25lbnRQcm9wc1dpdGhvdXRSZWY8J2Rpdic+ICYge1xuICBoYXNFcnJvcj86IGJvb2xlYW5cbn1cblxuY29uc3QgRm9ybUZpZWxkOiBSZWFjdC5GQzxGb3JtRmllbGRQcm9wcz4gPSAoeyBjaGlsZHJlbiwgaGFzRXJyb3IsIGNsYXNzTmFtZSwgLi4ucmVzdCB9KSA9PiAoXG4gIDxkaXYgY2xhc3NOYW1lPXtjbHN4KCdmaWVsZC10eXBlJywgY2xhc3NOYW1lLCB7IGVycm9yOiBoYXNFcnJvciB9KX0gey4uLnJlc3R9PlxuICAgIHtjaGlsZHJlbn1cbiAgPC9kaXY+XG4pXG5cbnR5cGUgRm9ybUxhYmVsUHJvcHMgPSBDb21wb25lbnRQcm9wc1dpdGhvdXRSZWY8J2xhYmVsJz4gJiB7XG4gIGxhYmVsOiBSZWFjdE5vZGV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UFXTCxLQUFLLFFBQVFLO1FBQWEsR0FBR0MsSUFBSTtrQkFDL0NIOztBQU1MLE1BQU13QixnQkFBOEMsQ0FBQyxFQUFFeEIsUUFBUSxFQUFFRSxTQUFTLEVBQUUsR0FBR0MsTUFBTSxpQkFDbkYsS0FBQ0M7UUFBSUYsV0FBVyxHQUFHQSxVQUFVLFdBQVcsQ0FBQztRQUFHLEdBQUdDLElBQUk7a0JBQ2hESDs7QUFNTCxNQUFNeUIsaUJBQWdELENBQUMsRUFBRXpCLFFBQVEsRUFBRUUsU0FBUyxFQUFFLEdBQUdDLE1BQU0saUJBQ3JGLEtBQUNDO1FBQUlGLFdBQVdMLEtBQUssb0JBQW9CSztRQUFhLEdBQUdDLElBQUk7a0JBQzFESDs7QUFLTCxTQUFTRCxTQUFTLEVBQUVPLFNBQVMsRUFBRWMsVUFBVSxFQUFFRSxJQUFJLEVBQUVFLGFBQWEsRUFBRUMsY0FBYyxHQUFFIn0=
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/shared/index.ts"],"names":[],"mappings":"AAAA,cAAc,oCAAoC,CAAA;AAClD,cAAc,uCAAuC,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * from "./payload/fields/field-copy-button";
|
|
2
|
+
export * from "./payload/fields/generate-uuid-button";
|
|
3
|
+
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9zaGFyZWQvaW5kZXgudHMiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9wYXlsb2FkL2ZpZWxkcy9maWVsZC1jb3B5LWJ1dHRvbidcbmV4cG9ydCAqIGZyb20gJy4vcGF5bG9hZC9maWVsZHMvZ2VuZXJhdGUtdXVpZC1idXR0b24nXG4iXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxxQ0FBb0M7QUFDbEQsY0FBYyx3Q0FBdUMifQ==
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
.field-copy-text__button-wrapper {
|
|
2
|
+
position: absolute;
|
|
3
|
+
right: 0;
|
|
4
|
+
top: 0;
|
|
5
|
+
height: 100%;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.field-copy-text__button {
|
|
9
|
+
margin-block: 0;
|
|
10
|
+
height: 100%;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.field-copy-text__button:focus {
|
|
14
|
+
background-color: transparent;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.field-copy-text__tooltip {
|
|
18
|
+
position: absolute;
|
|
19
|
+
bottom: 100%;
|
|
20
|
+
right: 50%;
|
|
21
|
+
transform: translateX(50%) translateY(5px);
|
|
22
|
+
background-color: var(--theme-elevation-800);
|
|
23
|
+
color: var(--theme-elevation-0);
|
|
24
|
+
padding: 2px 8px;
|
|
25
|
+
border-radius: var(--style-radius-m);
|
|
26
|
+
font-size: 13px;
|
|
27
|
+
opacity: 0;
|
|
28
|
+
pointer-events: none;
|
|
29
|
+
transition: all 0.2s ease;
|
|
30
|
+
z-index: 3;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.field-copy-text__tooltip[data-visible='true'] {
|
|
34
|
+
opacity: 1;
|
|
35
|
+
transform: translateX(50%) translateY(0);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.field-copy-text__tooltip::after {
|
|
39
|
+
content: '';
|
|
40
|
+
position: absolute;
|
|
41
|
+
top: 100%;
|
|
42
|
+
left: 50%;
|
|
43
|
+
transform: translateX(-50%);
|
|
44
|
+
border-left: 6px solid transparent;
|
|
45
|
+
border-right: 6px solid transparent;
|
|
46
|
+
border-top: 6px solid var(--theme-elevation-800);
|
|
47
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared/payload/fields/field-copy-button/index.tsx"],"names":[],"mappings":"AACA,OAAO,aAAa,CAAA;AACpB,OAAO,EAAoB,SAAS,EAAY,MAAM,gBAAgB,CAAA;AAGtE,eAAO,MAAM,eAAe,EAAE,OAAO,SAoBpC,CAAA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import "./index.css";
|
|
4
|
+
import { Button, CopyIcon, useField } from "@payloadcms/ui";
|
|
5
|
+
import { useRef, useState } from "react";
|
|
6
|
+
export const FieldCopyButton = ({ path })=>{
|
|
7
|
+
const { value } = useField({
|
|
8
|
+
path
|
|
9
|
+
});
|
|
10
|
+
const [copied, setCopied] = useState(false);
|
|
11
|
+
const buttonRef = useRef(null);
|
|
12
|
+
const handleCopy = ()=>{
|
|
13
|
+
navigator.clipboard.writeText(value);
|
|
14
|
+
setCopied(true);
|
|
15
|
+
setTimeout(()=>{
|
|
16
|
+
setCopied(false);
|
|
17
|
+
}, 2000);
|
|
18
|
+
};
|
|
19
|
+
return /*#__PURE__*/ _jsxs("div", {
|
|
20
|
+
className: "field-copy-text__button-wrapper",
|
|
21
|
+
children: [
|
|
22
|
+
/*#__PURE__*/ _jsx("div", {
|
|
23
|
+
className: "field-copy-text__tooltip",
|
|
24
|
+
"data-visible": copied,
|
|
25
|
+
children: "Copied"
|
|
26
|
+
}),
|
|
27
|
+
/*#__PURE__*/ _jsx(Button, {
|
|
28
|
+
ref: buttonRef,
|
|
29
|
+
icon: /*#__PURE__*/ _jsx(CopyIcon, {}),
|
|
30
|
+
buttonStyle: "transparent",
|
|
31
|
+
onClick: handleCopy,
|
|
32
|
+
className: "field-copy-text__button"
|
|
33
|
+
})
|
|
34
|
+
]
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL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2IsS0FBQ0Q7Z0JBQUlDLFdBQVU7Z0JBQTJCQyxnQkFBY1Y7MEJBQVE7OzBCQUdoRSxLQUFDUjtnQkFBT21CLEtBQUtUO2dCQUFXVSxvQkFBTSxLQUFDbkI7Z0JBQWFvQixhQUFZO2dCQUFjQyxTQUFTWDtnQkFBWU0sV0FBVTs7OztBQUczRyxFQUFDIn0=
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/shared/payload/fields/generate-uuid-button/index.tsx"],"names":[],"mappings":"AAEA,OAAO,aAAa,CAAA;AACpB,OAAO,EAAU,SAAS,EAAY,MAAM,gBAAgB,CAAA;AAG5D,eAAO,MAAM,kBAAkB,EAAE,OAAO,SAevC,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import "./index.css";
|
|
4
|
+
import { Button, useField } from "@payloadcms/ui";
|
|
5
|
+
import { useRef } from "react";
|
|
6
|
+
export const GenerateUuidButton = ({ path })=>{
|
|
7
|
+
const { setValue } = useField({
|
|
8
|
+
path
|
|
9
|
+
});
|
|
10
|
+
const buttonRef = useRef(null);
|
|
11
|
+
const handleGenerate = ()=>{
|
|
12
|
+
setValue(crypto.randomUUID());
|
|
13
|
+
};
|
|
14
|
+
return /*#__PURE__*/ _jsx("div", {
|
|
15
|
+
className: "generate-uuid-button-wrapper",
|
|
16
|
+
children: /*#__PURE__*/ _jsx(Button, {
|
|
17
|
+
ref: buttonRef,
|
|
18
|
+
buttonStyle: "primary",
|
|
19
|
+
onClick: handleGenerate,
|
|
20
|
+
className: "generate-uuid-button",
|
|
21
|
+
children: "Generate UUID"
|
|
22
|
+
})
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4u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mF0ZSIsImNyeXB0byIsInJhbmRvbVVVSUQiLCJkaXYiLCJjbGFzc05hbWUiLCJyZWYiLCJidXR0b25TdHlsZSIsIm9uQ2xpY2siXSwibWFwcGluZ3MiOiJBQUFBOztBQUVBLE9BQU8sY0FBYTtBQUNwQixTQUFTQSxNQUFNLEVBQWFDLFFBQVEsUUFBUSxpQkFBZ0I7QUFDNUQsU0FBU0MsTUFBTSxRQUFRLFFBQU87QUFFOUIsT0FBTyxNQUFNQyxxQkFBdUMsQ0FBQyxFQUFFQyxJQUFJLEVBQUU7SUFDM0QsTUFBTSxFQUFFQyxRQUFRLEVBQUUsR0FBR0osU0FBUztRQUFFRztJQUFLO0lBQ3JDLE1BQU1FLFlBQVlKLE9BQTBCO0lBRTVDLE1BQU1LLGlCQUFpQjtRQUNyQkYsU0FBU0csT0FBT0MsVUFBVTtJQUM1QjtJQUVBLHFCQUNFLEtBQUNDO1FBQUlDLFdBQVU7a0JBQ2IsY0FBQSxLQUFDWDtZQUFPWSxLQUFLTjtZQUFXTyxhQUFZO1lBQVVDLFNBQVNQO1lBQWdCSSxXQUFVO3NCQUF1Qjs7O0FBSzlHLEVBQUMifQ==
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/shared/payload/fields/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAA;AACnC,cAAc,wBAAwB,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export * from "./field-copy-button";
|
|
2
|
+
export * from "./generate-uuid-button";
|
|
3
|
+
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9zaGFyZWQvcGF5bG9hZC9maWVsZHMvaW5kZXgudHMiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9maWVsZC1jb3B5LWJ1dHRvbidcbmV4cG9ydCAqIGZyb20gJy4vZ2VuZXJhdGUtdXVpZC1idXR0b24nXG4iXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxzQkFBcUI7QUFDbkMsY0FBYyx5QkFBd0IifQ==
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"regex.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/regex.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU,QAAyF,CAAA;AAChH,eAAO,MAAM,aAAa,QAAsB,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export const emailRegex = /^(?!\.)(?!.*\.\.)([a-z0-9_'+\-\.]*)[a-z0-9_'+\-]@([a-z0-9][a-z0-9\-]*\.)+[a-z]{2,}$/i;
|
|
2
|
+
export const usernameRegex = /^[a-zA-Z0-9._-]+$/;
|
|
3
|
+
|
|
4
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9zaGFyZWQvdXRpbHMvcmVnZXgudHMiXSwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0IGNvbnN0IGVtYWlsUmVnZXggPSAvXig/IVxcLikoPyEuKlxcLlxcLikoW2EtejAtOV8nK1xcLVxcLl0qKVthLXowLTlfJytcXC1dQChbYS16MC05XVthLXowLTlcXC1dKlxcLikrW2Etel17Mix9JC9pXG5leHBvcnQgY29uc3QgdXNlcm5hbWVSZWdleCA9IC9eW2EtekEtWjAtOS5fLV0rJC9cbiJdLCJuYW1lcyI6WyJlbWFpbFJlZ2V4IiwidXNlcm5hbWVSZWdleCJdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxNQUFNQSxhQUFhLHVGQUFzRjtBQUNoSCxPQUFPLE1BQU1DLGdCQUFnQixvQkFBbUIifQ==
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
type Success<T> = {
|
|
2
|
+
data: T;
|
|
3
|
+
error: null;
|
|
4
|
+
};
|
|
5
|
+
type Failure<E> = {
|
|
6
|
+
data: null;
|
|
7
|
+
error: E;
|
|
8
|
+
};
|
|
9
|
+
type Result<T, E = Error> = Success<T> | Failure<E>;
|
|
10
|
+
export declare function tryCatch<T, E = Error>(promise: Promise<T>): Promise<Result<T, E>>;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=try-catch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"try-catch.d.ts","sourceRoot":"","sources":["../../../src/shared/utils/try-catch.ts"],"names":[],"mappings":"AAAA,KAAK,OAAO,CAAC,CAAC,IAAI;IAChB,IAAI,EAAE,CAAC,CAAA;IACP,KAAK,EAAE,IAAI,CAAA;CACZ,CAAA;AAED,KAAK,OAAO,CAAC,CAAC,IAAI;IAChB,IAAI,EAAE,IAAI,CAAA;IACV,KAAK,EAAE,CAAC,CAAA;CACT,CAAA;AAED,KAAK,MAAM,CAAC,CAAC,EAAE,CAAC,GAAG,KAAK,IAAI,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAA;AAGnD,wBAAsB,QAAQ,CAAC,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAOvF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Main wrapper function
|
|
2
|
+
export async function tryCatch(promise) {
|
|
3
|
+
try {
|
|
4
|
+
const data = await promise;
|
|
5
|
+
return {
|
|
6
|
+
data,
|
|
7
|
+
error: null
|
|
8
|
+
};
|
|
9
|
+
} catch (error) {
|
|
10
|
+
return {
|
|
11
|
+
data: null,
|
|
12
|
+
error: error
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozL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|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -61,6 +61,11 @@
|
|
|
61
61
|
"import": "./dist/authjs/index.js",
|
|
62
62
|
"types": "./dist/authjs/index.d.ts",
|
|
63
63
|
"default": "./dist/authjs/index.js"
|
|
64
|
+
},
|
|
65
|
+
"./shared/payload/fields": {
|
|
66
|
+
"import": "./dist/shared/payload/fields/index.js",
|
|
67
|
+
"types": "./dist/shared/payload/fields/index.d.ts",
|
|
68
|
+
"default": "./dist/shared/payload/fields/index.js"
|
|
64
69
|
}
|
|
65
70
|
},
|
|
66
71
|
"sideEffects": false,
|
|
@@ -94,14 +99,11 @@
|
|
|
94
99
|
"vitest": "^1.0.0"
|
|
95
100
|
},
|
|
96
101
|
"dependencies": {
|
|
102
|
+
"@tanstack/react-form": "1.4.0",
|
|
97
103
|
"@better-auth/utils": "0.2.4",
|
|
98
104
|
"@clerk/backend": "^1.25.8",
|
|
99
105
|
"@clerk/clerk-js": "^5.58.1",
|
|
100
106
|
"@clerk/nextjs": "^6.12.12",
|
|
101
|
-
"@radix-ui/react-checkbox": "1.1.4",
|
|
102
|
-
"@radix-ui/react-icons": "1.3.2",
|
|
103
|
-
"@radix-ui/react-label": "2.1.2",
|
|
104
|
-
"@radix-ui/react-slot": "1.1.2",
|
|
105
107
|
"class-variance-authority": "0.7.1",
|
|
106
108
|
"clsx": "2.1.1",
|
|
107
109
|
"jose": "^6.0.10",
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare function getAdminRoutes(custom: {
|
|
2
|
-
[key: string]: any;
|
|
3
|
-
}): {
|
|
4
|
-
readonly forgotPassword: string;
|
|
5
|
-
readonly resetPassword: string;
|
|
6
|
-
readonly login: string;
|
|
7
|
-
readonly loginRedirect: string;
|
|
8
|
-
readonly logout: string;
|
|
9
|
-
readonly createFirstAdmin: string;
|
|
10
|
-
readonly adminInvite: string;
|
|
11
|
-
readonly verifyEmail: string;
|
|
12
|
-
readonly inactivity: string;
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=get-admin-routes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-admin-routes.d.ts","sourceRoot":"","sources":["../../../../src/better-auth/plugin/helpers/get-admin-routes.ts"],"names":[],"mappings":"AAEA,wBAAgB,cAAc,CAAC,MAAM,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;CAAE;;;;;;;;;;EAG5D"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export function getAdminRoutes(custom) {
|
|
2
|
-
const typedCustom = custom;
|
|
3
|
-
return typedCustom.betterAuth.adminRoutes;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9iZXR0ZXItYXV0aC9wbHVnaW4vaGVscGVycy9nZXQtYWRtaW4tcm91dGVzLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IENvbmZpZ0FkbWluQ3VzdG9tIH0gZnJvbSBcIi4uL3R5cGVzXCI7XG5cbmV4cG9ydCBmdW5jdGlvbiBnZXRBZG1pblJvdXRlcyhjdXN0b206IHsgW2tleTogc3RyaW5nXTogYW55IH0pIHtcbiAgY29uc3QgdHlwZWRDdXN0b20gPSBjdXN0b20gYXMgQ29uZmlnQWRtaW5DdXN0b207XG4gIHJldHVybiB0eXBlZEN1c3RvbS5iZXR0ZXJBdXRoLmFkbWluUm91dGVzO1xufVxuIl0sIm5hbWVzIjpbImdldEFkbWluUm91dGVzIiwiY3VzdG9tIiwidHlwZWRDdXN0b20iLCJiZXR0ZXJBdXRoIiwiYWRtaW5Sb3V0ZXMiXSwibWFwcGluZ3MiOiJBQUVBLE9BQU8sU0FBU0EsZUFBZUMsTUFBOEI7SUFDM0QsTUFBTUMsY0FBY0Q7SUFDcEIsT0FBT0MsWUFBWUMsVUFBVSxDQUFDQyxXQUFXO0FBQzNDIn0=
|
package/dist/better-auth/plugin/lib/build-collections/users/endpoints/forgot-password.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"forgot-password.d.ts","sourceRoot":"","sources":["../../../../../../../src/better-auth/plugin/lib/build-collections/users/endpoints/forgot-password.ts"],"names":[],"mappings":"AAAA,OAAO,EAIL,QAAQ,EAKT,MAAM,SAAS,CAAC;AAkBjB,eAAO,MAAM,yBAAyB,QAAO,QA2F5C,CAAC"}
|