@m5kdev/web-ui 0.9.2 → 0.9.4

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.
@@ -13,8 +13,8 @@ declare const waitlistSchema: z.ZodObject<{
13
13
  expiresAt: z.ZodNullable<z.ZodDate>;
14
14
  }, z.core.$strip>;
15
15
  declare const waitlistOutputSchema: z.ZodObject<{
16
- id: z.ZodString;
17
16
  name: z.ZodNullable<z.ZodString>;
17
+ id: z.ZodString;
18
18
  email: z.ZodNullable<z.ZodString>;
19
19
  createdAt: z.ZodDate;
20
20
  updatedAt: z.ZodNullable<z.ZodDate>;
@@ -59,8 +59,8 @@ declare const accountClaimMagicLinkOutputSchema: z.ZodObject<{
59
59
  id: z.ZodString;
60
60
  email: z.ZodString;
61
61
  createdAt: z.ZodDate;
62
- userId: z.ZodString;
63
62
  expiresAt: z.ZodNullable<z.ZodDate>;
63
+ userId: z.ZodString;
64
64
  claimId: z.ZodString;
65
65
  url: z.ZodString;
66
66
  }, z.core.$strip>;
@@ -13,8 +13,8 @@ declare const waitlistSchema: z.ZodObject<{
13
13
  expiresAt: z.ZodNullable<z.ZodDate>;
14
14
  }, z.core.$strip>;
15
15
  declare const waitlistOutputSchema: z.ZodObject<{
16
- id: z.ZodString;
17
16
  name: z.ZodNullable<z.ZodString>;
17
+ id: z.ZodString;
18
18
  email: z.ZodNullable<z.ZodString>;
19
19
  createdAt: z.ZodDate;
20
20
  updatedAt: z.ZodNullable<z.ZodDate>;
@@ -59,8 +59,8 @@ declare const accountClaimMagicLinkOutputSchema: z.ZodObject<{
59
59
  id: z.ZodString;
60
60
  email: z.ZodString;
61
61
  createdAt: z.ZodDate;
62
- userId: z.ZodString;
63
62
  expiresAt: z.ZodNullable<z.ZodDate>;
63
+ userId: z.ZodString;
64
64
  claimId: z.ZodString;
65
65
  url: z.ZodString;
66
66
  }, z.core.$strip>;
@@ -79,8 +79,8 @@ declare const createAuthTRPCRouter: (trpcMethods: TRPCMethods, authService: Auth
79
79
  id: string;
80
80
  email: string;
81
81
  createdAt: Date;
82
- userId: string;
83
82
  expiresAt: Date | null;
83
+ userId: string;
84
84
  claimId: string;
85
85
  url: string;
86
86
  };
@@ -94,8 +94,8 @@ declare const createAuthTRPCRouter: (trpcMethods: TRPCMethods, authService: Auth
94
94
  id: string;
95
95
  email: string;
96
96
  createdAt: Date;
97
- userId: string;
98
97
  expiresAt: Date | null;
98
+ userId: string;
99
99
  claimId: string;
100
100
  url: string;
101
101
  }[];
@@ -149,8 +149,8 @@ declare const createAuthTRPCRouter: (trpcMethods: TRPCMethods, authService: Auth
149
149
  listAdminWaitlist: QueryProcedure<{
150
150
  input: void;
151
151
  output: {
152
- id: string;
153
152
  name: string | null;
153
+ id: string;
154
154
  email: string | null;
155
155
  createdAt: Date;
156
156
  updatedAt: Date | null;
@@ -163,8 +163,8 @@ declare const createAuthTRPCRouter: (trpcMethods: TRPCMethods, authService: Auth
163
163
  email: string;
164
164
  };
165
165
  output: {
166
- id: string;
167
166
  name: string | null;
167
+ id: string;
168
168
  email: string | null;
169
169
  createdAt: Date;
170
170
  updatedAt: Date | null;
@@ -194,8 +194,8 @@ declare const createAuthTRPCRouter: (trpcMethods: TRPCMethods, authService: Auth
194
194
  id: string;
195
195
  };
196
196
  output: {
197
- id: string;
198
197
  name: string | null;
198
+ id: string;
199
199
  email: string | null;
200
200
  createdAt: Date;
201
201
  updatedAt: Date | null;
@@ -208,8 +208,8 @@ declare const createAuthTRPCRouter: (trpcMethods: TRPCMethods, authService: Auth
208
208
  id: string;
209
209
  };
210
210
  output: {
211
- id: string;
212
211
  name: string | null;
212
+ id: string;
213
213
  email: string | null;
214
214
  createdAt: Date;
215
215
  updatedAt: Date | null;
@@ -222,8 +222,8 @@ declare const createAuthTRPCRouter: (trpcMethods: TRPCMethods, authService: Auth
222
222
  email: string;
223
223
  };
224
224
  output: {
225
- id: string;
226
225
  name: string | null;
226
+ id: string;
227
227
  email: string | null;
228
228
  createdAt: Date;
229
229
  updatedAt: Date | null;
@@ -79,8 +79,8 @@ declare const createAuthTRPCRouter: (trpcMethods: TRPCMethods, authService: Auth
79
79
  id: string;
80
80
  email: string;
81
81
  createdAt: Date;
82
- userId: string;
83
82
  expiresAt: Date | null;
83
+ userId: string;
84
84
  claimId: string;
85
85
  url: string;
86
86
  };
@@ -94,8 +94,8 @@ declare const createAuthTRPCRouter: (trpcMethods: TRPCMethods, authService: Auth
94
94
  id: string;
95
95
  email: string;
96
96
  createdAt: Date;
97
- userId: string;
98
97
  expiresAt: Date | null;
98
+ userId: string;
99
99
  claimId: string;
100
100
  url: string;
101
101
  }[];
@@ -149,8 +149,8 @@ declare const createAuthTRPCRouter: (trpcMethods: TRPCMethods, authService: Auth
149
149
  listAdminWaitlist: QueryProcedure<{
150
150
  input: void;
151
151
  output: {
152
- id: string;
153
152
  name: string | null;
153
+ id: string;
154
154
  email: string | null;
155
155
  createdAt: Date;
156
156
  updatedAt: Date | null;
@@ -163,8 +163,8 @@ declare const createAuthTRPCRouter: (trpcMethods: TRPCMethods, authService: Auth
163
163
  email: string;
164
164
  };
165
165
  output: {
166
- id: string;
167
166
  name: string | null;
167
+ id: string;
168
168
  email: string | null;
169
169
  createdAt: Date;
170
170
  updatedAt: Date | null;
@@ -194,8 +194,8 @@ declare const createAuthTRPCRouter: (trpcMethods: TRPCMethods, authService: Auth
194
194
  id: string;
195
195
  };
196
196
  output: {
197
- id: string;
198
197
  name: string | null;
198
+ id: string;
199
199
  email: string | null;
200
200
  createdAt: Date;
201
201
  updatedAt: Date | null;
@@ -208,8 +208,8 @@ declare const createAuthTRPCRouter: (trpcMethods: TRPCMethods, authService: Auth
208
208
  id: string;
209
209
  };
210
210
  output: {
211
- id: string;
212
211
  name: string | null;
212
+ id: string;
213
213
  email: string | null;
214
214
  createdAt: Date;
215
215
  updatedAt: Date | null;
@@ -222,8 +222,8 @@ declare const createAuthTRPCRouter: (trpcMethods: TRPCMethods, authService: Auth
222
222
  email: string;
223
223
  };
224
224
  output: {
225
- id: string;
226
225
  name: string | null;
226
+ id: string;
227
227
  email: string | null;
228
228
  createdAt: Date;
229
229
  updatedAt: Date | null;
@@ -4,7 +4,7 @@ import * as _$class_variance_authority_types0 from "class-variance-authority/typ
4
4
 
5
5
  //#region src/components/PageAlert.d.ts
6
6
  declare const pageAlertVariants: (props?: ({
7
- variant?: "default" | "info" | "success" | "warning" | "destructive" | null | undefined;
7
+ variant?: "default" | "destructive" | "info" | "success" | "warning" | null | undefined;
8
8
  } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
9
9
  interface PageAlertProps extends React$1.ComponentProps<"div">, VariantProps<typeof pageAlertVariants> {
10
10
  title?: string;
@@ -4,7 +4,7 @@ import * as React$1 from "react";
4
4
 
5
5
  //#region src/components/PageAlert.d.ts
6
6
  declare const pageAlertVariants: (props?: ({
7
- variant?: "default" | "info" | "success" | "warning" | "destructive" | null | undefined;
7
+ variant?: "default" | "destructive" | "info" | "success" | "warning" | null | undefined;
8
8
  } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
9
9
  interface PageAlertProps extends React$1.ComponentProps<"div">, VariantProps<typeof pageAlertVariants> {
10
10
  title?: string;
@@ -4,7 +4,7 @@ import * as _$class_variance_authority_types0 from "class-variance-authority/typ
4
4
 
5
5
  //#region src/components/ui/button.d.ts
6
6
  declare const buttonVariants: (props?: ({
7
- variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
7
+ variant?: "default" | "destructive" | "link" | "secondary" | "outline" | "ghost" | null | undefined;
8
8
  size?: "default" | "icon" | "sm" | "lg" | null | undefined;
9
9
  } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
10
10
  interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
@@ -4,7 +4,7 @@ import * as React$1 from "react";
4
4
 
5
5
  //#region src/components/ui/button.d.ts
6
6
  declare const buttonVariants: (props?: ({
7
- variant?: "link" | "default" | "destructive" | "secondary" | "outline" | "ghost" | null | undefined;
7
+ variant?: "default" | "destructive" | "link" | "secondary" | "outline" | "ghost" | null | undefined;
8
8
  size?: "default" | "icon" | "sm" | "lg" | null | undefined;
9
9
  } & _$class_variance_authority_types0.ClassProp) | undefined) => string;
10
10
  interface ButtonProps extends React$1.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
@@ -6,10 +6,10 @@ let react_jsx_runtime = require("react/jsx-runtime");
6
6
  let lucide_react = require("lucide-react");
7
7
  let react_router = require("react-router");
8
8
  let sonner = require("sonner");
9
+ let _tanstack_react_query = require("@tanstack/react-query");
9
10
  let _m5kdev_frontend_modules_auth_auth_lib = require("@m5kdev/frontend/modules/auth/auth.lib");
10
11
  let _m5kdev_frontend_modules_auth_hooks_useAuthAdmin = require("@m5kdev/frontend/modules/auth/hooks/useAuthAdmin");
11
12
  _m5kdev_frontend_modules_auth_hooks_useAuthAdmin = require_runtime.__toESM(_m5kdev_frontend_modules_auth_hooks_useAuthAdmin);
12
- let _tanstack_react_query = require("@tanstack/react-query");
13
13
  //#region src/modules/auth/components/AdminUserManagement.tsx
14
14
  function AdminUserManagement({ useTRPC }) {
15
15
  const banReasonInputId = (0, react.useId)();
@@ -4,9 +4,9 @@ import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
4
4
  import { BarChart3, CalendarClock, ChevronDown, ChevronUp, Copy, Filter, Info, Link2, List, MoreHorizontal, Search, UserPlus, X } from "lucide-react";
5
5
  import { useNavigate } from "react-router";
6
6
  import { toast } from "sonner";
7
+ import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
7
8
  import { authClient } from "@m5kdev/frontend/modules/auth/auth.lib";
8
9
  import * as authAdmin from "@m5kdev/frontend/modules/auth/hooks/useAuthAdmin";
9
- import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
10
10
  //#region src/modules/auth/components/AdminUserManagement.tsx
11
11
  function AdminUserManagement({ useTRPC }) {
12
12
  const banReasonInputId = useId();
@@ -6,8 +6,8 @@ let react_jsx_runtime = require("react/jsx-runtime");
6
6
  let lucide_react = require("lucide-react");
7
7
  let react_i18next = require("react-i18next");
8
8
  let sonner = require("sonner");
9
- let _m5kdev_frontend_modules_auth_auth_lib = require("@m5kdev/frontend/modules/auth/auth.lib");
10
9
  let _tanstack_react_query = require("@tanstack/react-query");
10
+ let _m5kdev_frontend_modules_auth_auth_lib = require("@m5kdev/frontend/modules/auth/auth.lib");
11
11
  let _m5kdev_frontend_modules_auth_hooks_useSession = require("@m5kdev/frontend/modules/auth/hooks/useSession");
12
12
  //#region src/modules/auth/components/OrganizationMembersRoute.tsx
13
13
  const ORGANIZATION_ROLES = [
@@ -4,8 +4,8 @@ import { jsx, jsxs } from "react/jsx-runtime";
4
4
  import { Copy, Trash2, UserPlus, Users } from "lucide-react";
5
5
  import { useTranslation } from "react-i18next";
6
6
  import { toast } from "sonner";
7
- import { authClient } from "@m5kdev/frontend/modules/auth/auth.lib";
8
7
  import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
8
+ import { authClient } from "@m5kdev/frontend/modules/auth/auth.lib";
9
9
  import { useSession } from "@m5kdev/frontend/modules/auth/hooks/useSession";
10
10
  //#region src/modules/auth/components/OrganizationMembersRoute.tsx
11
11
  const ORGANIZATION_ROLES = [
@@ -5,8 +5,8 @@ let _heroui_react = require("@heroui/react");
5
5
  let react_jsx_runtime = require("react/jsx-runtime");
6
6
  let react_i18next = require("react-i18next");
7
7
  let sonner = require("sonner");
8
- let _m5kdev_frontend_modules_auth_auth_lib = require("@m5kdev/frontend/modules/auth/auth.lib");
9
8
  let _tanstack_react_query = require("@tanstack/react-query");
9
+ let _m5kdev_frontend_modules_auth_auth_lib = require("@m5kdev/frontend/modules/auth/auth.lib");
10
10
  let _m5kdev_frontend_modules_auth_hooks_useSession = require("@m5kdev/frontend/modules/auth/hooks/useSession");
11
11
  //#region src/modules/auth/components/OrganizationSettingsRoute.tsx
12
12
  function OrganizationStateCard({ title, message }) {
@@ -3,8 +3,8 @@ import { Button, Card, CardBody, CardHeader, Chip, Input, Spinner, Textarea } fr
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
4
  import { useTranslation } from "react-i18next";
5
5
  import { toast } from "sonner";
6
- import { authClient } from "@m5kdev/frontend/modules/auth/auth.lib";
7
6
  import { useQuery, useQueryClient } from "@tanstack/react-query";
7
+ import { authClient } from "@m5kdev/frontend/modules/auth/auth.lib";
8
8
  import { useSession } from "@m5kdev/frontend/modules/auth/hooks/useSession";
9
9
  //#region src/modules/auth/components/OrganizationSettingsRoute.tsx
10
10
  function OrganizationStateCard({ title, message }) {
@@ -9,8 +9,8 @@ let lucide_react = require("lucide-react");
9
9
  let react_i18next = require("react-i18next");
10
10
  let react_router = require("react-router");
11
11
  let sonner = require("sonner");
12
- let _m5kdev_frontend_modules_auth_auth_lib = require("@m5kdev/frontend/modules/auth/auth.lib");
13
12
  let _tanstack_react_query = require("@tanstack/react-query");
13
+ let _m5kdev_frontend_modules_auth_auth_lib = require("@m5kdev/frontend/modules/auth/auth.lib");
14
14
  let _m5kdev_frontend_modules_auth_hooks_useSession = require("@m5kdev/frontend/modules/auth/hooks/useSession");
15
15
  //#region src/modules/auth/components/OrganizationSwitcher.tsx
16
16
  function OrganizationSwitcher({ onInvalidateScopedQueries, managerRoles = ["admin", "owner"], managerPath = "/organization/members", fallbackPath = "/" }) {
@@ -7,8 +7,8 @@ import { Building2 } from "lucide-react";
7
7
  import { useTranslation } from "react-i18next";
8
8
  import { Link as Link$1 } from "react-router";
9
9
  import { toast } from "sonner";
10
- import { authClient } from "@m5kdev/frontend/modules/auth/auth.lib";
11
10
  import { useQuery } from "@tanstack/react-query";
11
+ import { authClient } from "@m5kdev/frontend/modules/auth/auth.lib";
12
12
  import { useSession } from "@m5kdev/frontend/modules/auth/hooks/useSession";
13
13
  //#region src/modules/auth/components/OrganizationSwitcher.tsx
14
14
  function OrganizationSwitcher({ onInvalidateScopedQueries, managerRoles = ["admin", "owner"], managerPath = "/organization/members", fallbackPath = "/" }) {
@@ -3,8 +3,8 @@ require("../../../../_virtual/_rolldown/runtime.js");
3
3
  let _heroui_react = require("@heroui/react");
4
4
  let react_jsx_runtime = require("react/jsx-runtime");
5
5
  let lucide_react = require("lucide-react");
6
- let _tanstack_react_query = require("@tanstack/react-query");
7
6
  let _m5kdev_frontend_modules_billing_hooks_useSubscription = require("@m5kdev/frontend/modules/billing/hooks/useSubscription");
7
+ let _tanstack_react_query = require("@tanstack/react-query");
8
8
  //#region src/modules/billing/components/BillingInvoicePage.tsx
9
9
  function BillingInvoicePage({ useTRPC, serverUrl }) {
10
10
  const { data: invoices, isLoading } = (0, _tanstack_react_query.useQuery)(useTRPC().billing.listInvoices.queryOptions());
@@ -1,8 +1,8 @@
1
1
  import { Button, Card, CardBody, CardHeader, Chip, Link, Spinner, Table, TableBody, TableCell, TableColumn, TableHeader, TableRow } from "@heroui/react";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import { AlertCircle, CheckCircle2, ExternalLink } from "lucide-react";
4
- import { useQuery } from "@tanstack/react-query";
5
4
  import { useSubscription } from "@m5kdev/frontend/modules/billing/hooks/useSubscription";
5
+ import { useQuery } from "@tanstack/react-query";
6
6
  //#region src/modules/billing/components/BillingInvoicePage.tsx
7
7
  function BillingInvoicePage({ useTRPC, serverUrl }) {
8
8
  const { data: invoices, isLoading } = useQuery(useTRPC().billing.listInvoices.queryOptions());
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m5kdev/web-ui",
3
- "version": "0.9.2",
3
+ "version": "0.9.4",
4
4
  "license": "GPL-3.0-only",
5
5
  "repository": {
6
6
  "type": "git",
@@ -67,8 +67,8 @@
67
67
  "zod": "4.2.1",
68
68
  "@tanstack/react-query": "5.83.0",
69
69
  "@trpc/tanstack-react-query": "11.4.3",
70
- "@m5kdev/frontend": "0.9.2",
71
- "@m5kdev/commons": "0.9.2"
70
+ "@m5kdev/frontend": "0.9.4",
71
+ "@m5kdev/commons": "0.9.4"
72
72
  },
73
73
  "devDependencies": {
74
74
  "@tsdown/css": "0.21.7",
@@ -80,8 +80,8 @@
80
80
  "globals": "16.3.0",
81
81
  "tsdown": "0.21.7",
82
82
  "vite": "7.0.4",
83
- "@m5kdev/config": "0.9.2",
84
- "@m5kdev/backend": "0.9.2"
83
+ "@m5kdev/config": "0.9.4",
84
+ "@m5kdev/backend": "0.9.4"
85
85
  },
86
86
  "exports": {
87
87
  "./components/*": {