@replyke/core 5.1.5-beta.4 → 5.1.5-beta.5
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/cjs/context/index.d.ts +0 -1
- package/dist/cjs/context/index.js +1 -5
- package/dist/cjs/context/index.js.map +1 -1
- package/dist/cjs/index.d.ts +4 -5
- package/dist/cjs/index.js +5 -18
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/context/index.d.ts +0 -1
- package/dist/esm/context/index.js +0 -3
- package/dist/esm/context/index.js.map +1 -1
- package/dist/esm/index.d.ts +4 -5
- package/dist/esm/index.js +4 -9
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,4 +5,3 @@ export { EntityProvider } from "./entity-context";
|
|
|
5
5
|
export { ListsProvider } from "./lists-context";
|
|
6
6
|
export { AppNotificationsProvider } from "./app-notifications-context";
|
|
7
7
|
export { CommentSectionProvider } from "./comment-section-context";
|
|
8
|
-
export { AuthProvider } from "./auth-context";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.CommentSectionProvider = exports.AppNotificationsProvider = exports.ListsProvider = exports.EntityProvider = exports.EntityListProvider = exports.ReplykeStoreProvider = exports.ReplykeProvider = void 0;
|
|
4
4
|
var replyke_context_1 = require("./replyke-context");
|
|
5
5
|
Object.defineProperty(exports, "ReplykeProvider", { enumerable: true, get: function () { return replyke_context_1.ReplykeProvider; } });
|
|
6
6
|
var replyke_store_context_1 = require("./replyke-store-context");
|
|
@@ -15,8 +15,4 @@ var app_notifications_context_1 = require("./app-notifications-context");
|
|
|
15
15
|
Object.defineProperty(exports, "AppNotificationsProvider", { enumerable: true, get: function () { return app_notifications_context_1.AppNotificationsProvider; } });
|
|
16
16
|
var comment_section_context_1 = require("./comment-section-context");
|
|
17
17
|
Object.defineProperty(exports, "CommentSectionProvider", { enumerable: true, get: function () { return comment_section_context_1.CommentSectionProvider; } });
|
|
18
|
-
// Legacy Context providers (kept for reference but not recommended for new implementations)
|
|
19
|
-
// Use Redux-powered equivalents instead
|
|
20
|
-
var auth_context_1 = require("./auth-context");
|
|
21
|
-
Object.defineProperty(exports, "AuthProvider", { enumerable: true, get: function () { return auth_context_1.AuthProvider; } });
|
|
22
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/context/index.ts"],"names":[],"mappings":";;;AAAA,qDAAoD;AAA3C,kHAAA,eAAe,OAAA;AACxB,iEAA+D;AAAtD,6HAAA,oBAAoB,OAAA;AAC7B,6DAA2D;AAAlD,yHAAA,kBAAkB,OAAA;AAC3B,mDAAkD;AAAzC,gHAAA,cAAc,OAAA;AACvB,iDAAgD;AAAvC,8GAAA,aAAa,OAAA;AACtB,yEAAuE;AAA9D,qIAAA,wBAAwB,OAAA;AACjC,qEAAmE;AAA1D,iIAAA,sBAAsB,OAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/context/index.ts"],"names":[],"mappings":";;;AAAA,qDAAoD;AAA3C,kHAAA,eAAe,OAAA;AACxB,iEAA+D;AAAtD,6HAAA,oBAAoB,OAAA;AAC7B,6DAA2D;AAAlD,yHAAA,kBAAkB,OAAA;AAC3B,mDAAkD;AAAzC,gHAAA,cAAc,OAAA;AACvB,iDAAgD;AAAvC,8GAAA,aAAa,OAAA;AACtB,yEAAuE;AAA9D,qIAAA,wBAAwB,OAAA;AACjC,qEAAmE;AAA1D,iIAAA,sBAAsB,OAAA"}
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -5,19 +5,18 @@ export { default as getPublicFileUrl } from "./helpers/getPublicFileUrl";
|
|
|
5
5
|
export { reportReasons } from "./constants/reportReasons";
|
|
6
6
|
export type { ReportReasonKey } from "./constants/reportReasons";
|
|
7
7
|
export { ReplykeProvider, // Always includes Redux auth and notification management
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
ReplykeStoreProvider, // Advanced: standalone Redux provider
|
|
9
|
+
EntityListProvider, EntityProvider, ListsProvider, AppNotificationsProvider, CommentSectionProvider, } from "./context";
|
|
10
10
|
export { useProject, useProjectData } from "./hooks/projects";
|
|
11
11
|
export { useSignTestingJwt } from "./hooks/crypto";
|
|
12
|
-
export { useAuthRedux
|
|
13
|
-
export { useAuth as useAuthContext, useAuthData, useRequestNewAccessToken, useSignUpWithEmailAndPassword, useSignInWithEmailAndPassword, useSignOut, useChangePassword, useVerifyExternalUser, } from "./hooks/auth";
|
|
12
|
+
export { useAuthRedux, useUserRedux, type UseAuthReduxValues, type UseUserReduxValues, } from "./hooks/auth-redux";
|
|
14
13
|
export { useAppNotifications, useAppNotificationsData, useCountUnreadNotifications, useFetchAppNotifications, useMarkNotificationAsRead, } from "./hooks/app-notifications";
|
|
15
14
|
export { useAppNotificationsRedux, useAppNotificationsDataRedux, type UseAppNotificationsDataProps, type UseAppNotificationsDataValues, } from "./hooks/app-notifications-redux";
|
|
16
15
|
export { useEntity, useEntityData, useCreateEntity, useFetchEntity, useFetchEntityByForeignId, useFetchEntityByShortId, useUpdateEntity, useEntityVotes, useDeleteEntity, useEntityList, useEntityListData, useInfusedData, } from "./hooks/entities";
|
|
17
16
|
export { useCommentSection, useCommentSectionData, useCreateComment, useFetchManyComments, useFetchComment, useFetchCommentByForeignId, useReplies, useUpdateComment, useCommentVotes, useDeleteComment, useEntityComments, useProfileComments, } from "./hooks/comments";
|
|
18
17
|
export { useLists, useListsData, useCreateList, useFetchRootList, useFetchSubLists, useIsEntitySaved, useUpdateList, useAddToList, useRemoveFromList, useDeleteList, } from "./hooks/lists";
|
|
19
18
|
export { useUserData, useFetchUser, useFetchUserByForeignId, useFetchUserFollowersCount, useFetchUserFollowingCount, useCheckUsernameAvailability, useFetchUserSuggestions, useMentions, useUpdateUser, useFetchFollow, useFollowUser, useUnfollowUser, } from "./hooks/users";
|
|
20
|
-
export { useUser as useUserContext
|
|
19
|
+
export { useUser as useUserContext } from "./hooks/users";
|
|
21
20
|
export { useCreateReport } from "./hooks/reports";
|
|
22
21
|
export { useGetMetadata } from "./hooks/utils";
|
|
23
22
|
export { useUploadFile } from "./hooks/storage";
|
package/dist/cjs/index.js
CHANGED
|
@@ -36,8 +36,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
36
36
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.
|
|
40
|
-
exports.AppNotification = exports.useUploadFile = exports.useGetMetadata = exports.useCreateReport = exports.useUserContext = exports.useUnfollowUser = exports.useFollowUser = exports.useFetchFollow = exports.useUpdateUser = exports.useMentions = exports.useFetchUserSuggestions = exports.useCheckUsernameAvailability = exports.useFetchUserFollowingCount = exports.useFetchUserFollowersCount = exports.useFetchUserByForeignId = exports.useFetchUser = exports.useUserData = exports.useDeleteList = exports.useRemoveFromList = exports.useAddToList = exports.useUpdateList = exports.useIsEntitySaved = exports.useFetchSubLists = exports.useFetchRootList = exports.useCreateList =
|
|
39
|
+
exports.useListsData = exports.useLists = exports.useProfileComments = exports.useEntityComments = exports.useDeleteComment = exports.useCommentVotes = exports.useUpdateComment = exports.useReplies = exports.useFetchCommentByForeignId = exports.useFetchComment = exports.useFetchManyComments = exports.useCreateComment = exports.useCommentSectionData = exports.useCommentSection = exports.useInfusedData = exports.useEntityListData = exports.useEntityList = exports.useDeleteEntity = exports.useEntityVotes = exports.useUpdateEntity = exports.useFetchEntityByShortId = exports.useFetchEntityByForeignId = exports.useFetchEntity = exports.useCreateEntity = exports.useEntityData = exports.useEntity = exports.useAppNotificationsDataRedux = exports.useAppNotificationsRedux = exports.useMarkNotificationAsRead = exports.useFetchAppNotifications = exports.useCountUnreadNotifications = exports.useAppNotificationsData = exports.useAppNotifications = exports.useUserRedux = exports.useAuthRedux = exports.useSignTestingJwt = exports.useProjectData = exports.useProject = exports.CommentSectionProvider = exports.AppNotificationsProvider = exports.ListsProvider = exports.EntityProvider = exports.EntityListProvider = exports.ReplykeStoreProvider = exports.ReplykeProvider = exports.reportReasons = exports.getPublicFileUrl = exports.getUserName = exports.safeMergeStyleProps = exports.handleError = void 0;
|
|
40
|
+
exports.AppNotification = exports.useUploadFile = exports.useGetMetadata = exports.useCreateReport = exports.useUserContext = exports.useUnfollowUser = exports.useFollowUser = exports.useFetchFollow = exports.useUpdateUser = exports.useMentions = exports.useFetchUserSuggestions = exports.useCheckUsernameAvailability = exports.useFetchUserFollowingCount = exports.useFetchUserFollowersCount = exports.useFetchUserByForeignId = exports.useFetchUser = exports.useUserData = exports.useDeleteList = exports.useRemoveFromList = exports.useAddToList = exports.useUpdateList = exports.useIsEntitySaved = exports.useFetchSubLists = exports.useFetchRootList = exports.useCreateList = void 0;
|
|
41
41
|
// Helpers & Utilities
|
|
42
42
|
var handleError_1 = require("./utils/handleError");
|
|
43
43
|
Object.defineProperty(exports, "handleError", { enumerable: true, get: function () { return handleError_1.handleError; } });
|
|
@@ -53,15 +53,12 @@ Object.defineProperty(exports, "reportReasons", { enumerable: true, get: functio
|
|
|
53
53
|
// Context providers (now Redux-powered by default)
|
|
54
54
|
var context_1 = require("./context");
|
|
55
55
|
Object.defineProperty(exports, "ReplykeProvider", { enumerable: true, get: function () { return context_1.ReplykeProvider; } });
|
|
56
|
+
Object.defineProperty(exports, "ReplykeStoreProvider", { enumerable: true, get: function () { return context_1.ReplykeStoreProvider; } });
|
|
56
57
|
Object.defineProperty(exports, "EntityListProvider", { enumerable: true, get: function () { return context_1.EntityListProvider; } });
|
|
57
58
|
Object.defineProperty(exports, "EntityProvider", { enumerable: true, get: function () { return context_1.EntityProvider; } });
|
|
58
59
|
Object.defineProperty(exports, "ListsProvider", { enumerable: true, get: function () { return context_1.ListsProvider; } });
|
|
59
60
|
Object.defineProperty(exports, "AppNotificationsProvider", { enumerable: true, get: function () { return context_1.AppNotificationsProvider; } });
|
|
60
61
|
Object.defineProperty(exports, "CommentSectionProvider", { enumerable: true, get: function () { return context_1.CommentSectionProvider; } });
|
|
61
|
-
Object.defineProperty(exports, "ReplykeStoreProvider", { enumerable: true, get: function () { return context_1.ReplykeStoreProvider; } });
|
|
62
|
-
// Legacy Context providers (for reference)
|
|
63
|
-
var context_2 = require("./context");
|
|
64
|
-
Object.defineProperty(exports, "AuthProvider", { enumerable: true, get: function () { return context_2.AuthProvider; } });
|
|
65
62
|
// -- projects
|
|
66
63
|
var projects_1 = require("./hooks/projects");
|
|
67
64
|
Object.defineProperty(exports, "useProject", { enumerable: true, get: function () { return projects_1.useProject; } });
|
|
@@ -71,18 +68,8 @@ var crypto_1 = require("./hooks/crypto");
|
|
|
71
68
|
Object.defineProperty(exports, "useSignTestingJwt", { enumerable: true, get: function () { return crypto_1.useSignTestingJwt; } });
|
|
72
69
|
// -- authentication (now Redux-powered)
|
|
73
70
|
var auth_redux_1 = require("./hooks/auth-redux");
|
|
74
|
-
Object.defineProperty(exports, "
|
|
75
|
-
Object.defineProperty(exports, "
|
|
76
|
-
// Legacy auth exports (for reference - keep existing Context implementation available)
|
|
77
|
-
var auth_1 = require("./hooks/auth");
|
|
78
|
-
Object.defineProperty(exports, "useAuthContext", { enumerable: true, get: function () { return auth_1.useAuth; } });
|
|
79
|
-
Object.defineProperty(exports, "useAuthData", { enumerable: true, get: function () { return auth_1.useAuthData; } });
|
|
80
|
-
Object.defineProperty(exports, "useRequestNewAccessToken", { enumerable: true, get: function () { return auth_1.useRequestNewAccessToken; } });
|
|
81
|
-
Object.defineProperty(exports, "useSignUpWithEmailAndPassword", { enumerable: true, get: function () { return auth_1.useSignUpWithEmailAndPassword; } });
|
|
82
|
-
Object.defineProperty(exports, "useSignInWithEmailAndPassword", { enumerable: true, get: function () { return auth_1.useSignInWithEmailAndPassword; } });
|
|
83
|
-
Object.defineProperty(exports, "useSignOut", { enumerable: true, get: function () { return auth_1.useSignOut; } });
|
|
84
|
-
Object.defineProperty(exports, "useChangePassword", { enumerable: true, get: function () { return auth_1.useChangePassword; } });
|
|
85
|
-
Object.defineProperty(exports, "useVerifyExternalUser", { enumerable: true, get: function () { return auth_1.useVerifyExternalUser; } });
|
|
71
|
+
Object.defineProperty(exports, "useAuthRedux", { enumerable: true, get: function () { return auth_redux_1.useAuthRedux; } });
|
|
72
|
+
Object.defineProperty(exports, "useUserRedux", { enumerable: true, get: function () { return auth_redux_1.useUserRedux; } });
|
|
86
73
|
// -- app notifications
|
|
87
74
|
var app_notifications_1 = require("./hooks/app-notifications");
|
|
88
75
|
Object.defineProperty(exports, "useAppNotifications", { enumerable: true, get: function () { return app_notifications_1.useAppNotifications; } });
|
package/dist/cjs/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sBAAsB;AACtB,mDAAkD;AAAzC,0GAAA,WAAW,OAAA;AACpB,qEAAoE;AAA3D,0HAAA,mBAAmB,OAAA;AAC5B,qDAAoD;AAA3C,0GAAA,WAAW,OAAA;AACpB,+DAAyE;AAAhE,qIAAA,OAAO,OAAoB;AAEpC,YAAY;AACZ,2DAA0D;AAAjD,8GAAA,aAAa,OAAA;AAGtB,mDAAmD;AACnD,qCAQmB;AAPjB,0GAAA,eAAe,OAAA;AACf,6GAAA,kBAAkB,OAAA;AAClB,yGAAA,cAAc,OAAA;AACd,wGAAA,aAAa,OAAA;AACb,mHAAA,wBAAwB,OAAA;AACxB,iHAAA,sBAAsB,OAAA;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,sBAAsB;AACtB,mDAAkD;AAAzC,0GAAA,WAAW,OAAA;AACpB,qEAAoE;AAA3D,0HAAA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
6
|
export { AppNotificationsProvider } from "./app-notifications-context";
|
|
7
7
|
export { CommentSectionProvider } from "./comment-section-context";
|
|
8
|
-
export { AuthProvider } from "./auth-context";
|
|
@@ -5,7 +5,4 @@ export { EntityProvider } from "./entity-context";
|
|
|
5
5
|
export { ListsProvider } from "./lists-context";
|
|
6
6
|
export { AppNotificationsProvider } from "./app-notifications-context";
|
|
7
7
|
export { CommentSectionProvider } from "./comment-section-context";
|
|
8
|
-
// Legacy Context providers (kept for reference but not recommended for new implementations)
|
|
9
|
-
// Use Redux-powered equivalents instead
|
|
10
|
-
export { AuthProvider } from "./auth-context";
|
|
11
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/context/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/context/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -5,19 +5,18 @@ export { default as getPublicFileUrl } from "./helpers/getPublicFileUrl";
|
|
|
5
5
|
export { reportReasons } from "./constants/reportReasons";
|
|
6
6
|
export type { ReportReasonKey } from "./constants/reportReasons";
|
|
7
7
|
export { ReplykeProvider, // Always includes Redux auth and notification management
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
ReplykeStoreProvider, // Advanced: standalone Redux provider
|
|
9
|
+
EntityListProvider, EntityProvider, ListsProvider, AppNotificationsProvider, CommentSectionProvider, } from "./context";
|
|
10
10
|
export { useProject, useProjectData } from "./hooks/projects";
|
|
11
11
|
export { useSignTestingJwt } from "./hooks/crypto";
|
|
12
|
-
export { useAuthRedux
|
|
13
|
-
export { useAuth as useAuthContext, useAuthData, useRequestNewAccessToken, useSignUpWithEmailAndPassword, useSignInWithEmailAndPassword, useSignOut, useChangePassword, useVerifyExternalUser, } from "./hooks/auth";
|
|
12
|
+
export { useAuthRedux, useUserRedux, type UseAuthReduxValues, type UseUserReduxValues, } from "./hooks/auth-redux";
|
|
14
13
|
export { useAppNotifications, useAppNotificationsData, useCountUnreadNotifications, useFetchAppNotifications, useMarkNotificationAsRead, } from "./hooks/app-notifications";
|
|
15
14
|
export { useAppNotificationsRedux, useAppNotificationsDataRedux, type UseAppNotificationsDataProps, type UseAppNotificationsDataValues, } from "./hooks/app-notifications-redux";
|
|
16
15
|
export { useEntity, useEntityData, useCreateEntity, useFetchEntity, useFetchEntityByForeignId, useFetchEntityByShortId, useUpdateEntity, useEntityVotes, useDeleteEntity, useEntityList, useEntityListData, useInfusedData, } from "./hooks/entities";
|
|
17
16
|
export { useCommentSection, useCommentSectionData, useCreateComment, useFetchManyComments, useFetchComment, useFetchCommentByForeignId, useReplies, useUpdateComment, useCommentVotes, useDeleteComment, useEntityComments, useProfileComments, } from "./hooks/comments";
|
|
18
17
|
export { useLists, useListsData, useCreateList, useFetchRootList, useFetchSubLists, useIsEntitySaved, useUpdateList, useAddToList, useRemoveFromList, useDeleteList, } from "./hooks/lists";
|
|
19
18
|
export { useUserData, useFetchUser, useFetchUserByForeignId, useFetchUserFollowersCount, useFetchUserFollowingCount, useCheckUsernameAvailability, useFetchUserSuggestions, useMentions, useUpdateUser, useFetchFollow, useFollowUser, useUnfollowUser, } from "./hooks/users";
|
|
20
|
-
export { useUser as useUserContext
|
|
19
|
+
export { useUser as useUserContext } from "./hooks/users";
|
|
21
20
|
export { useCreateReport } from "./hooks/reports";
|
|
22
21
|
export { useGetMetadata } from "./hooks/utils";
|
|
23
22
|
export { useUploadFile } from "./hooks/storage";
|
package/dist/esm/index.js
CHANGED
|
@@ -7,19 +7,14 @@ export { default as getPublicFileUrl } from "./helpers/getPublicFileUrl";
|
|
|
7
7
|
export { reportReasons } from "./constants/reportReasons";
|
|
8
8
|
// Context providers (now Redux-powered by default)
|
|
9
9
|
export { ReplykeProvider, // Always includes Redux auth and notification management
|
|
10
|
-
|
|
11
|
-
} from "./context";
|
|
12
|
-
// Legacy Context providers (for reference)
|
|
13
|
-
export { AuthProvider, // Legacy - use Redux-powered ReplykeProvider instead
|
|
14
|
-
} from "./context";
|
|
10
|
+
ReplykeStoreProvider, // Advanced: standalone Redux provider
|
|
11
|
+
EntityListProvider, EntityProvider, ListsProvider, AppNotificationsProvider, CommentSectionProvider, } from "./context";
|
|
15
12
|
// -- projects
|
|
16
13
|
export { useProject, useProjectData } from "./hooks/projects";
|
|
17
14
|
// -- crypto
|
|
18
15
|
export { useSignTestingJwt } from "./hooks/crypto";
|
|
19
16
|
// -- authentication (now Redux-powered)
|
|
20
|
-
export { useAuthRedux
|
|
21
|
-
// Legacy auth exports (for reference - keep existing Context implementation available)
|
|
22
|
-
export { useAuth as useAuthContext, useAuthData, useRequestNewAccessToken, useSignUpWithEmailAndPassword, useSignInWithEmailAndPassword, useSignOut, useChangePassword, useVerifyExternalUser, } from "./hooks/auth";
|
|
17
|
+
export { useAuthRedux, useUserRedux, } from "./hooks/auth-redux";
|
|
23
18
|
// -- app notifications
|
|
24
19
|
export { useAppNotifications, useAppNotificationsData, useCountUnreadNotifications, useFetchAppNotifications, useMarkNotificationAsRead, } from "./hooks/app-notifications";
|
|
25
20
|
// -- app notifications (Redux-powered)
|
|
@@ -33,7 +28,7 @@ export { useLists, useListsData, useCreateList, useFetchRootList, useFetchSubLis
|
|
|
33
28
|
// -- users
|
|
34
29
|
export { useUserData, useFetchUser, useFetchUserByForeignId, useFetchUserFollowersCount, useFetchUserFollowingCount, useCheckUsernameAvailability, useFetchUserSuggestions, useMentions, useUpdateUser, useFetchFollow, useFollowUser, useUnfollowUser, } from "./hooks/users";
|
|
35
30
|
// Legacy user exports (for reference - keep existing Context implementation available)
|
|
36
|
-
export { useUser as useUserContext
|
|
31
|
+
export { useUser as useUserContext } from "./hooks/users";
|
|
37
32
|
// -- reports
|
|
38
33
|
export { useCreateReport } from "./hooks/reports";
|
|
39
34
|
// -- general
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAEzE,YAAY;AACZ,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAG1D,mDAAmD;AACnD,OAAO,EACL,eAAe,EAAE,yDAAyD;AAC1E,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,wBAAwB,EACxB,sBAAsB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":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