@mesob/auth-react 0.4.0 → 0.4.2
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/chunk-35TCGAW3.js +98 -0
- package/dist/chunk-35TCGAW3.js.map +1 -0
- package/dist/chunk-3BZC4VVD.js +36 -0
- package/dist/chunk-3BZC4VVD.js.map +1 -0
- package/dist/chunk-45UCLKH2.js +188 -0
- package/dist/chunk-45UCLKH2.js.map +1 -0
- package/dist/chunk-55BMNC4S.js +115 -0
- package/dist/chunk-55BMNC4S.js.map +1 -0
- package/dist/chunk-5F5FZMHE.js +94 -0
- package/dist/chunk-5F5FZMHE.js.map +1 -0
- package/dist/chunk-5M7I7WNH.js +31 -0
- package/dist/chunk-5M7I7WNH.js.map +1 -0
- package/dist/chunk-72YRO3A7.js +288 -0
- package/dist/chunk-72YRO3A7.js.map +1 -0
- package/dist/chunk-7KXTL6NT.js +48 -0
- package/dist/chunk-7KXTL6NT.js.map +1 -0
- package/dist/chunk-AIMD6R6U.js +466 -0
- package/dist/chunk-AIMD6R6U.js.map +1 -0
- package/dist/chunk-BGSHXIHI.js +953 -0
- package/dist/chunk-BGSHXIHI.js.map +1 -0
- package/dist/chunk-BZ42QPXE.js +271 -0
- package/dist/chunk-BZ42QPXE.js.map +1 -0
- package/dist/chunk-C26NPUPI.js +272 -0
- package/dist/chunk-C26NPUPI.js.map +1 -0
- package/dist/chunk-C2KFZ57H.js +194 -0
- package/dist/chunk-C2KFZ57H.js.map +1 -0
- package/dist/chunk-C5ZW7FD2.js +46 -0
- package/dist/chunk-C5ZW7FD2.js.map +1 -0
- package/dist/chunk-DPH2PHK3.js +32 -0
- package/dist/chunk-DPH2PHK3.js.map +1 -0
- package/dist/chunk-EQ4346FE.js +139 -0
- package/dist/chunk-EQ4346FE.js.map +1 -0
- package/dist/chunk-FAHN63DA.js +535 -0
- package/dist/chunk-FAHN63DA.js.map +1 -0
- package/dist/chunk-FFR5UHTS.js +99 -0
- package/dist/chunk-FFR5UHTS.js.map +1 -0
- package/dist/chunk-FHOLUOOZ.js +164 -0
- package/dist/chunk-FHOLUOOZ.js.map +1 -0
- package/dist/chunk-G2AW2H36.js +11 -0
- package/dist/chunk-G2AW2H36.js.map +1 -0
- package/dist/chunk-G7SCXCCM.js +89 -0
- package/dist/chunk-G7SCXCCM.js.map +1 -0
- package/dist/chunk-GP7GIUI3.js +64 -0
- package/dist/chunk-GP7GIUI3.js.map +1 -0
- package/dist/chunk-GRT6EBR6.js +93 -0
- package/dist/chunk-GRT6EBR6.js.map +1 -0
- package/dist/chunk-GXKBVCVS.js +102 -0
- package/dist/chunk-GXKBVCVS.js.map +1 -0
- package/dist/chunk-HB2RZTHS.js +338 -0
- package/dist/chunk-HB2RZTHS.js.map +1 -0
- package/dist/chunk-HOO2VLNM.js +305 -0
- package/dist/chunk-HOO2VLNM.js.map +1 -0
- package/dist/chunk-II5MLBSB.js +183 -0
- package/dist/chunk-II5MLBSB.js.map +1 -0
- package/dist/chunk-ISNNPMF7.js +95 -0
- package/dist/chunk-ISNNPMF7.js.map +1 -0
- package/dist/chunk-JB6XVST4.js +141 -0
- package/dist/chunk-JB6XVST4.js.map +1 -0
- package/dist/chunk-JUHBVG5Q.js +303 -0
- package/dist/chunk-JUHBVG5Q.js.map +1 -0
- package/dist/chunk-JZZJCBAE.js +118 -0
- package/dist/chunk-JZZJCBAE.js.map +1 -0
- package/dist/chunk-KWG4DSB5.js +55 -0
- package/dist/chunk-KWG4DSB5.js.map +1 -0
- package/dist/chunk-L4CGIO2I.js +265 -0
- package/dist/chunk-L4CGIO2I.js.map +1 -0
- package/dist/chunk-LNG736CV.js +19 -0
- package/dist/chunk-LNG736CV.js.map +1 -0
- package/dist/chunk-LSYKVFJA.js +98 -0
- package/dist/chunk-LSYKVFJA.js.map +1 -0
- package/dist/chunk-LZR4YUDV.js +107 -0
- package/dist/chunk-LZR4YUDV.js.map +1 -0
- package/dist/chunk-MELNS4QH.js +255 -0
- package/dist/chunk-MELNS4QH.js.map +1 -0
- package/dist/chunk-MS2JUZ3N.js +94 -0
- package/dist/chunk-MS2JUZ3N.js.map +1 -0
- package/dist/chunk-NEO72TMH.js +32 -0
- package/dist/chunk-NEO72TMH.js.map +1 -0
- package/dist/chunk-NJPNTAAT.js +68 -0
- package/dist/chunk-NJPNTAAT.js.map +1 -0
- package/dist/chunk-NPW7D2HZ.js +16 -0
- package/dist/chunk-NPW7D2HZ.js.map +1 -0
- package/dist/chunk-OAN4EXU4.js +310 -0
- package/dist/chunk-OAN4EXU4.js.map +1 -0
- package/dist/chunk-OFLSINVU.js +138 -0
- package/dist/chunk-OFLSINVU.js.map +1 -0
- package/dist/chunk-OHIIMUQC.js +286 -0
- package/dist/chunk-OHIIMUQC.js.map +1 -0
- package/dist/chunk-OQGJX37L.js +239 -0
- package/dist/chunk-OQGJX37L.js.map +1 -0
- package/dist/chunk-OYHH7HQG.js +65 -0
- package/dist/chunk-OYHH7HQG.js.map +1 -0
- package/dist/chunk-PSRIZMWJ.js +486 -0
- package/dist/chunk-PSRIZMWJ.js.map +1 -0
- package/dist/chunk-QNCE2B5O.js +23 -0
- package/dist/chunk-QNCE2B5O.js.map +1 -0
- package/dist/chunk-RLPZFLAS.js +23 -0
- package/dist/chunk-RLPZFLAS.js.map +1 -0
- package/dist/chunk-RT5C7IAE.js +38 -0
- package/dist/chunk-RT5C7IAE.js.map +1 -0
- package/dist/chunk-S3CXCCKL.js +272 -0
- package/dist/chunk-S3CXCCKL.js.map +1 -0
- package/dist/chunk-SOCZK4CV.js +69 -0
- package/dist/chunk-SOCZK4CV.js.map +1 -0
- package/dist/chunk-T6P7UHVP.js +34 -0
- package/dist/chunk-T6P7UHVP.js.map +1 -0
- package/dist/chunk-TFVBER3Y.js +52 -0
- package/dist/chunk-TFVBER3Y.js.map +1 -0
- package/dist/chunk-UXOZ2TME.js +104 -0
- package/dist/chunk-UXOZ2TME.js.map +1 -0
- package/dist/chunk-V2W3WPCZ.js +22 -0
- package/dist/chunk-V2W3WPCZ.js.map +1 -0
- package/dist/chunk-YZ264S2L.js +286 -0
- package/dist/chunk-YZ264S2L.js.map +1 -0
- package/dist/chunk-ZESFGO3K.js +28 -0
- package/dist/chunk-ZESFGO3K.js.map +1 -0
- package/dist/chunk-ZG6WFZHX.js +143 -0
- package/dist/chunk-ZG6WFZHX.js.map +1 -0
- package/dist/components/auth/auth-card.d.ts +3 -6
- package/dist/components/auth/auth-card.js +3 -7
- package/dist/components/auth/auth-card.js.map +1 -1
- package/dist/components/auth/auth-layout.d.ts +3 -6
- package/dist/components/auth/auth-layout.js +3 -28
- package/dist/components/auth/auth-layout.js.map +1 -1
- package/dist/components/auth/countdown.d.ts +2 -5
- package/dist/components/auth/countdown.js +5 -130
- package/dist/components/auth/countdown.js.map +1 -1
- package/dist/components/auth/forgot-password.d.ts +1 -5
- package/dist/components/auth/forgot-password.js +6 -365
- package/dist/components/auth/forgot-password.js.map +1 -1
- package/dist/components/auth/reset-password-form.d.ts +2 -5
- package/dist/components/auth/reset-password-form.js +6 -487
- package/dist/components/auth/reset-password-form.js.map +1 -1
- package/dist/components/auth/set-password.d.ts +2 -5
- package/dist/components/auth/set-password.js +7 -521
- package/dist/components/auth/set-password.js.map +1 -1
- package/dist/components/auth/sign-in.d.ts +2 -5
- package/dist/components/auth/sign-in.js +7 -561
- package/dist/components/auth/sign-in.js.map +1 -1
- package/dist/components/auth/sign-up.d.ts +2 -5
- package/dist/components/auth/sign-up.js +6 -511
- package/dist/components/auth/sign-up.js.map +1 -1
- package/dist/components/auth/verification-form.d.ts +13 -2
- package/dist/components/auth/verification-form.js +5 -217
- package/dist/components/auth/verification-form.js.map +1 -1
- package/dist/components/auth/verify-email.d.ts +2 -5
- package/dist/components/auth/verify-email.js +8 -527
- package/dist/components/auth/verify-email.js.map +1 -1
- package/dist/components/auth/verify-phone.d.ts +2 -5
- package/dist/components/auth/verify-phone.js +8 -532
- package/dist/components/auth/verify-phone.js.map +1 -1
- package/dist/components/authorization/deny.d.ts +3 -6
- package/dist/components/authorization/deny.js +4 -47
- package/dist/components/authorization/deny.js.map +1 -1
- package/dist/components/authorization/grant.d.ts +3 -6
- package/dist/components/authorization/grant.js +4 -52
- package/dist/components/authorization/grant.js.map +1 -1
- package/dist/components/error-boundary.d.ts +6 -10
- package/dist/components/error-boundary.js +4 -43
- package/dist/components/error-boundary.js.map +1 -1
- package/dist/components/iam/permission-selector.d.ts +3 -6
- package/dist/components/iam/permission-selector.js +3 -116
- package/dist/components/iam/permission-selector.js.map +1 -1
- package/dist/components/iam/permissions-page.d.ts +1 -0
- package/dist/components/iam/permissions-page.js +10 -0
- package/dist/components/iam/permissions-page.js.map +1 -0
- package/dist/components/iam/permissions.d.ts +1 -5
- package/dist/components/iam/permissions.js +5 -198
- package/dist/components/iam/permissions.js.map +1 -1
- package/dist/components/iam/role-detail-layout.d.ts +3 -6
- package/dist/components/iam/role-detail-layout.js +3 -131
- package/dist/components/iam/role-detail-layout.js.map +1 -1
- package/dist/components/iam/role-detail-page.d.ts +2 -5
- package/dist/components/iam/role-detail-page.js +3 -223
- package/dist/components/iam/role-detail-page.js.map +1 -1
- package/dist/components/iam/role-permissions-page.d.ts +2 -5
- package/dist/components/iam/role-permissions-page.js +4 -391
- package/dist/components/iam/role-permissions-page.js.map +1 -1
- package/dist/components/iam/roles-page.d.ts +1 -0
- package/dist/components/iam/roles-page.js +13 -0
- package/dist/components/iam/roles-page.js.map +1 -0
- package/dist/components/iam/roles.d.ts +1 -5
- package/dist/components/iam/roles.js +5 -218
- package/dist/components/iam/roles.js.map +1 -1
- package/dist/components/iam/sessions-page.d.ts +1 -0
- package/dist/components/iam/sessions-page.js +12 -0
- package/dist/components/iam/sessions-page.js.map +1 -0
- package/dist/components/iam/sessions.d.ts +1 -5
- package/dist/components/iam/sessions.js +5 -198
- package/dist/components/iam/sessions.js.map +1 -1
- package/dist/components/iam/tenants-page.d.ts +1 -0
- package/dist/components/iam/tenants-page.js +13 -0
- package/dist/components/iam/tenants-page.js.map +1 -0
- package/dist/components/iam/tenants.d.ts +1 -5
- package/dist/components/iam/tenants.js +5 -204
- package/dist/components/iam/tenants.js.map +1 -1
- package/dist/components/iam/users-page.d.ts +1 -0
- package/dist/components/iam/users-page.js +13 -0
- package/dist/components/iam/users-page.js.map +1 -0
- package/dist/components/iam/users.d.ts +1 -5
- package/dist/components/iam/users.js +5 -207
- package/dist/components/iam/users.js.map +1 -1
- package/dist/components/profile/account.d.ts +1 -5
- package/dist/components/profile/account.js +4 -151
- package/dist/components/profile/account.js.map +1 -1
- package/dist/components/profile/change-email-form.d.ts +1 -5
- package/dist/components/profile/change-email-form.js +9 -735
- package/dist/components/profile/change-email-form.js.map +1 -1
- package/dist/components/profile/change-password-form.d.ts +1 -5
- package/dist/components/profile/change-password-form.js +3 -262
- package/dist/components/profile/change-password-form.js.map +1 -1
- package/dist/components/profile/change-phone-form.d.ts +1 -5
- package/dist/components/profile/change-phone-form.js +10 -772
- package/dist/components/profile/change-phone-form.js.map +1 -1
- package/dist/components/profile/change-profile.d.ts +3 -7
- package/dist/components/profile/change-profile.js +2 -40
- package/dist/components/profile/change-profile.js.map +1 -1
- package/dist/components/profile/otp-verification-modal.d.ts +2 -5
- package/dist/components/profile/otp-verification-modal.js +6 -266
- package/dist/components/profile/otp-verification-modal.js.map +1 -1
- package/dist/components/profile/profile-layout.d.ts +4 -0
- package/dist/components/profile/profile-layout.js +10 -0
- package/dist/components/profile/profile-layout.js.map +1 -0
- package/dist/components/profile/request-change-email-form.d.ts +2 -5
- package/dist/components/profile/request-change-email-form.js +4 -285
- package/dist/components/profile/request-change-email-form.js.map +1 -1
- package/dist/components/profile/request-change-phone-form.d.ts +2 -5
- package/dist/components/profile/request-change-phone-form.js +5 -323
- package/dist/components/profile/request-change-phone-form.js.map +1 -1
- package/dist/components/profile/security.d.ts +1 -5
- package/dist/components/profile/security.js +15 -1508
- package/dist/components/profile/security.js.map +1 -1
- package/dist/components/profile/verify-change-email-form.d.ts +2 -5
- package/dist/components/profile/verify-change-email-form.js +7 -407
- package/dist/components/profile/verify-change-email-form.js.map +1 -1
- package/dist/components/profile/verify-change-phone-form.d.ts +2 -5
- package/dist/components/profile/verify-change-phone-form.js +7 -411
- package/dist/components/profile/verify-change-phone-form.js.map +1 -1
- package/dist/components/shared/data-table.d.ts +5 -8
- package/dist/components/shared/data-table.js +3 -79
- package/dist/components/shared/data-table.js.map +1 -1
- package/dist/components/skeletons/auth-form-skeleton.d.ts +1 -5
- package/dist/components/skeletons/auth-form-skeleton.js +3 -27
- package/dist/components/skeletons/auth-form-skeleton.js.map +1 -1
- package/dist/components/skeletons/profile-skeleton.d.ts +1 -5
- package/dist/components/skeletons/profile-skeleton.js +3 -28
- package/dist/components/skeletons/profile-skeleton.js.map +1 -1
- package/dist/components/skeletons/table-skeleton.d.ts +2 -5
- package/dist/components/skeletons/table-skeleton.js +3 -34
- package/dist/components/skeletons/table-skeleton.js.map +1 -1
- package/dist/constants/auth.error.codes.d.ts +5 -0
- package/dist/hooks/use-session-cookie-name.d.ts +1 -0
- package/dist/hooks/use-translator.d.ts +1 -0
- package/dist/index.d.ts +50 -92
- package/dist/index.js +147 -4936
- package/dist/index.js.map +1 -1
- package/dist/lib/query-options.d.ts +10 -0
- package/dist/lib/translations.d.ts +3 -0
- package/dist/pages/auth/forgot-password.d.ts +3 -7
- package/dist/pages/auth/forgot-password.js +8 -770
- package/dist/pages/auth/forgot-password.js.map +1 -1
- package/dist/pages/auth/layout.d.ts +3 -7
- package/dist/pages/auth/layout.js +13 -536
- package/dist/pages/auth/layout.js.map +1 -1
- package/dist/pages/auth/reset-password.d.ts +4 -7
- package/dist/pages/auth/reset-password.js +8 -888
- package/dist/pages/auth/reset-password.js.map +1 -1
- package/dist/pages/auth/set-password.d.ts +4 -7
- package/dist/pages/auth/set-password.js +9 -927
- package/dist/pages/auth/set-password.js.map +1 -1
- package/dist/pages/auth/sign-in.d.ts +4 -7
- package/dist/pages/auth/sign-in.js +9 -967
- package/dist/pages/auth/sign-in.js.map +1 -1
- package/dist/pages/auth/sign-up.d.ts +4 -7
- package/dist/pages/auth/sign-up.js +8 -915
- package/dist/pages/auth/sign-up.js.map +1 -1
- package/dist/pages/auth/verify-email.d.ts +4 -7
- package/dist/pages/auth/verify-email.js +10 -922
- package/dist/pages/auth/verify-email.js.map +1 -1
- package/dist/pages/auth/verify-phone.d.ts +4 -7
- package/dist/pages/auth/verify-phone.js +10 -927
- package/dist/pages/auth/verify-phone.js.map +1 -1
- package/dist/pages/iam/permissions/_components/permission-card.d.ts +6 -0
- package/dist/pages/iam/permissions/_components/permissions-data.d.ts +7 -0
- package/dist/pages/iam/permissions/_components/permissions-list.d.ts +14 -0
- package/dist/pages/iam/permissions.d.ts +1 -5
- package/dist/pages/iam/permissions.js +4 -302
- package/dist/pages/iam/permissions.js.map +1 -1
- package/dist/pages/iam/role-detail-layout.d.ts +3 -6
- package/dist/pages/iam/role-detail-layout.js +5 -132
- package/dist/pages/iam/role-detail-layout.js.map +1 -1
- package/dist/pages/iam/role-detail.d.ts +4 -7
- package/dist/pages/iam/role-detail.js +5 -224
- package/dist/pages/iam/role-detail.js.map +1 -1
- package/dist/pages/iam/role-permissions.d.ts +4 -7
- package/dist/pages/iam/role-permissions.js +6 -392
- package/dist/pages/iam/role-permissions.js.map +1 -1
- package/dist/pages/iam/role-users.d.ts +4 -7
- package/dist/pages/iam/role-users.js +9 -808
- package/dist/pages/iam/role-users.js.map +1 -1
- package/dist/pages/iam/roles/_components/role-card.d.ts +7 -0
- package/dist/pages/iam/roles/_components/role-form.d.ts +9 -0
- package/dist/pages/iam/roles/_components/role-selector.d.ts +11 -0
- package/dist/pages/iam/roles/_components/roles-data.d.ts +16 -0
- package/dist/pages/iam/roles/_components/roles-list.d.ts +15 -0
- package/dist/pages/iam/roles/users/_components/role-users-page.d.ts +5 -0
- package/dist/pages/iam/roles.d.ts +1 -5
- package/dist/pages/iam/roles.js +7 -678
- package/dist/pages/iam/roles.js.map +1 -1
- package/dist/pages/iam/sessions/_components/session-card.d.ts +6 -0
- package/dist/pages/iam/sessions/_components/sessions-data.d.ts +7 -0
- package/dist/pages/iam/sessions/_components/sessions-list.d.ts +14 -0
- package/dist/pages/iam/sessions.d.ts +1 -5
- package/dist/pages/iam/sessions.js +6 -309
- package/dist/pages/iam/sessions.js.map +1 -1
- package/dist/pages/iam/shared/navigation.d.ts +8 -0
- package/dist/pages/iam/shared/page-helpers.d.ts +12 -0
- package/dist/pages/iam/tenant-detail.d.ts +2 -5
- package/dist/pages/iam/tenant-detail.js +6 -174
- package/dist/pages/iam/tenant-detail.js.map +1 -1
- package/dist/pages/iam/tenants/_components/tenant-card.d.ts +6 -0
- package/dist/pages/iam/tenants/_components/tenant-form.d.ts +9 -0
- package/dist/pages/iam/tenants/_components/tenant-selector.d.ts +13 -0
- package/dist/pages/iam/tenants/_components/tenants-data.d.ts +12 -0
- package/dist/pages/iam/tenants/_components/tenants-list.d.ts +15 -0
- package/dist/pages/iam/tenants/tenant-detail-page-content.d.ts +5 -0
- package/dist/pages/iam/tenants.d.ts +1 -5
- package/dist/pages/iam/tenants.js +7 -604
- package/dist/pages/iam/tenants.js.map +1 -1
- package/dist/pages/iam/user-activity.d.ts +2 -5
- package/dist/pages/iam/user-activity.js +9 -838
- package/dist/pages/iam/user-activity.js.map +1 -1
- package/dist/pages/iam/user-detail-layout.d.ts +3 -6
- package/dist/pages/iam/user-detail-layout.js +5 -93
- package/dist/pages/iam/user-detail-layout.js.map +1 -1
- package/dist/pages/iam/user-detail.d.ts +2 -5
- package/dist/pages/iam/user-detail.js +5 -92
- package/dist/pages/iam/user-detail.js.map +1 -1
- package/dist/pages/iam/users/_components/bulk-invite-user-form.d.ts +6 -0
- package/dist/pages/iam/users/_components/invite-user-form.d.ts +6 -0
- package/dist/pages/iam/users/_components/invite-user-shared.d.ts +25 -0
- package/dist/pages/iam/users/_components/user-card.d.ts +6 -0
- package/dist/pages/iam/users/_components/user-detail-layout-content.d.ts +6 -0
- package/dist/pages/iam/users/_components/user-detail-page-content.d.ts +5 -0
- package/dist/pages/iam/users/_components/user-form.d.ts +9 -0
- package/dist/pages/iam/users/_components/user-selector.d.ts +12 -0
- package/dist/pages/iam/users/_components/users-data.d.ts +22 -0
- package/dist/pages/iam/users/_components/users-list.d.ts +15 -0
- package/dist/pages/iam/users/activity/_components/role-section.d.ts +3 -0
- package/dist/pages/iam/users/activity/user-activity-page-content.d.ts +5 -0
- package/dist/pages/iam/users.d.ts +1 -5
- package/dist/pages/iam/users.js +7 -1269
- package/dist/pages/iam/users.js.map +1 -1
- package/dist/pages/profile/_components/profile-sidebar.d.ts +1 -0
- package/dist/pages/profile/account.d.ts +1 -5
- package/dist/pages/profile/account.js +9 -158
- package/dist/pages/profile/account.js.map +1 -1
- package/dist/pages/profile/layout.d.ts +1 -8
- package/dist/pages/profile/layout.js +5 -128
- package/dist/pages/profile/layout.js.map +1 -1
- package/dist/pages/profile/security.d.ts +1 -5
- package/dist/pages/profile/security.js +20 -1515
- package/dist/pages/profile/security.js.map +1 -1
- package/dist/provider.d.ts +53 -0
- package/dist/{types-g9QcNRxT.d.ts → types.d.ts} +33 -12
- package/dist/utils/cookie.d.ts +2 -0
- package/dist/utils/custom-fetch.d.ts +2 -0
- package/dist/utils/handle-error.d.ts +7 -0
- package/dist/utils/normalize-phone.d.ts +1 -0
- package/package.json +4 -4
- package/dist/verification-form-ipSRTtQB.d.ts +0 -22
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,32 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
function ProfileSkeleton() {
|
|
7
|
-
return /* @__PURE__ */ jsxs("div", { className: "w-full max-w-4xl space-y-8 p-6", children: [
|
|
8
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-6", children: [
|
|
9
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-24 w-24 rounded-full" }),
|
|
10
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-2 flex-1", children: [
|
|
11
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-48" }),
|
|
12
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-64" })
|
|
13
|
-
] })
|
|
14
|
-
] }),
|
|
15
|
-
/* @__PURE__ */ jsx("div", { className: "space-y-6", children: [1, 2, 3].map((i) => /* @__PURE__ */ jsxs("div", { className: "space-y-4", children: [
|
|
16
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-6 w-32" }),
|
|
17
|
-
/* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
18
|
-
/* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center", children: [
|
|
19
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-24" }),
|
|
20
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-32" })
|
|
21
|
-
] }),
|
|
22
|
-
/* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center", children: [
|
|
23
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-24" }),
|
|
24
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-40" })
|
|
25
|
-
] })
|
|
26
|
-
] })
|
|
27
|
-
] }, i)) })
|
|
28
|
-
] });
|
|
29
|
-
}
|
|
2
|
+
import {
|
|
3
|
+
ProfileSkeleton
|
|
4
|
+
} from "../../chunk-NEO72TMH.js";
|
|
30
5
|
export {
|
|
31
6
|
ProfileSkeleton
|
|
32
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
1
|
type TableSkeletonProps = {
|
|
4
2
|
columns?: number;
|
|
5
3
|
rows?: number;
|
|
6
4
|
};
|
|
7
|
-
declare function TableSkeleton({ columns, rows }: TableSkeletonProps):
|
|
8
|
-
|
|
9
|
-
export { TableSkeleton };
|
|
5
|
+
export declare function TableSkeleton({ columns, rows }: TableSkeletonProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
@@ -1,38 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
function TableSkeleton({ columns = 5, rows = 10 }) {
|
|
7
|
-
const headerKeys = Array.from({ length: columns }, (_, i) => `header-${i}`);
|
|
8
|
-
const rowKeys = Array.from({ length: rows }, (_, i) => `row-${i}`);
|
|
9
|
-
const cellKeys = Array.from(
|
|
10
|
-
{ length: rows },
|
|
11
|
-
(_, rowIdx) => Array.from({ length: columns }, (_2, colIdx) => `cell-${rowIdx}-${colIdx}`)
|
|
12
|
-
);
|
|
13
|
-
return /* @__PURE__ */ jsxs("div", { className: "w-full space-y-4", children: [
|
|
14
|
-
/* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center", children: [
|
|
15
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-48" }),
|
|
16
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-32" })
|
|
17
|
-
] }),
|
|
18
|
-
/* @__PURE__ */ jsxs("div", { className: "flex gap-4", children: [
|
|
19
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 flex-1 max-w-sm" }),
|
|
20
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-24" }),
|
|
21
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-24" })
|
|
22
|
-
] }),
|
|
23
|
-
/* @__PURE__ */ jsxs("div", { className: "border rounded-lg overflow-hidden", children: [
|
|
24
|
-
/* @__PURE__ */ jsx("div", { className: "flex gap-4 p-4 bg-muted", children: headerKeys.map((key) => /* @__PURE__ */ jsx(Skeleton, { className: "h-4 flex-1" }, key)) }),
|
|
25
|
-
rowKeys.map((rowKey, rowIdx) => /* @__PURE__ */ jsx("div", { className: "flex gap-4 p-4 border-t", children: cellKeys[rowIdx]?.map((cellKey) => /* @__PURE__ */ jsx(Skeleton, { className: "h-4 flex-1" }, cellKey)) }, rowKey))
|
|
26
|
-
] }),
|
|
27
|
-
/* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center", children: [
|
|
28
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-32" }),
|
|
29
|
-
/* @__PURE__ */ jsxs("div", { className: "flex gap-2", children: [
|
|
30
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-20" }),
|
|
31
|
-
/* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-20" })
|
|
32
|
-
] })
|
|
33
|
-
] })
|
|
34
|
-
] });
|
|
35
|
-
}
|
|
2
|
+
import {
|
|
3
|
+
TableSkeleton
|
|
4
|
+
} from "../../chunk-RT5C7IAE.js";
|
|
36
5
|
export {
|
|
37
6
|
TableSkeleton
|
|
38
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useSessionCookieName(): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useTranslator(namespace?: string): (key: string, params?: Record<string, string | number>) => string;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,92 +1,50 @@
|
|
|
1
|
-
export { AuthCard } from './components/auth/auth-card
|
|
2
|
-
export { ForgotPassword } from './components/auth/forgot-password
|
|
3
|
-
export { ResetPasswordForm } from './components/auth/reset-password-form
|
|
4
|
-
export { SetPassword } from './components/auth/set-password
|
|
5
|
-
export { SignIn } from './components/auth/sign-in
|
|
6
|
-
export { SignUp } from './components/auth/sign-up
|
|
7
|
-
export {
|
|
8
|
-
export { VerifyEmail } from './components/auth/verify-email
|
|
9
|
-
export { VerifyPhone } from './components/auth/verify-phone
|
|
10
|
-
export { Deny } from './components/authorization/deny
|
|
11
|
-
export { Grant } from './components/authorization/grant
|
|
12
|
-
export { AuthErrorBoundary, ErrorBoundary } from './components/error-boundary
|
|
13
|
-
export { PermissionSelector } from './components/iam/permission-selector
|
|
14
|
-
export { Permissions } from './components/iam/permissions
|
|
15
|
-
export {
|
|
16
|
-
export {
|
|
17
|
-
export {
|
|
18
|
-
export {
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
};
|
|
51
|
-
type SessionContextValue = AuthState & {
|
|
52
|
-
isLoading: boolean;
|
|
53
|
-
isAuthenticated: boolean;
|
|
54
|
-
refresh: () => Promise<void>;
|
|
55
|
-
signOut: () => Promise<void>;
|
|
56
|
-
};
|
|
57
|
-
type ApiContextValue = {
|
|
58
|
-
hooks: OpenApiHooks;
|
|
59
|
-
setAuth: (auth: AuthResponse) => void;
|
|
60
|
-
clearAuth: () => void;
|
|
61
|
-
refresh: () => Promise<void>;
|
|
62
|
-
};
|
|
63
|
-
type ConfigContextValue = {
|
|
64
|
-
config: AuthClientConfig;
|
|
65
|
-
cookieName: string;
|
|
66
|
-
t: (key: string, params?: Record<string, string | number>) => string;
|
|
67
|
-
};
|
|
68
|
-
/**
|
|
69
|
-
* Get session state including user, session, and auth status.
|
|
70
|
-
* - `status`: 'loading' | 'authenticated' | 'unauthenticated'
|
|
71
|
-
* - `isLoading`: true while fetching session
|
|
72
|
-
* - `isAuthenticated`: true if user and session exist
|
|
73
|
-
*/
|
|
74
|
-
declare function useSession(): SessionContextValue;
|
|
75
|
-
declare function useApi(): ApiContextValue;
|
|
76
|
-
declare function useConfig(): ConfigContextValue;
|
|
77
|
-
/**
|
|
78
|
-
* @deprecated Cookie is httpOnly, can't be checked client-side.
|
|
79
|
-
* Use `useSession().isAuthenticated` instead.
|
|
80
|
-
*/
|
|
81
|
-
declare function useHasAuthCookie(): boolean;
|
|
82
|
-
type MesobAuthProviderProps = {
|
|
83
|
-
config: AuthClientConfig;
|
|
84
|
-
children: ReactNode;
|
|
85
|
-
};
|
|
86
|
-
declare function MesobAuthProvider({ config, children, }: MesobAuthProviderProps): react_jsx_runtime.JSX.Element;
|
|
87
|
-
|
|
88
|
-
declare const getSessionCookieName: (config: AuthClientConfig) => string;
|
|
89
|
-
|
|
90
|
-
declare function normalizePhone(phone: string): string;
|
|
91
|
-
|
|
92
|
-
export { AuthClientConfig, AuthResponse, type AuthStatus, MesobAuthProvider, Session, User, getSessionCookieName, hasAuthCookie, normalizePhone, useApi, useConfig, useHasAuthCookie, useHasAuthCookie as useIsAuthenticated, useSession, useSessionCookieName, useTranslator };
|
|
1
|
+
export { AuthCard } from './components/auth/auth-card';
|
|
2
|
+
export { ForgotPassword } from './components/auth/forgot-password';
|
|
3
|
+
export { ResetPasswordForm } from './components/auth/reset-password-form';
|
|
4
|
+
export { SetPassword } from './components/auth/set-password';
|
|
5
|
+
export { SignIn } from './components/auth/sign-in';
|
|
6
|
+
export { SignUp } from './components/auth/sign-up';
|
|
7
|
+
export { VerificationForm } from './components/auth/verification-form';
|
|
8
|
+
export { VerifyEmail } from './components/auth/verify-email';
|
|
9
|
+
export { VerifyPhone } from './components/auth/verify-phone';
|
|
10
|
+
export { Deny } from './components/authorization/deny';
|
|
11
|
+
export { Grant } from './components/authorization/grant';
|
|
12
|
+
export { AuthErrorBoundary, ErrorBoundary } from './components/error-boundary';
|
|
13
|
+
export { PermissionSelector } from './components/iam/permission-selector';
|
|
14
|
+
export { Permissions } from './components/iam/permissions';
|
|
15
|
+
export { PermissionsPage } from './components/iam/permissions-page';
|
|
16
|
+
export { RoleDetailLayout } from './components/iam/role-detail-layout';
|
|
17
|
+
export { RoleDetailPage } from './components/iam/role-detail-page';
|
|
18
|
+
export { RolePermissionsPage } from './components/iam/role-permissions-page';
|
|
19
|
+
export { Roles } from './components/iam/roles';
|
|
20
|
+
export { RolesPage } from './components/iam/roles-page';
|
|
21
|
+
export { Sessions } from './components/iam/sessions';
|
|
22
|
+
export { SessionsPage } from './components/iam/sessions-page';
|
|
23
|
+
export { Tenants } from './components/iam/tenants';
|
|
24
|
+
export { TenantsPage } from './components/iam/tenants-page';
|
|
25
|
+
export { Users } from './components/iam/users';
|
|
26
|
+
export { UsersPage } from './components/iam/users-page';
|
|
27
|
+
export { Account } from './components/profile/account';
|
|
28
|
+
export { ProfileLayout } from './components/profile/profile-layout';
|
|
29
|
+
export { Security } from './components/profile/security';
|
|
30
|
+
export type { DataTableColumn } from './components/shared/data-table';
|
|
31
|
+
export { DataTable } from './components/shared/data-table';
|
|
32
|
+
export { AuthFormSkeleton } from './components/skeletons/auth-form-skeleton';
|
|
33
|
+
export { ProfileSkeleton } from './components/skeletons/profile-skeleton';
|
|
34
|
+
export { TableSkeleton } from './components/skeletons/table-skeleton';
|
|
35
|
+
export { useSessionCookieName } from './hooks/use-session-cookie-name';
|
|
36
|
+
export { useTranslator } from './hooks/use-translator';
|
|
37
|
+
export { RoleUsersPage } from './pages/iam/roles/users/_components/role-users-page';
|
|
38
|
+
export { TenantDetailPageContent } from './pages/iam/tenants/tenant-detail-page-content';
|
|
39
|
+
export { UserDetailLayoutContent } from './pages/iam/users/_components/user-detail-layout-content';
|
|
40
|
+
export { UserDetailPageContent } from './pages/iam/users/_components/user-detail-page-content';
|
|
41
|
+
export { UserActivityPageContent } from './pages/iam/users/activity/user-activity-page-content';
|
|
42
|
+
export { ProfileSidebar } from './pages/profile/_components/profile-sidebar';
|
|
43
|
+
export type { AuthStatus } from './provider';
|
|
44
|
+
/** @deprecated Use `useSession().isAuthenticated` or `useHasAuthCookie()` instead */
|
|
45
|
+
export { hasAuthCookie, MesobAuthProvider, useApi, useConfig, useHasAuthCookie, useHasAuthCookie as useIsAuthenticated, useSession, } from './provider';
|
|
46
|
+
export type { AuthClientConfig, AuthResponse, Session, User, } from './types';
|
|
47
|
+
export { getSessionCookieName } from './utils/cookie';
|
|
48
|
+
export type { AuthErrorContent } from './utils/handle-error';
|
|
49
|
+
export { handleError } from './utils/handle-error';
|
|
50
|
+
export { normalizePhone } from './utils/normalize-phone';
|