@dragonmastery/dragoncore-vue 0.0.17 → 0.0.18
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/CreateTeamForm-LadKAxsM.js +32 -0
- package/dist/CreateTeamMemberForm-eWL__TEt.js +32 -0
- package/dist/CreditBalanceDashboard-CgRRO6MD.js +32 -0
- package/dist/CreditManagement-BBb_Xumq.js +32 -0
- package/dist/CustomerCreateSupportTicketForm-yfyeXr0V.js +32 -0
- package/dist/{CustomerSupportTicketDetailPage-CPnNMJRz.js → CustomerSupportTicketDetailPage-CthS9akm.js} +2 -2
- package/dist/{CustomerSupportTicketDetailPage-CPnNMJRz.js.map → CustomerSupportTicketDetailPage-CthS9akm.js.map} +1 -1
- package/dist/CustomerSupportTicketList-Zzsg1FtO.js +32 -0
- package/dist/{CustomerSupportTicketParent-Ex-sumQ_.js → CustomerSupportTicketParent-CqR8lF7r.js} +2 -2
- package/dist/{CustomerSupportTicketParent-C_vgUq3B.js → CustomerSupportTicketParent-iBV1KRKL.js} +2 -2
- package/dist/{CustomerSupportTicketParent-C_vgUq3B.js.map → CustomerSupportTicketParent-iBV1KRKL.js.map} +1 -1
- package/dist/CustomerSupportTicketSuccess-BPyydSLQ.js +32 -0
- package/dist/EditTeamForm-D0wZKYm2.js +32 -0
- package/dist/{EditTeamMemberForm-y4Klbm2x.js → EditTeamMemberForm-Cy8nzoUb.js} +1 -1
- package/dist/{EditTeamMemberForm-y4Klbm2x.js.map → EditTeamMemberForm-Cy8nzoUb.js.map} +1 -1
- package/dist/{EditTeamMemberForm-8CNRrEIT.js → EditTeamMemberForm-JuRGiWOn.js} +1 -1
- package/dist/{EditUserPage-0lqrgP5T.js → EditUserPage-CIRqNko-.js} +2 -2
- package/dist/{EditUserPage-0lqrgP5T.js.map → EditUserPage-CIRqNko-.js.map} +1 -1
- package/dist/{TeamNotesTab-BlmZQfCR.js → EditUserPage-Dl6d3Cuh.js} +2 -2
- package/dist/{ForgotPassword-CiEfdVT-.js → ForgotPassword-CJg_buPl.js} +2 -2
- package/dist/{ForgotPassword-CiEfdVT-.js.map → ForgotPassword-CJg_buPl.js.map} +1 -1
- package/dist/{ForgotPassword-DTqvZE3S.js → ForgotPassword-rSN-8EC4.js} +1 -1
- package/dist/{LoginForm-o4gJ0QwA.js → LoginForm-DyHmiC1I.js} +2 -2
- package/dist/{LoginForm-o4gJ0QwA.js.map → LoginForm-DyHmiC1I.js.map} +1 -1
- package/dist/{LoginForm-INwjqMmZ.js → LoginForm-YCzdrekw.js} +1 -1
- package/dist/{Logout-D8Ql8-OY.js → Logout-C6pWyTIm.js} +2 -2
- package/dist/{Logout-D8Ql8-OY.js.map → Logout-C6pWyTIm.js.map} +1 -1
- package/dist/{Logout-KA5WB93_.js → Logout-Ctc8b-B0.js} +1 -1
- package/dist/{MfaSetup-DzaJLZtx.js → MfaSetup-D80HhwEz.js} +2 -2
- package/dist/{MfaSetup-DzaJLZtx.js.map → MfaSetup-D80HhwEz.js.map} +1 -1
- package/dist/{MfaSetup-B3-QSuKe.js → MfaSetup-xNmNjSh1.js} +1 -1
- package/dist/{MfaVerify-C04XD4r3.js → MfaVerify-BEd-f6oV.js} +2 -2
- package/dist/{MfaVerify-C04XD4r3.js.map → MfaVerify-BEd-f6oV.js.map} +1 -1
- package/dist/{MfaVerify-5DOMPhdq.js → MfaVerify-C0COXH_W.js} +1 -1
- package/dist/{ResetPassword-DcVvfMU3.js → ResetPassword-4HLdgM7s.js} +2 -2
- package/dist/{ResetPassword-DcVvfMU3.js.map → ResetPassword-4HLdgM7s.js.map} +1 -1
- package/dist/{ResetPassword-rtEJreLv.js → ResetPassword-BCzMTXpT.js} +1 -1
- package/dist/{SavedFiltersPage-PfwukNXV.js → SavedFiltersPage-p0qGRIuN.js} +18 -18
- package/dist/{SavedFiltersPage-PfwukNXV.js.map → SavedFiltersPage-p0qGRIuN.js.map} +1 -1
- package/dist/{Signup-Wz2h_ayt.js → Signup-Ct0m0x78.js} +2 -2
- package/dist/{Signup-Wz2h_ayt.js.map → Signup-Ct0m0x78.js.map} +1 -1
- package/dist/{Signup-DWFxpoGA.js → Signup-DNEklGpK.js} +1 -1
- package/dist/StaffCreateSupportTicketForm-CxpKnqCq.js +32 -0
- package/dist/{StaffSupportTicketDetailPage-DDkJcKVC.js → StaffSupportTicketDetailPage-TaAPQARa.js} +3 -3
- package/dist/{StaffSupportTicketDetailPage-DDkJcKVC.js.map → StaffSupportTicketDetailPage-TaAPQARa.js.map} +1 -1
- package/dist/StaffSupportTicketList-BuKBTk2v.js +32 -0
- package/dist/{StaffSupportTicketParent-Bp5pNF45.js → StaffSupportTicketParent-KYzy4eb4.js} +2 -2
- package/dist/{StaffSupportTicketParent-Bp5pNF45.js.map → StaffSupportTicketParent-KYzy4eb4.js.map} +1 -1
- package/dist/{StaffSupportTicketParent-BiyZAW5w.js → StaffSupportTicketParent-Lkn-5u7C.js} +2 -2
- package/dist/StaffSupportTicketSuccess-BD1Xsnx1.js +32 -0
- package/dist/{SupportStaffPage-DwILSSas.js → SupportStaffPage-D_YsHZZa.js} +3 -3
- package/dist/{SupportStaffPage-DwILSSas.js.map → SupportStaffPage-D_YsHZZa.js.map} +1 -1
- package/dist/TeamAttachmentsTab-DA_MBYj8.js +32 -0
- package/dist/{TeamHistoryTab-B3DvaIzC.js → TeamHistoryTab-BQ-eXtiw.js} +2 -2
- package/dist/{TeamHistoryTab-B3DvaIzC.js.map → TeamHistoryTab-BQ-eXtiw.js.map} +1 -1
- package/dist/TeamHistoryTab-lz2ouNyP.js +4 -0
- package/dist/TeamList-T3mZJTzq.js +32 -0
- package/dist/TeamMemberList-BW4qqzC1.js +32 -0
- package/dist/TeamMemberParent-Wcht0pIz.js +32 -0
- package/dist/{TeamNotesTab-DBrJGCIe.js → TeamNotesTab-Dj12Q2gD.js} +2 -2
- package/dist/{TeamNotesTab-DBrJGCIe.js.map → TeamNotesTab-Dj12Q2gD.js.map} +1 -1
- package/dist/{EditUserPage-BgMNOa8G.js → TeamNotesTab-aGD8O49y.js} +2 -2
- package/dist/TeamParent-BkhaJwud.js +32 -0
- package/dist/UserListPage-C9zUjaOK.js +4 -0
- package/dist/{UserListPage-BGDgsd_S.js → UserListPage-D-IdlsHK.js} +2 -2
- package/dist/{UserListPage-BGDgsd_S.js.map → UserListPage-D-IdlsHK.js.map} +1 -1
- package/dist/{VerifyEmail-CG1BHGSh.js → VerifyEmail-5thal4d_.js} +1 -1
- package/dist/{VerifyEmail-CUexC8mg.js → VerifyEmail-CHfTzrHg.js} +2 -2
- package/dist/{VerifyEmail-CUexC8mg.js.map → VerifyEmail-CHfTzrHg.js.map} +1 -1
- package/dist/{VerifyEmailRequired-C35bkaXZ.js → VerifyEmailRequired-BCKREd_C.js} +2 -2
- package/dist/{VerifyEmailRequired-C35bkaXZ.js.map → VerifyEmailRequired-BCKREd_C.js.map} +1 -1
- package/dist/ViewTeam-g7WhYvsR.js +32 -0
- package/dist/ViewTeamMember-ByCSsl5k.js +32 -0
- package/dist/{convertToLocalDateTime-DOSGtMn8.js → convertToLocalDateTime-mKs5eC9T.js} +1 -1
- package/dist/{convertToLocalDateTime-DOSGtMn8.js.map → convertToLocalDateTime-mKs5eC9T.js.map} +1 -1
- package/dist/{extractRpcErrorMessage-C_UbKgHL.js → extractRpcErrorMessage-pP3v8kKE.js} +1 -1
- package/dist/{extractRpcErrorMessage-C_UbKgHL.js.map → extractRpcErrorMessage-pP3v8kKE.js.map} +1 -1
- package/dist/index.d.ts +802 -788
- package/dist/index.js +21 -21
- package/dist/{src-DYBi81fS.js → src-B5eswi_J.js} +50 -47
- package/dist/src-B5eswi_J.js.map +1 -0
- package/dist/{useBreadcrumbs-DmgSucoe.js → useBreadcrumbs-B-W-miq6.js} +1 -1
- package/dist/{useBreadcrumbs-DmgSucoe.js.map → useBreadcrumbs-B-W-miq6.js.map} +1 -1
- package/dist/useReturnUrl-BBoPnDR3.js +51 -0
- package/dist/useReturnUrl-BBoPnDR3.js.map +1 -0
- package/package.json +1 -1
- package/dist/CreateTeamForm-DH0k3ra-.js +0 -32
- package/dist/CreateTeamMemberForm-DR0krDAy.js +0 -32
- package/dist/CreditBalanceDashboard-Bh6G7DdM.js +0 -32
- package/dist/CreditManagement-BGqIkJf8.js +0 -32
- package/dist/CustomerCreateSupportTicketForm-DROOc8QU.js +0 -32
- package/dist/CustomerSupportTicketList-BdCyjYTK.js +0 -32
- package/dist/CustomerSupportTicketSuccess-BiccWyEb.js +0 -32
- package/dist/EditTeamForm-COtlNY2k.js +0 -32
- package/dist/StaffCreateSupportTicketForm-Cs3puA0j.js +0 -32
- package/dist/StaffSupportTicketList-B3HBQJ9r.js +0 -32
- package/dist/StaffSupportTicketSuccess-CegCdk-v.js +0 -32
- package/dist/TeamAttachmentsTab-B6_qHPKJ.js +0 -32
- package/dist/TeamHistoryTab-HXc3zqhQ.js +0 -4
- package/dist/TeamList-DrMqaMvI.js +0 -32
- package/dist/TeamMemberList-CEV6-g3t.js +0 -32
- package/dist/TeamMemberParent-D-MnEdRq.js +0 -32
- package/dist/TeamParent-Dw6Njuup.js +0 -32
- package/dist/UserListPage-BZp9fGeT.js +0 -4
- package/dist/ViewTeam-D9PDDpY6.js +0 -32
- package/dist/ViewTeamMember-sJb79wUy.js +0 -32
- package/dist/src-DYBi81fS.js.map +0 -1
- package/dist/useReturnUrl-DobHOKp3.js +0 -23
- package/dist/useReturnUrl-DobHOKp3.js.map +0 -1
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import "./useRpcAuth-SgNzCAPa.js";
|
|
2
|
+
import "./useQueryCache-DIGf3fCM.js";
|
|
3
|
+
import "./useMutation-DzRSXPB1.js";
|
|
4
|
+
import "./useQuery-bvJabe9Q.js";
|
|
5
|
+
import { ct as TeamParent_default } from "./src-B5eswi_J.js";
|
|
6
|
+
import "./AppLink-CHMMrSFI.js";
|
|
7
|
+
import "./TimelineSystemEvent-CBwUl5G8.js";
|
|
8
|
+
import "./TeamMembersTab-4gmnP9sD.js";
|
|
9
|
+
import "./Appearance-BfPdKMXw.js";
|
|
10
|
+
import "./useBreadcrumbs-B-W-miq6.js";
|
|
11
|
+
import "./EditTeamMemberForm-Cy8nzoUb.js";
|
|
12
|
+
import "./TeamHistoryTab-BQ-eXtiw.js";
|
|
13
|
+
import "./UserProfilePage-DMwDVgXa.js";
|
|
14
|
+
import "./ChangePasswordPage-D2Ci00Sh.js";
|
|
15
|
+
import "./TeamNotesTab-Dj12Q2gD.js";
|
|
16
|
+
import "./CustomerSupportTicketParent-iBV1KRKL.js";
|
|
17
|
+
import "./SupportTicketDevLifecycleBadge-B2NysMAj.js";
|
|
18
|
+
import "./StaffSupportTicketParent-KYzy4eb4.js";
|
|
19
|
+
import "./LoginForm-DyHmiC1I.js";
|
|
20
|
+
import "./Signup-Ct0m0x78.js";
|
|
21
|
+
import "./ForgotPassword-CJg_buPl.js";
|
|
22
|
+
import "./ResetPassword-4HLdgM7s.js";
|
|
23
|
+
import "./Logout-C6pWyTIm.js";
|
|
24
|
+
import "./mfaSchema-_vbG9jiT.js";
|
|
25
|
+
import "./MfaSetup-D80HhwEz.js";
|
|
26
|
+
import "./MfaVerify-BEd-f6oV.js";
|
|
27
|
+
import "./VerifyEmail-CHfTzrHg.js";
|
|
28
|
+
import "./UserListPage-D-IdlsHK.js";
|
|
29
|
+
import "./CreateUserPage-DbT_l32W.js";
|
|
30
|
+
import "./EditUserPage-CIRqNko-.js";
|
|
31
|
+
|
|
32
|
+
export { TeamParent_default as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as executeWithAuth, s as getRefreshTokenHandler } from "./useRpcAuth-SgNzCAPa.js";
|
|
2
|
-
import { t as formatSystemTimestamp } from "./convertToLocalDateTime-
|
|
2
|
+
import { t as formatSystemTimestamp } from "./convertToLocalDateTime-mKs5eC9T.js";
|
|
3
3
|
import { computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, resolveComponent, toDisplayString, unref, withCtx } from "vue";
|
|
4
4
|
import { UserReadSchema } from "@dragonmastery/dragoncore-shared";
|
|
5
5
|
import { useCursorDataTable, withMetadata } from "@dragonmastery/zinia-forms-core";
|
|
@@ -150,4 +150,4 @@ var UserListPage_default = _sfc_main;
|
|
|
150
150
|
|
|
151
151
|
//#endregion
|
|
152
152
|
export { userRowSchemaWithMetadata as n, UserTypeBadge_default as r, UserListPage_default as t };
|
|
153
|
-
//# sourceMappingURL=UserListPage-
|
|
153
|
+
//# sourceMappingURL=UserListPage-D-IdlsHK.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserListPage-
|
|
1
|
+
{"version":3,"file":"UserListPage-D-IdlsHK.js","names":["mappedUsers: UserRow[]"],"sources":["../src/slices/admin/components/UserTypeBadge.vue","../src/slices/admin/features/user_management/userRowSchema.ts","../src/slices/admin/features/user_management/UserListPage.vue"],"sourcesContent":["<template>\n <span class=\"badge badge-sm\" :class=\"badgeClasses\">\n {{ typeLabel }}\n </span>\n</template>\n\n<script setup lang=\"ts\">\nimport { computed } from 'vue';\n\ninterface Props {\n userType: 'consumer' | 'lead' | 'staff' | 'super_admin';\n size?: 'xs' | 'sm' | 'md' | 'lg';\n}\n\nconst props = withDefaults(defineProps<Props>(), {\n size: 'sm',\n});\n\nconst typeConfig = {\n consumer: {\n label: 'Consumer',\n variant: 'neutral',\n },\n lead: {\n label: 'Lead',\n variant: 'info',\n },\n staff: {\n label: 'Staff',\n variant: 'warning',\n },\n super_admin: {\n label: 'Admin',\n variant: 'error',\n },\n};\n\nconst typeLabel = computed(() => {\n return typeConfig[props.userType]?.label || props.userType;\n});\n\nconst badgeClasses = computed(() => {\n const config = typeConfig[props.userType];\n const baseClasses = `badge-${props.size}`;\n\n if (!config) {\n return `${baseClasses} badge-neutral`;\n }\n\n return `${baseClasses} badge-${config.variant}`;\n});\n</script>\n","import { withMetadata } from '@dragonmastery/zinia-forms-core';\nimport { UserReadSchema } from '@dragonmastery/dragoncore-shared';\nimport type { z } from 'zod';\n\nexport const userRowSchemaWithMetadata = withMetadata(UserReadSchema, 'userRowSchema', {\n username: { label: 'Username' },\n email: { label: 'Email' },\n user_type: { label: 'Role' },\n email_verified: { label: 'Verified' },\n created_at: { label: 'Created' },\n});\n\nexport type UserRow = z.infer<typeof UserReadSchema>;\n","<template>\n <div class=\"mt-2\">\n <!-- Header with title and actions -->\n <div class=\"flex justify-between items-center mb-4\">\n <h1 class=\"text-2xl font-bold\">User Management</h1>\n </div>\n\n <!-- Zinia Data Table -->\n <ZiniaDataTable>\n <!-- Custom cell templates -->\n <template #cell-user_type=\"{ row }\">\n <UserTypeBadge :user-type=\"row.user_type\" />\n </template>\n\n <template #cell-email_verified=\"{ row }\">\n <span\n class=\"badge badge-sm\"\n :class=\"row.email_verified ? 'badge-success' : 'badge-error'\"\n >\n {{ row.email_verified ? 'Verified' : 'Not Verified' }}\n </span>\n </template>\n\n <template #cell-created_at=\"{ row }\">\n {{ formatSystemTimestamp(row.created_at) }}\n </template>\n\n <template #cell-actions=\"{ row }\">\n <router-link\n :to=\"{ name: 'EditUser', params: { id: row.id } }\"\n class=\"btn btn-sm btn-primary\"\n >\n Edit\n </router-link>\n </template>\n </ZiniaDataTable>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport { executeWithAuth } from '../../../../composables/useRpcAuth';\nimport { getRefreshTokenHandler } from '../../../../utils/EnhancedRefreshTokenHandler';\nimport { formatSystemTimestamp } from '../../../../utils/convertToLocalDateTime';\nimport { useCursorDataTable } from '@dragonmastery/zinia-forms-core';\nimport UserTypeBadge from '../../components/UserTypeBadge.vue';\nimport { userRowSchemaWithMetadata, type UserRow } from './userRowSchema';\n\n// Set up data table\nconst { ZiniaDataTable } = useCursorDataTable(userRowSchemaWithMetadata, {\n fetchData: async () => {\n const users = await executeWithAuth(\n async (api) => {\n return await api.users.listUsers();\n },\n { refreshTokenHandler: getRefreshTokenHandler() },\n );\n\n // Map response to UserRow format\n const mappedUsers: UserRow[] = users.map((user) => ({\n id: user.id,\n username: user.username,\n email: user.email,\n email_verified: user.email_verified,\n user_type: user.user_type,\n created_at: user.created_at,\n updated_at: user.updated_at ?? null,\n }));\n\n return {\n data: mappedUsers,\n hasNextPage: false,\n hasPreviousPage: false,\n prevPageCursor: undefined,\n nextPageCursor: undefined,\n };\n },\n\n // Column configuration\n columns: {\n username: { label: 'Username', field: 'username', sortable: true },\n email: { label: 'Email', field: 'email', sortable: true },\n user_type: { label: 'Role', field: 'user_type', sortable: true },\n email_verified: {\n label: 'Verified',\n field: 'email_verified',\n sortable: true,\n },\n created_at: { label: 'Created', field: 'created_at', sortable: true },\n },\n\n // Action buttons\n actions: {\n items: [\n {\n key: 'edit',\n icon: 'edit',\n size: 'xs',\n variant: 'primary',\n type: 'link',\n href: (row: UserRow) => `/admin/users/${row.id}/edit`,\n },\n ],\n },\n\n pagination: {\n pageSize: 100,\n },\n});\n</script>\n"],"mappings":";;;;;;;;;;;;;;EAcA,MAAM,QAAQ;EAId,MAAM,aAAa;GACjB,UAAU;IACR,OAAO;IACP,SAAS;IACV;GACD,MAAM;IACJ,OAAO;IACP,SAAS;IACV;GACD,OAAO;IACL,OAAO;IACP,SAAS;IACV;GACD,aAAa;IACX,OAAO;IACP,SAAS;IACV;GACF;EAED,MAAM,YAAY,eAAe;AAC/B,UAAO,WAAW,MAAM,WAAW,SAAS,MAAM;IAClD;EAEF,MAAM,eAAe,eAAe;GAClC,MAAM,SAAS,WAAW,MAAM;GAChC,MAAM,cAAc,SAAS,MAAM;AAEnC,OAAI,CAAC,OACH,QAAO,GAAG,YAAY;AAGxB,UAAO,GAAG,YAAY,SAAS,OAAO;IACtC;;uBAjDA,mBAEO,QAAA,EAFD,OAAK,eAAA,CAAC,kBAAyB,aAAA,MAAY,CAAA,EAAA,kBAC5C,UAAA,MAAS,EAAA,EAAA;;;;;;;;ACEhB,MAAa,4BAA4B,aAAa,gBAAgB,iBAAiB;CACrF,UAAU,EAAE,OAAO,YAAY;CAC/B,OAAO,EAAE,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zBJ,kBAAc,SACqB,EADjB,UAAG,CAC9B,YAA4C,uBAAA,EAA5B,aAAW,IAAI,WAAA,EAAA,MAAA,GAAA,CAAA,YAAA,CAAA,CAAA,CAAA;KAGtB,uBAAmB,SAMrB,EANyB,UAAG,CACnC,mBAKO,QAAA,EAJL,OAAK,eAAA,CAAC,kBACE,IAAI,iBAAc,kBAAA,cAAA,CAAA,EAAA,kBAEvB,IAAI,iBAAc,aAAA,eAAA,EAAA,EAAA,CAAA,CAAA;KAId,mBAAe,SACmB,EADf,UAAG,CAAA,gCAC5B,MAAA,sBAAqB,CAAC,IAAI,WAAU,CAAA,EAAA,EAAA,CAAA,CAAA;KAG9B,gBAAY,SAMP,EANW,UAAG,CAC5B,YAKc,wBAAA;MAJX,IAAE;OAAA,MAAA;OAAA,QAAA,EAAA,IAAoC,IAAI,IAAE;OAAA;MAC7C,OAAM;;6BAGR,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,CAAA,gBAFC,UAED,GAAA,CAAA,EAAA,CAAA"}
|
|
@@ -2,6 +2,6 @@ import "./useRpcAuth-SgNzCAPa.js";
|
|
|
2
2
|
import "./useQueryCache-DIGf3fCM.js";
|
|
3
3
|
import "./useMutation-DzRSXPB1.js";
|
|
4
4
|
import "./AppLink-CHMMrSFI.js";
|
|
5
|
-
import { t as VerifyEmail_default } from "./VerifyEmail-
|
|
5
|
+
import { t as VerifyEmail_default } from "./VerifyEmail-CHfTzrHg.js";
|
|
6
6
|
|
|
7
7
|
export { VerifyEmail_default as default };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { l as useUserSessionStore, m as useEnv } from "./useRpcAuth-SgNzCAPa.js";
|
|
2
2
|
import { t as useMutation } from "./useMutation-DzRSXPB1.js";
|
|
3
3
|
import { t as AppLink_default } from "./AppLink-CHMMrSFI.js";
|
|
4
|
-
import {
|
|
4
|
+
import { i as withReturnUrl } from "./useReturnUrl-BBoPnDR3.js";
|
|
5
5
|
import { computed, createCommentVNode, createElementBlock, createElementVNode, createStaticVNode, createTextVNode, createVNode, defineComponent, onMounted, openBlock, ref, toDisplayString, withCtx } from "vue";
|
|
6
6
|
import { useRoute } from "vue-router";
|
|
7
7
|
import { toast } from "vue3-toastify";
|
|
@@ -137,4 +137,4 @@ var VerifyEmail_default = _sfc_main;
|
|
|
137
137
|
|
|
138
138
|
//#endregion
|
|
139
139
|
export { VerifyEmail_default as t };
|
|
140
|
-
//# sourceMappingURL=VerifyEmail-
|
|
140
|
+
//# sourceMappingURL=VerifyEmail-CHfTzrHg.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerifyEmail-
|
|
1
|
+
{"version":3,"file":"VerifyEmail-CHfTzrHg.js","names":[],"sources":["../src/slices/auth/features/verify_email/VerifyEmail.vue"],"sourcesContent":["<template>\n <div class=\"card bg-base-100 shadow-lg border border-base-300 max-w-md mx-auto\">\n <div class=\"card-body p-4 sm:p-6 text-center\">\n <div v-if=\"status === 'loading'\" class=\"space-y-4\">\n <span class=\"loading loading-spinner loading-lg text-primary\"></span>\n <p class=\"text-sm text-base-content/70\">Verifying your email...</p>\n </div>\n <div v-else-if=\"status === 'success'\" class=\"space-y-4\">\n <div\n class=\"w-14 h-14 rounded-full bg-success/20 flex items-center justify-center mx-auto\"\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"w-7 h-7 text-success\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <polyline points=\"20 6 9 17 4 12\" />\n </svg>\n </div>\n <h3 class=\"text-lg font-semibold\">Email verified!</h3>\n <p class=\"text-sm text-base-content/70\">\n Your email has been verified. Switch back to your other tab to continue, or\n <AppLink :to=\"loginLink\" class=\"link link-primary\">continue to login</AppLink>.\n </p>\n </div>\n <div v-else class=\"space-y-4\">\n <div\n class=\"w-14 h-14 rounded-full bg-error/20 flex items-center justify-center mx-auto\"\n >\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n class=\"w-7 h-7 text-error\"\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n stroke-width=\"2\"\n stroke-linecap=\"round\"\n stroke-linejoin=\"round\"\n >\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <line x1=\"15\" y1=\"9\" x2=\"9\" y2=\"15\" />\n <line x1=\"9\" y1=\"9\" x2=\"15\" y2=\"15\" />\n </svg>\n </div>\n <h3 class=\"text-lg font-semibold\">Verification failed</h3>\n <p class=\"text-sm text-base-content/70\">{{ errorMessage }}</p>\n <div class=\"flex flex-col gap-2 items-center\">\n <AppLink :to=\"loginLink\" class=\"btn btn-outline btn-sm\">Back to login</AppLink>\n <button\n v-if=\"verifyEmailApi\"\n type=\"button\"\n class=\"btn btn-ghost btn-sm\"\n :disabled=\"resendLoading\"\n @click=\"resendVerification\"\n >\n {{ resendLoading ? 'Sending...' : 'Resend verification email' }}\n </button>\n </div>\n </div>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport AppLink from '../../../../components/AppLink.vue';\nimport { useEnv } from '../../../../composables/useEnv';\nimport { useMutation } from '../../../../composables/useMutation';\nimport { useUserSessionStore } from '../../../../composables/useUserSessionStore';\nimport { withReturnUrl } from '../../../../utils/useReturnUrl';\nimport type { DragoncoreApi } from '@dragonmastery/dragoncore-shared';\nimport type { EmailVerificationApi } from '@dragonmastery/dragoncore-shared';\nimport { computed, ref, onMounted } from 'vue';\nimport { useRoute } from 'vue-router';\nimport { toast } from 'vue3-toastify';\n\nconst AUTH_CHANNEL = 'auth';\n\nconst route = useRoute();\nconst returnUrl = computed(() => route.query.returnUrl as string | undefined);\nconst loginLink = computed(() => withReturnUrl('/auth/login', returnUrl.value));\nconst sessionStore = useUserSessionStore();\nconst { emailVerificationMode } = useEnv();\n\n// Support token from query (?token=xxx) or params (/verify-email/:token)\nconst token = (route.query.token ?? route.params.token) as string;\n\nconst status = ref<'loading' | 'success' | 'error'>('loading');\nconst errorMessage = ref<string>('');\nconst verifyEmailApi = ref<boolean>(false);\nconst resendLoading = ref(false);\n\nconst { mutate: verifyMutate } = useMutation(\n (api, tokenToVerify: string) => {\n const verifyEmail = (api as DragoncoreApi).verifyEmail;\n if (!verifyEmail) throw new Error('Email verification is not configured');\n return (verifyEmail as EmailVerificationApi).verifyEmail(tokenToVerify);\n },\n { skipAuthCheck: true },\n);\n\nconst { mutate: resendMutate } = useMutation(\n (api, _input?: unknown) => {\n const verifyEmail = (api as DragoncoreApi).verifyEmail;\n if (!verifyEmail) throw new Error('Email verification is not configured');\n return (verifyEmail as EmailVerificationApi).resendVerificationEmail();\n },\n { skipAuthCheck: false },\n);\n\nonMounted(async () => {\n if (!token) {\n status.value = 'error';\n errorMessage.value = 'No verification token provided.';\n return;\n }\n\n if (emailVerificationMode === 'disabled') {\n status.value = 'error';\n errorMessage.value = 'Email verification is not enabled for this application.';\n return;\n }\n\n try {\n const result = await verifyMutate(token);\n verifyEmailApi.value = true;\n if (result?.ok) {\n status.value = 'success';\n try {\n await sessionStore.refreshToken();\n } catch {\n // User may need to log in again; that's ok\n }\n const channel = new BroadcastChannel(AUTH_CHANNEL);\n channel.postMessage({ type: 'email_verified' });\n channel.close();\n } else {\n status.value = 'error';\n }\n } catch (error) {\n status.value = 'error';\n errorMessage.value = error instanceof Error ? error.message : 'Something went wrong. The link may have expired.';\n verifyEmailApi.value = true;\n }\n});\n\nconst resendVerification = async () => {\n try {\n resendLoading.value = true;\n const result = await resendMutate(undefined);\n if (result?.ok) {\n toast.success('Verification email sent. Please check your inbox.');\n } else {\n toast.error('Failed to resend verification email.');\n }\n } catch (error) {\n toast.error(error instanceof Error ? error.message : 'Failed to resend');\n } finally {\n resendLoading.value = false;\n }\n};\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAgFA,MAAM,eAAe;;;;EAErB,MAAM,QAAQ,UAAU;EACxB,MAAM,YAAY,eAAe,MAAM,MAAM,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,CAVJ,YAA+E,iBAAA;KAArE,IAAI,UAAA;KAAW,OAAM;;4BAAsC,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,CAAA,gBAAb,iBAAa,GAAA,CAAA,EAAA,CAAA;;mBAE7D,eAAA,SAAA,WAAA,EADR,mBAQS,UAAA;;KANP,MAAK;KACL,OAAM;KACL,UAAU,cAAA;KACV,SAAO;uBAEL,cAAA,QAAa,eAAA,4BAAA,EAAA,GAAA,WAAA,IAAA,mBAAA,QAAA,KAAA,CAAA,CAAA"}
|
|
@@ -3,7 +3,7 @@ import "./useQueryCache-DIGf3fCM.js";
|
|
|
3
3
|
import { t as useMutation } from "./useMutation-DzRSXPB1.js";
|
|
4
4
|
import { t as useQuery } from "./useQuery-bvJabe9Q.js";
|
|
5
5
|
import { t as AppLink_default } from "./AppLink-CHMMrSFI.js";
|
|
6
|
-
import {
|
|
6
|
+
import { i as withReturnUrl } from "./useReturnUrl-BBoPnDR3.js";
|
|
7
7
|
import { computed, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, ref, toDisplayString, withCtx } from "vue";
|
|
8
8
|
import { useRoute } from "vue-router";
|
|
9
9
|
import { toast } from "vue3-toastify";
|
|
@@ -72,4 +72,4 @@ var VerifyEmailRequired_default = _sfc_main;
|
|
|
72
72
|
|
|
73
73
|
//#endregion
|
|
74
74
|
export { VerifyEmailRequired_default as default };
|
|
75
|
-
//# sourceMappingURL=VerifyEmailRequired-
|
|
75
|
+
//# sourceMappingURL=VerifyEmailRequired-BCKREd_C.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VerifyEmailRequired-
|
|
1
|
+
{"version":3,"file":"VerifyEmailRequired-BCKREd_C.js","names":[],"sources":["../src/slices/auth/features/verify_email_required/VerifyEmailRequired.vue"],"sourcesContent":["<template>\n <div class=\"max-w-md mx-auto bg-base-200 p-6 rounded-xl shadow-md container\">\n <h1 class=\"text-2xl font-bold mb-6 text-center\">Check your email</h1>\n <p class=\"text-base-content/80 mb-6\">\n We sent a verification link to your email address. Click the link to verify your account,\n then you can log in.\n </p>\n <div class=\"flex flex-col gap-3\">\n <AppLink :to=\"loginLink\" class=\"btn btn-primary\">Continue to login</AppLink>\n <button\n v-if=\"isLoggedIn && verifyEmailApi\"\n type=\"button\"\n class=\"btn btn-outline btn-sm\"\n :disabled=\"resendLoading\"\n @click=\"resendVerification\"\n >\n {{ resendLoading ? 'Sending...' : 'Resend verification email' }}\n </button>\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\nimport AppLink from '../../../../components/AppLink.vue';\nimport type { DragoncoreApi } from '@dragonmastery/dragoncore-shared';\nimport type { EmailVerificationApi } from '@dragonmastery/dragoncore-shared';\nimport { computed, ref } from 'vue';\nimport { useRoute } from 'vue-router';\nimport { toast } from 'vue3-toastify';\nimport { useMutation } from '../../../../composables/useMutation';\nimport { useQuery } from '../../../../composables/useQuery';\nimport { useUserSessionStore } from '../../../../composables/useUserSessionStore';\nimport { withReturnUrl } from '../../../../utils/useReturnUrl';\n\nconst route = useRoute();\nconst session = useUserSessionStore();\n\nconst returnUrl = computed(() => route.query.returnUrl as string | undefined);\nconst loginLink = computed(() => withReturnUrl('/auth/login', returnUrl.value));\nconst resendLoading = ref(false);\nconst verifyEmailApi = ref(false);\n\nconst isLoggedIn = computed(() => !!session.userSession?.user.userId);\n\nuseQuery(\n (api) => {\n verifyEmailApi.value = !!(api as DragoncoreApi).verifyEmail;\n return Promise.resolve(true);\n },\n { enabled: isLoggedIn, staleTime: 60 * 60 * 1000 },\n);\n\nconst { mutate: resendMutate } = useMutation(\n (api, _input?: unknown) => {\n const verifyEmail = (api as DragoncoreApi).verifyEmail;\n if (!verifyEmail) throw new Error('Email verification is not configured');\n return (verifyEmail as EmailVerificationApi).resendVerificationEmail();\n },\n { skipAuthCheck: false },\n);\n\nconst resendVerification = async () => {\n try {\n resendLoading.value = true;\n const result = await resendMutate(undefined);\n if (result?.ok) {\n toast.success('Verification email sent. Please check your inbox.');\n await session.refreshToken();\n } else {\n toast.error('Failed to resend verification email.');\n }\n } catch (error) {\n toast.error(error instanceof Error ? error.message : 'Failed to resend');\n } finally {\n resendLoading.value = false;\n }\n};\n</script>\n"],"mappings":";;;;;;;;;;;;;;;;;EAkCA,MAAM,QAAQ,UAAU;EACxB,MAAM,UAAU,qBAAqB;EAErC,MAAM,YAAY,eAAe,MAAM,MAAM,UAAgC;EAC7E,MAAM,YAAY,eAAe,cAAc,eAAe,UAAU,MAAM,CAAC;EAC/E,MAAM,gBAAgB,IAAI,MAAM;EAChC,MAAM,iBAAiB,IAAI,MAAM;EAEjC,MAAM,aAAa,eAAe,CAAC,CAAC,QAAQ,aAAa,KAAK,OAAO;AAErE,YACG,QAAQ;AACP,kBAAe,QAAQ,CAAC,CAAE,IAAsB;AAChD,UAAO,QAAQ,QAAQ,KAAK;KAE9B;GAAE,SAAS;GAAY,WAAW,OAAU;GAAM,CACnD;EAED,MAAM,EAAE,QAAQ,iBAAiB,aAC9B,KAAK,WAAqB;GACzB,MAAM,cAAe,IAAsB;AAC3C,OAAI,CAAC,YAAa,OAAM,IAAI,MAAM,uCAAuC;AACzE,UAAQ,YAAqC,yBAAyB;KAExE,EAAE,eAAe,OAAO,CACzB;EAED,MAAM,qBAAqB,YAAY;AACrC,OAAI;AACF,kBAAc,QAAQ;AAEtB,SADe,MAAM,aAAa,OAAU,GAChC,IAAI;AACd,WAAM,QAAQ,oDAAoD;AAClE,WAAM,QAAQ,cAAc;UAE5B,OAAM,MAAM,uCAAuC;YAE9C,OAAO;AACd,UAAM,MAAM,iBAAiB,QAAQ,MAAM,UAAU,mBAAmB;aAChE;AACR,kBAAc,QAAQ;;;;uBAzExB,mBAkBM,OAlBN,YAkBM;8BAjBJ,mBAAqE,MAAA,EAAjE,OAAM,uCAAqC,EAAC,oBAAgB,GAAA;8BAChE,mBAGI,KAAA,EAHD,OAAM,6BAA2B,EAAC,oHAGrC,GAAA;IACA,mBAWM,OAXN,YAWM,CAVJ,YAA4E,iBAAA;KAAlE,IAAI,UAAA;KAAW,OAAM;;4BAAmC,CAAA,GAAA,OAAA,OAAA,OAAA,KAAA,CAAA,gBAAjB,qBAAiB,GAAA,CAAA,EAAA,CAAA;;mBAE1D,WAAA,SAAc,eAAA,SAAA,WAAA,EADtB,mBAQS,UAAA;;KANP,MAAK;KACL,OAAM;KACL,UAAU,cAAA;KACV,SAAO;uBAEL,cAAA,QAAa,eAAA,4BAAA,EAAA,GAAA,WAAA,IAAA,mBAAA,QAAA,KAAA,CAAA,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import "./useRpcAuth-SgNzCAPa.js";
|
|
2
|
+
import "./useQueryCache-DIGf3fCM.js";
|
|
3
|
+
import "./useMutation-DzRSXPB1.js";
|
|
4
|
+
import "./useQuery-bvJabe9Q.js";
|
|
5
|
+
import { st as ViewTeam_default } from "./src-B5eswi_J.js";
|
|
6
|
+
import "./AppLink-CHMMrSFI.js";
|
|
7
|
+
import "./TimelineSystemEvent-CBwUl5G8.js";
|
|
8
|
+
import "./TeamMembersTab-4gmnP9sD.js";
|
|
9
|
+
import "./Appearance-BfPdKMXw.js";
|
|
10
|
+
import "./useBreadcrumbs-B-W-miq6.js";
|
|
11
|
+
import "./EditTeamMemberForm-Cy8nzoUb.js";
|
|
12
|
+
import "./TeamHistoryTab-BQ-eXtiw.js";
|
|
13
|
+
import "./UserProfilePage-DMwDVgXa.js";
|
|
14
|
+
import "./ChangePasswordPage-D2Ci00Sh.js";
|
|
15
|
+
import "./TeamNotesTab-Dj12Q2gD.js";
|
|
16
|
+
import "./CustomerSupportTicketParent-iBV1KRKL.js";
|
|
17
|
+
import "./SupportTicketDevLifecycleBadge-B2NysMAj.js";
|
|
18
|
+
import "./StaffSupportTicketParent-KYzy4eb4.js";
|
|
19
|
+
import "./LoginForm-DyHmiC1I.js";
|
|
20
|
+
import "./Signup-Ct0m0x78.js";
|
|
21
|
+
import "./ForgotPassword-CJg_buPl.js";
|
|
22
|
+
import "./ResetPassword-4HLdgM7s.js";
|
|
23
|
+
import "./Logout-C6pWyTIm.js";
|
|
24
|
+
import "./mfaSchema-_vbG9jiT.js";
|
|
25
|
+
import "./MfaSetup-D80HhwEz.js";
|
|
26
|
+
import "./MfaVerify-BEd-f6oV.js";
|
|
27
|
+
import "./VerifyEmail-CHfTzrHg.js";
|
|
28
|
+
import "./UserListPage-D-IdlsHK.js";
|
|
29
|
+
import "./CreateUserPage-DbT_l32W.js";
|
|
30
|
+
import "./EditUserPage-CIRqNko-.js";
|
|
31
|
+
|
|
32
|
+
export { ViewTeam_default as default };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import "./useRpcAuth-SgNzCAPa.js";
|
|
2
|
+
import "./useQueryCache-DIGf3fCM.js";
|
|
3
|
+
import "./useMutation-DzRSXPB1.js";
|
|
4
|
+
import "./useQuery-bvJabe9Q.js";
|
|
5
|
+
import { tt as ViewTeamMember_default } from "./src-B5eswi_J.js";
|
|
6
|
+
import "./AppLink-CHMMrSFI.js";
|
|
7
|
+
import "./TimelineSystemEvent-CBwUl5G8.js";
|
|
8
|
+
import "./TeamMembersTab-4gmnP9sD.js";
|
|
9
|
+
import "./Appearance-BfPdKMXw.js";
|
|
10
|
+
import "./useBreadcrumbs-B-W-miq6.js";
|
|
11
|
+
import "./EditTeamMemberForm-Cy8nzoUb.js";
|
|
12
|
+
import "./TeamHistoryTab-BQ-eXtiw.js";
|
|
13
|
+
import "./UserProfilePage-DMwDVgXa.js";
|
|
14
|
+
import "./ChangePasswordPage-D2Ci00Sh.js";
|
|
15
|
+
import "./TeamNotesTab-Dj12Q2gD.js";
|
|
16
|
+
import "./CustomerSupportTicketParent-iBV1KRKL.js";
|
|
17
|
+
import "./SupportTicketDevLifecycleBadge-B2NysMAj.js";
|
|
18
|
+
import "./StaffSupportTicketParent-KYzy4eb4.js";
|
|
19
|
+
import "./LoginForm-DyHmiC1I.js";
|
|
20
|
+
import "./Signup-Ct0m0x78.js";
|
|
21
|
+
import "./ForgotPassword-CJg_buPl.js";
|
|
22
|
+
import "./ResetPassword-4HLdgM7s.js";
|
|
23
|
+
import "./Logout-C6pWyTIm.js";
|
|
24
|
+
import "./mfaSchema-_vbG9jiT.js";
|
|
25
|
+
import "./MfaSetup-D80HhwEz.js";
|
|
26
|
+
import "./MfaVerify-BEd-f6oV.js";
|
|
27
|
+
import "./VerifyEmail-CHfTzrHg.js";
|
|
28
|
+
import "./UserListPage-D-IdlsHK.js";
|
|
29
|
+
import "./CreateUserPage-DbT_l32W.js";
|
|
30
|
+
import "./EditUserPage-CIRqNko-.js";
|
|
31
|
+
|
|
32
|
+
export { ViewTeamMember_default as default };
|
|
@@ -118,4 +118,4 @@ function getTimezoneOffsetString(date) {
|
|
|
118
118
|
|
|
119
119
|
//#endregion
|
|
120
120
|
export { toStringWithLocalTimeZoneOffSet as a, getTimezoneOffsetString as i, formatToISODate as n, formatUserDate as r, formatSystemTimestamp as t };
|
|
121
|
-
//# sourceMappingURL=convertToLocalDateTime-
|
|
121
|
+
//# sourceMappingURL=convertToLocalDateTime-mKs5eC9T.js.map
|
package/dist/{convertToLocalDateTime-DOSGtMn8.js.map → convertToLocalDateTime-mKs5eC9T.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"convertToLocalDateTime-
|
|
1
|
+
{"version":3,"file":"convertToLocalDateTime-mKs5eC9T.js","names":["date: Date"],"sources":["../src/utils/convertToLocalDateTime.ts"],"sourcesContent":["/**\n * Format a date value to ISO date string (YYYY-MM-DD)\n * Used as formatter for date input fields to ensure consistent ISO format\n * @param date - Date string or Date object\n * @returns ISO date string (YYYY-MM-DD) or null if invalid\n */\nexport function formatToISODate(date: string | Date | null): string | null {\n if (!date) {\n return null;\n }\n try {\n return new Date(date).toISOString().split('T')[0] ?? null;\n } catch (e) {\n console.error('Invalid date format:', e);\n return null;\n }\n}\n\n/**\n * Extracts YYYY-MM-DD from a date string (handles both date-only and ISO format)\n * Used to avoid timezone issues: ISO strings like \"2024-02-02T00:00:00.000Z\" are\n * interpreted as UTC by Date(), which shows wrong date in western timezones\n */\nfunction extractDateOnly(dateString: string): string | null {\n const match = dateString.match(/^(\\d{4}-\\d{2}-\\d{2})/);\n const datePart = match?.[1];\n return datePart != null ? datePart : null;\n}\n\n/**\n * Formats user-inputted date-only fields (YYYY-MM-DD format) or ISO timestamps\n * These represent calendar dates in the user's local context, not precise timestamps\n * @param dateString - Date string in YYYY-MM-DD format or ISO timestamp\n * @param dateOnly - If true, returns only the date portion without time (default: true)\n * @returns Formatted date string or empty string if no date provided\n */\nexport function formatUserDate(\n dateString: string | null | undefined,\n dateOnly: boolean = true,\n): string {\n if (!dateString) return '';\n\n try {\n let date: Date;\n\n // For date-only fields, extract YYYY-MM-DD and parse as local to avoid timezone issues.\n // ISO strings like \"2024-02-02T00:00:00.000Z\" would otherwise be parsed as UTC midnight,\n // showing the wrong day (e.g. Feb 1 instead of Feb 2) in western timezones.\n const dateOnlyPart = extractDateOnly(dateString);\n if (dateOnlyPart) {\n const [year, month, day] = dateOnlyPart.split('-').map(Number);\n date = new Date(year!, month! - 1, day!); // month is 0-indexed\n } else {\n // Fallback for non-standard formats\n date = new Date(dateString);\n }\n\n // Check if date is valid (e.g., catches invalid dates like 2023-02-31)\n if (isNaN(date.getTime())) {\n console.warn('formatUserDate received invalid date:', dateString);\n return dateString;\n }\n\n if (dateOnly) {\n return date.toLocaleDateString(undefined, {\n year: 'numeric',\n month: 'short',\n day: 'numeric',\n });\n }\n\n return date.toLocaleString(undefined, {\n year: 'numeric',\n month: 'short',\n day: 'numeric',\n hour: '2-digit',\n minute: '2-digit',\n timeZoneName: 'short',\n });\n } catch (error) {\n console.error('Error formatting user date:', error);\n return dateString;\n }\n}\n\n/**\n * Formats system-generated timestamps (ISO format with time)\n * These represent precise moments in time, typically in UTC\n * @param timestamp - ISO timestamp string or YYYY-MM-DD date string\n * @param dateOnly - If true, returns only the date portion without time (default: false)\n * @returns Formatted timestamp string or empty string if no timestamp provided\n */\nexport function formatSystemTimestamp(\n timestamp: string | null | undefined,\n dateOnly: boolean = false,\n): string {\n if (!timestamp) return '';\n\n try {\n let date: Date;\n\n // Handle YYYY-MM-DD format specially to avoid timezone issues\n if (dateOnly && /^\\d{4}-\\d{2}-\\d{2}$/.test(timestamp)) {\n // For date-only strings, parse as local date to avoid UTC interpretation\n const [year, month, day] = timestamp.split('-').map(Number);\n date = new Date(year!, month! - 1, day!); // month is 0-indexed\n } else {\n // Handle ISO timestamp or other formats\n date = new Date(timestamp);\n }\n\n // Check if date is valid\n if (isNaN(date.getTime())) {\n console.warn('formatSystemTimestamp received invalid timestamp:', timestamp);\n return timestamp;\n }\n\n if (dateOnly) {\n return date.toLocaleDateString(undefined, {\n year: 'numeric',\n month: 'short',\n day: 'numeric',\n });\n }\n\n return date.toLocaleString(undefined, {\n year: 'numeric',\n month: 'short',\n day: 'numeric',\n hour: '2-digit',\n minute: '2-digit',\n timeZoneName: 'short',\n });\n } catch (error) {\n console.error('Error formatting system timestamp:', error);\n return timestamp;\n }\n}\n\nexport const toStringWithLocalTimeZoneOffSet = (date?: string | null) => {\n if (!date) return null;\n date = date.split('Z')[0];\n if (!date) return null;\n if (date.includes('T')) {\n return date + getTimezoneOffsetString(date);\n } else {\n return date + 'T12:00:00.000' + getTimezoneOffsetString(date);\n }\n};\n\nexport function getTimezoneOffsetString(date: string) {\n let offset = -new Date(date).getTimezoneOffset();\n let sign = offset < 0 ? '-' : '+';\n let hours = Math.floor(Math.abs(offset / 60));\n let minutes = Math.abs(offset % 60);\n return sign + pad(hours) + ':' + pad(minutes);\n\n function pad(n: number) {\n return n < 10 ? '0' + n : '' + n;\n }\n}\n"],"mappings":";;;;;;;AAMA,SAAgB,gBAAgB,MAA2C;AACzE,KAAI,CAAC,KACH,QAAO;AAET,KAAI;AACF,SAAO,IAAI,KAAK,KAAK,CAAC,aAAa,CAAC,MAAM,IAAI,CAAC,MAAM;UAC9C,GAAG;AACV,UAAQ,MAAM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M;GACN,OAAO;GACP,KAAK;GACN,CAAC;AAGJ,SAAO,KAAK,eAAe,QAAW;GACpC,MAAM;GACN,OAAO;GACP,KAAK;GACL,MAAM;GACN,QAAQ;GACR,cAAc;GACf,CAAC;UACK,OAAO;AACd,UAAQ,MAAM,sCAAsC,MAAM;AAC1D,SAAO;;;AAIX,MAAa,mCAAmC,SAAyB;AACvE,KAAI,CAAC,KAAM,QAAO;AAClB,QAAO,KAAK,MAAM,IAAI,CAAC;AACvB,KAAI,CAAC,KAAM,QAAO;AAClB,KAAI,KAAK,SAAS,IAAI,CACpB,QAAO,OAAO,wBAAwB,KAAK;KAE3C,QAAO,OAAO,kBAAkB,wBAAwB,KAAK;;AAIjE,SAAgB,wBAAwB,MAAc;CACpD,IAAI,SAAS,CAAC,IAAI,KAAK,KAAK,CAAC,mBAAmB;CAChD,IAAI,OAAO,SAAS,IAAI,MAAM;CAC9B,IAAI,QAAQ,KAAK,MAAM,KAAK,IAAI,SAAS,GAAG,CAAC;CAC7C,IAAI,UAAU,KAAK,IAAI,SAAS,GAAG;AACnC,QAAO,OAAO,IAAI,MAAM,GAAG,MAAM,IAAI,QAAQ;CAE7C,SAAS,IAAI,GAAW;AACtB,SAAO,IAAI,KAAK,MAAM,IAAI,KAAK"}
|
package/dist/{extractRpcErrorMessage-C_UbKgHL.js.map → extractRpcErrorMessage-pP3v8kKE.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"extractRpcErrorMessage-
|
|
1
|
+
{"version":3,"file":"extractRpcErrorMessage-pP3v8kKE.js","names":[],"sources":["../src/utils/extractRpcErrorMessage.ts"],"sourcesContent":["/**\n * Extracts a user-friendly error message from RPC/API errors.\n * Handles various error shapes: Error instances, nested RPC payloads, etc.\n */\nexport function extractRpcErrorMessage(error: unknown, fallback = 'An unknown error occurred.'): string {\n if (error instanceof Error && error.message) {\n return error.message;\n }\n if (typeof error === 'object' && error !== null) {\n const obj = error as Record<string, unknown>;\n // RPC errors may nest: { error: { error_message: '...' } }\n const inner = obj.error as Record<string, unknown> | undefined;\n if (inner && typeof inner === 'object' && typeof inner.error_message === 'string') {\n return inner.error_message;\n }\n if (typeof obj.error_message === 'string') {\n return obj.error_message;\n }\n if (typeof obj.message === 'string') {\n return obj.message;\n }\n }\n return fallback;\n}\n"],"mappings":";;;;;AAIA,SAAgB,uBAAuB,OAAgB,WAAW,8BAAsC;AACtG,KAAI,iBAAiB,SAAS,MAAM,QAClC,QAAO,MAAM;AAEf,KAAI,OAAO,UAAU,YAAY,UAAU,MAAM;EAC/C,MAAM,MAAM;EAEZ,MAAM,QAAQ,IAAI;AAClB,MAAI,SAAS,OAAO,UAAU,YAAY,OAAO,MAAM,kBAAkB,SACvE,QAAO,MAAM;AAEf,MAAI,OAAO,IAAI,kBAAkB,SAC/B,QAAO,IAAI;AAEb,MAAI,OAAO,IAAI,YAAY,SACzB,QAAO,IAAI;;AAGf,QAAO"}
|