@m5kdev/frontend 0.19.2 → 0.19.3
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/src/modules/app/components/AppTrpcQueryProvider.js +1 -1
- package/dist/src/modules/app/components/AppTrpcQueryProvider.mjs +1 -1
- package/dist/src/modules/auth/auth.lib.d.mts +5 -5
- package/dist/src/modules/auth/auth.lib.d.ts +5 -5
- package/dist/src/modules/auth/components/AuthProvider.js +1 -1
- package/dist/src/modules/auth/components/AuthProvider.mjs +1 -1
- package/dist/src/modules/auth/hooks/useSession.d.mts +1 -1
- package/dist/src/modules/auth/hooks/useSession.d.ts +1 -1
- package/package.json +4 -4
|
@@ -2,8 +2,8 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
2
2
|
const require_src_modules_app_hooks_useAppConfig = require("../hooks/useAppConfig.js");
|
|
3
3
|
let react = require("react");
|
|
4
4
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
|
-
let _m5kdev_commons_utils_trpc = require("@m5kdev/commons/utils/trpc");
|
|
6
5
|
let _tanstack_react_query = require("@tanstack/react-query");
|
|
6
|
+
let _m5kdev_commons_utils_trpc = require("@m5kdev/commons/utils/trpc");
|
|
7
7
|
let _trpc_client = require("@trpc/client");
|
|
8
8
|
let _trpc_tanstack_react_query = require("@trpc/tanstack-react-query");
|
|
9
9
|
//#region src/modules/app/components/AppTrpcQueryProvider.tsx
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useAppConfig } from "../hooks/useAppConfig.mjs";
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
import { transformer } from "@m5kdev/commons/utils/trpc";
|
|
5
4
|
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
|
|
5
|
+
import { transformer } from "@m5kdev/commons/utils/trpc";
|
|
6
6
|
import { createTRPCClient, httpBatchLink } from "@trpc/client";
|
|
7
7
|
import { createTRPCContext } from "@trpc/tanstack-react-query";
|
|
8
8
|
//#region src/modules/app/components/AppTrpcQueryProvider.tsx
|
|
@@ -1364,10 +1364,10 @@ declare const authClient: {
|
|
|
1364
1364
|
callbackURL?: string | undefined;
|
|
1365
1365
|
fetchOptions?: FetchOptions | undefined;
|
|
1366
1366
|
} & {} & {} & {} & {
|
|
1367
|
-
stripeCustomerId?: string | null | undefined;
|
|
1368
1367
|
onboarding?: number | null | undefined;
|
|
1369
1368
|
preferences?: string | null | undefined;
|
|
1370
1369
|
flags?: string | null | undefined;
|
|
1370
|
+
stripeCustomerId?: string | null | undefined;
|
|
1371
1371
|
}>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<NonNullable<{
|
|
1372
1372
|
token: null;
|
|
1373
1373
|
user: {
|
|
@@ -1525,10 +1525,10 @@ declare const authClient: {
|
|
|
1525
1525
|
name?: string | undefined;
|
|
1526
1526
|
fetchOptions?: FetchOptions | undefined;
|
|
1527
1527
|
} & Partial<{} & {} & {} & {
|
|
1528
|
-
stripeCustomerId?: string | null | undefined;
|
|
1529
1528
|
onboarding?: number | null | undefined;
|
|
1530
1529
|
preferences?: string | null | undefined;
|
|
1531
1530
|
flags?: string | null | undefined;
|
|
1531
|
+
stripeCustomerId?: string | null | undefined;
|
|
1532
1532
|
}>> | undefined, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
|
|
1533
1533
|
status: boolean;
|
|
1534
1534
|
}, {
|
|
@@ -1807,10 +1807,10 @@ declare const authClient: {
|
|
|
1807
1807
|
role?: string | null | undefined;
|
|
1808
1808
|
banReason?: string | null | undefined;
|
|
1809
1809
|
banExpires?: Date | null | undefined;
|
|
1810
|
-
stripeCustomerId?: string | null | undefined;
|
|
1811
1810
|
onboarding?: number | null | undefined;
|
|
1812
1811
|
preferences?: string | null | undefined;
|
|
1813
1812
|
flags?: string | null | undefined;
|
|
1813
|
+
stripeCustomerId?: string | null | undefined;
|
|
1814
1814
|
};
|
|
1815
1815
|
session: {
|
|
1816
1816
|
id: string;
|
|
@@ -1973,10 +1973,10 @@ declare const authClient: {
|
|
|
1973
1973
|
role?: string | null | undefined;
|
|
1974
1974
|
banReason?: string | null | undefined;
|
|
1975
1975
|
banExpires?: Date | null | undefined;
|
|
1976
|
-
stripeCustomerId?: string | null | undefined;
|
|
1977
1976
|
onboarding?: number | null | undefined;
|
|
1978
1977
|
preferences?: string | null | undefined;
|
|
1979
1978
|
flags?: string | null | undefined;
|
|
1979
|
+
stripeCustomerId?: string | null | undefined;
|
|
1980
1980
|
};
|
|
1981
1981
|
session: {
|
|
1982
1982
|
id: string;
|
|
@@ -2013,10 +2013,10 @@ declare const authClient: {
|
|
|
2013
2013
|
role?: string | null | undefined;
|
|
2014
2014
|
banReason?: string | null | undefined;
|
|
2015
2015
|
banExpires?: Date | null | undefined;
|
|
2016
|
-
stripeCustomerId?: string | null | undefined;
|
|
2017
2016
|
onboarding?: number | null | undefined;
|
|
2018
2017
|
preferences?: string | null | undefined;
|
|
2019
2018
|
flags?: string | null | undefined;
|
|
2019
|
+
stripeCustomerId?: string | null | undefined;
|
|
2020
2020
|
};
|
|
2021
2021
|
session: {
|
|
2022
2022
|
id: string;
|
|
@@ -1364,10 +1364,10 @@ declare const authClient: {
|
|
|
1364
1364
|
callbackURL?: string | undefined;
|
|
1365
1365
|
fetchOptions?: FetchOptions | undefined;
|
|
1366
1366
|
} & {} & {} & {} & {
|
|
1367
|
-
stripeCustomerId?: string | null | undefined;
|
|
1368
1367
|
onboarding?: number | null | undefined;
|
|
1369
1368
|
preferences?: string | null | undefined;
|
|
1370
1369
|
flags?: string | null | undefined;
|
|
1370
|
+
stripeCustomerId?: string | null | undefined;
|
|
1371
1371
|
}>, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<NonNullable<{
|
|
1372
1372
|
token: null;
|
|
1373
1373
|
user: {
|
|
@@ -1525,10 +1525,10 @@ declare const authClient: {
|
|
|
1525
1525
|
name?: string | undefined;
|
|
1526
1526
|
fetchOptions?: FetchOptions | undefined;
|
|
1527
1527
|
} & Partial<{} & {} & {} & {
|
|
1528
|
-
stripeCustomerId?: string | null | undefined;
|
|
1529
1528
|
onboarding?: number | null | undefined;
|
|
1530
1529
|
preferences?: string | null | undefined;
|
|
1531
1530
|
flags?: string | null | undefined;
|
|
1531
|
+
stripeCustomerId?: string | null | undefined;
|
|
1532
1532
|
}>> | undefined, data_1?: FetchOptions | undefined) => Promise<_$better_auth_client0.BetterFetchResponse<{
|
|
1533
1533
|
status: boolean;
|
|
1534
1534
|
}, {
|
|
@@ -1807,10 +1807,10 @@ declare const authClient: {
|
|
|
1807
1807
|
role?: string | null | undefined;
|
|
1808
1808
|
banReason?: string | null | undefined;
|
|
1809
1809
|
banExpires?: Date | null | undefined;
|
|
1810
|
-
stripeCustomerId?: string | null | undefined;
|
|
1811
1810
|
onboarding?: number | null | undefined;
|
|
1812
1811
|
preferences?: string | null | undefined;
|
|
1813
1812
|
flags?: string | null | undefined;
|
|
1813
|
+
stripeCustomerId?: string | null | undefined;
|
|
1814
1814
|
};
|
|
1815
1815
|
session: {
|
|
1816
1816
|
id: string;
|
|
@@ -1973,10 +1973,10 @@ declare const authClient: {
|
|
|
1973
1973
|
role?: string | null | undefined;
|
|
1974
1974
|
banReason?: string | null | undefined;
|
|
1975
1975
|
banExpires?: Date | null | undefined;
|
|
1976
|
-
stripeCustomerId?: string | null | undefined;
|
|
1977
1976
|
onboarding?: number | null | undefined;
|
|
1978
1977
|
preferences?: string | null | undefined;
|
|
1979
1978
|
flags?: string | null | undefined;
|
|
1979
|
+
stripeCustomerId?: string | null | undefined;
|
|
1980
1980
|
};
|
|
1981
1981
|
session: {
|
|
1982
1982
|
id: string;
|
|
@@ -2013,10 +2013,10 @@ declare const authClient: {
|
|
|
2013
2013
|
role?: string | null | undefined;
|
|
2014
2014
|
banReason?: string | null | undefined;
|
|
2015
2015
|
banExpires?: Date | null | undefined;
|
|
2016
|
-
stripeCustomerId?: string | null | undefined;
|
|
2017
2016
|
onboarding?: number | null | undefined;
|
|
2018
2017
|
preferences?: string | null | undefined;
|
|
2019
2018
|
flags?: string | null | undefined;
|
|
2019
|
+
stripeCustomerId?: string | null | undefined;
|
|
2020
2020
|
};
|
|
2021
2021
|
session: {
|
|
2022
2022
|
id: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
2
|
const require_src_modules_auth_auth_lib = require("../auth.lib.js");
|
|
3
|
+
let posthog_js_react_dist_umd_index_js = require("posthog-js/react/dist/umd/index.js");
|
|
3
4
|
let react = require("react");
|
|
4
5
|
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
|
-
let posthog_js_react_dist_umd_index_js = require("posthog-js/react/dist/umd/index.js");
|
|
6
6
|
//#region src/modules/auth/components/AuthProvider.tsx
|
|
7
7
|
function isImpersonatedSession(session) {
|
|
8
8
|
const sessionData = session?.session;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { authClient } from "../auth.lib.mjs";
|
|
2
|
+
import { usePostHog } from "posthog-js/react/dist/esm/index.js";
|
|
2
3
|
import { createContext, useCallback, useEffect, useState } from "react";
|
|
3
4
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
import { usePostHog } from "posthog-js/react/dist/esm/index.js";
|
|
5
5
|
//#region src/modules/auth/components/AuthProvider.tsx
|
|
6
6
|
function isImpersonatedSession(session) {
|
|
7
7
|
const sessionData = session?.session;
|
|
@@ -14,10 +14,10 @@ declare function useSession(): {
|
|
|
14
14
|
role?: string | null | undefined;
|
|
15
15
|
banReason?: string | null | undefined;
|
|
16
16
|
banExpires?: Date | null | undefined;
|
|
17
|
-
stripeCustomerId?: string | null | undefined;
|
|
18
17
|
onboarding?: number | null | undefined;
|
|
19
18
|
preferences?: string | null | undefined;
|
|
20
19
|
flags?: string | null | undefined;
|
|
20
|
+
stripeCustomerId?: string | null | undefined;
|
|
21
21
|
};
|
|
22
22
|
session: {
|
|
23
23
|
id: string;
|
|
@@ -14,10 +14,10 @@ declare function useSession(): {
|
|
|
14
14
|
role?: string | null | undefined;
|
|
15
15
|
banReason?: string | null | undefined;
|
|
16
16
|
banExpires?: Date | null | undefined;
|
|
17
|
-
stripeCustomerId?: string | null | undefined;
|
|
18
17
|
onboarding?: number | null | undefined;
|
|
19
18
|
preferences?: string | null | undefined;
|
|
20
19
|
flags?: string | null | undefined;
|
|
20
|
+
stripeCustomerId?: string | null | undefined;
|
|
21
21
|
};
|
|
22
22
|
session: {
|
|
23
23
|
id: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m5kdev/frontend",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.3",
|
|
4
4
|
"license": "GPL-3.0-only",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"react": "19.2.1",
|
|
27
27
|
"react-dom": "19.2.1",
|
|
28
28
|
"zod": "4.2.1",
|
|
29
|
-
"@m5kdev/commons": "0.19.
|
|
29
|
+
"@m5kdev/commons": "0.19.3"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"@trpc/server": "11.4.3"
|
|
@@ -41,8 +41,8 @@
|
|
|
41
41
|
"tsdown": "0.21.7",
|
|
42
42
|
"typescript": "5.9.2",
|
|
43
43
|
"vite": "7.0.4",
|
|
44
|
-
"@m5kdev/config": "0.19.
|
|
45
|
-
"@m5kdev/backend": "0.19.
|
|
44
|
+
"@m5kdev/config": "0.19.3",
|
|
45
|
+
"@m5kdev/backend": "0.19.3"
|
|
46
46
|
},
|
|
47
47
|
"exports": {
|
|
48
48
|
"./modules/app/components/*": {
|