@mirantes-micro/foundation-design-system 1.2.146 → 1.2.148
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/index.d.ts +373 -53
- package/dist/index.js +97 -97
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import * as _tanstack_react_query from '@tanstack/react-query';
|
|
|
4
4
|
import { QueryClient } from '@tanstack/react-query';
|
|
5
5
|
import { AxiosInstance } from 'axios';
|
|
6
6
|
import * as zustand from 'zustand';
|
|
7
|
+
import * as zustand_middleware from 'zustand/middleware';
|
|
7
8
|
|
|
8
9
|
declare function Spinner({ className }: {
|
|
9
10
|
className?: string;
|
|
@@ -58,7 +59,7 @@ interface IMirantesFoundationProviderProps {
|
|
|
58
59
|
locale?: TLocale;
|
|
59
60
|
Link?: LinkComponent;
|
|
60
61
|
usePathname?: UsePathname;
|
|
61
|
-
user?: User$
|
|
62
|
+
user?: User$3;
|
|
62
63
|
isGettingUser?: boolean;
|
|
63
64
|
isGettingStats?: boolean;
|
|
64
65
|
hostUrl?: string;
|
|
@@ -85,7 +86,7 @@ interface IMirantesFoundationContext {
|
|
|
85
86
|
locale?: TLocale;
|
|
86
87
|
Link?: LinkComponent;
|
|
87
88
|
usePathname?: UsePathname;
|
|
88
|
-
user?: User$
|
|
89
|
+
user?: User$3;
|
|
89
90
|
isPageFeed?: boolean;
|
|
90
91
|
isCommunityFeed?: boolean;
|
|
91
92
|
community?: {
|
|
@@ -123,7 +124,7 @@ type CommonLinkProps = {
|
|
|
123
124
|
replace?: boolean;
|
|
124
125
|
[key: string]: any;
|
|
125
126
|
};
|
|
126
|
-
type User$
|
|
127
|
+
type User$3 = {
|
|
127
128
|
id: string;
|
|
128
129
|
name: string;
|
|
129
130
|
email: string;
|
|
@@ -708,7 +709,19 @@ interface JobTriggerState {
|
|
|
708
709
|
closeJob: () => void;
|
|
709
710
|
toggleJob: () => void;
|
|
710
711
|
}
|
|
711
|
-
declare const useJobTriggerStore: zustand.UseBoundStore<zustand.StoreApi<JobTriggerState
|
|
712
|
+
declare const useJobTriggerStore: zustand.UseBoundStore<Omit<zustand.StoreApi<JobTriggerState>, "setState" | "persist"> & {
|
|
713
|
+
setState(partial: JobTriggerState | Partial<JobTriggerState> | ((state: JobTriggerState) => JobTriggerState | Partial<JobTriggerState>), replace?: false | undefined): unknown;
|
|
714
|
+
setState(state: JobTriggerState | ((state: JobTriggerState) => JobTriggerState), replace: true): unknown;
|
|
715
|
+
persist: {
|
|
716
|
+
setOptions: (options: Partial<zustand_middleware.PersistOptions<JobTriggerState, unknown, unknown>>) => void;
|
|
717
|
+
clearStorage: () => void;
|
|
718
|
+
rehydrate: () => Promise<void> | void;
|
|
719
|
+
hasHydrated: () => boolean;
|
|
720
|
+
onHydrate: (fn: (state: JobTriggerState) => void) => () => void;
|
|
721
|
+
onFinishHydration: (fn: (state: JobTriggerState) => void) => () => void;
|
|
722
|
+
getOptions: () => Partial<zustand_middleware.PersistOptions<JobTriggerState, unknown, unknown>>;
|
|
723
|
+
};
|
|
724
|
+
}>;
|
|
712
725
|
|
|
713
726
|
interface CandidaciesTriggerState {
|
|
714
727
|
isCandidaciesOpen: boolean;
|
|
@@ -995,7 +1008,7 @@ declare const useApiCheckRater: ({ userId, pageId, communityId, forAPage, }: {
|
|
|
995
1008
|
isCheckingRater: boolean;
|
|
996
1009
|
};
|
|
997
1010
|
|
|
998
|
-
type User$
|
|
1011
|
+
type User$2 = {
|
|
999
1012
|
id?: string;
|
|
1000
1013
|
name?: string;
|
|
1001
1014
|
slug?: string;
|
|
@@ -1035,11 +1048,11 @@ type User$1 = {
|
|
|
1035
1048
|
updatedAt?: string;
|
|
1036
1049
|
isPublic?: boolean;
|
|
1037
1050
|
currentCompany?: string;
|
|
1038
|
-
person?: IPerson$
|
|
1051
|
+
person?: IPerson$2;
|
|
1039
1052
|
link?: string;
|
|
1040
1053
|
links?: string[];
|
|
1041
1054
|
};
|
|
1042
|
-
interface IPerson$
|
|
1055
|
+
interface IPerson$2 {
|
|
1043
1056
|
gender?: string;
|
|
1044
1057
|
birthDate?: Date;
|
|
1045
1058
|
nationality?: string;
|
|
@@ -1047,15 +1060,15 @@ interface IPerson$1 {
|
|
|
1047
1060
|
salaryExpectation?: string;
|
|
1048
1061
|
countryCode?: string;
|
|
1049
1062
|
}
|
|
1050
|
-
type PostAttachmentProps$
|
|
1063
|
+
type PostAttachmentProps$2 = {
|
|
1051
1064
|
title?: string;
|
|
1052
1065
|
description?: string;
|
|
1053
1066
|
imageUrl?: string;
|
|
1054
1067
|
url?: string;
|
|
1055
1068
|
type: string;
|
|
1056
1069
|
};
|
|
1057
|
-
type Post$
|
|
1058
|
-
user: User$
|
|
1070
|
+
type Post$2 = {
|
|
1071
|
+
user: User$2;
|
|
1059
1072
|
postType: "NORMAL" | "REEL";
|
|
1060
1073
|
id: string;
|
|
1061
1074
|
createdAt: string;
|
|
@@ -1065,7 +1078,7 @@ type Post$1 = {
|
|
|
1065
1078
|
totalShares: number;
|
|
1066
1079
|
totalReactions?: number;
|
|
1067
1080
|
totalComments?: number;
|
|
1068
|
-
attachment?: PostAttachmentProps$
|
|
1081
|
+
attachment?: PostAttachmentProps$2;
|
|
1069
1082
|
isFollowed?: boolean;
|
|
1070
1083
|
isContact?: boolean;
|
|
1071
1084
|
isArticle?: boolean;
|
|
@@ -1076,10 +1089,10 @@ type Post$1 = {
|
|
|
1076
1089
|
imageUrl: string;
|
|
1077
1090
|
url: string;
|
|
1078
1091
|
};
|
|
1079
|
-
images: PostAssetProps$
|
|
1080
|
-
videos: PostAssetProps$
|
|
1081
|
-
reactions: PostReactionsProps$
|
|
1082
|
-
comments: CommentProps$
|
|
1092
|
+
images: PostAssetProps$2[];
|
|
1093
|
+
videos: PostAssetProps$2[];
|
|
1094
|
+
reactions: PostReactionsProps$2[];
|
|
1095
|
+
comments: CommentProps$2[];
|
|
1083
1096
|
sharedPostId: string;
|
|
1084
1097
|
page?: {
|
|
1085
1098
|
id?: string;
|
|
@@ -1093,7 +1106,7 @@ type Post$1 = {
|
|
|
1093
1106
|
media?: unknown;
|
|
1094
1107
|
linkPreview?: unknown;
|
|
1095
1108
|
visibility?: string;
|
|
1096
|
-
sharedPost: Post$
|
|
1109
|
+
sharedPost: Post$2;
|
|
1097
1110
|
title?: string;
|
|
1098
1111
|
stats?: {
|
|
1099
1112
|
reactionCount?: number;
|
|
@@ -1104,7 +1117,7 @@ type Post$1 = {
|
|
|
1104
1117
|
mention?: {
|
|
1105
1118
|
id: string;
|
|
1106
1119
|
mentionedId: string;
|
|
1107
|
-
mentioned: User$
|
|
1120
|
+
mentioned: User$2;
|
|
1108
1121
|
}[];
|
|
1109
1122
|
community?: {
|
|
1110
1123
|
id: string;
|
|
@@ -1150,31 +1163,31 @@ type Post$1 = {
|
|
|
1150
1163
|
};
|
|
1151
1164
|
communityId?: string;
|
|
1152
1165
|
};
|
|
1153
|
-
type PostAssetProps$
|
|
1166
|
+
type PostAssetProps$2 = {
|
|
1154
1167
|
id: string;
|
|
1155
1168
|
url: string;
|
|
1156
1169
|
type?: "image" | "video" | "pdf";
|
|
1157
1170
|
createdAt?: string;
|
|
1158
1171
|
};
|
|
1159
|
-
type PostReactionsProps$
|
|
1172
|
+
type PostReactionsProps$2 = {
|
|
1160
1173
|
id: string;
|
|
1161
1174
|
userId: string;
|
|
1162
1175
|
postId: string;
|
|
1163
1176
|
reaction: "LIKE" | "LOVE" | "HAHA" | "WOW" | "SAD" | "ANGRY";
|
|
1164
1177
|
createdAt: string;
|
|
1165
1178
|
updatedAt: string;
|
|
1166
|
-
user: User$
|
|
1179
|
+
user: User$2;
|
|
1167
1180
|
};
|
|
1168
|
-
type CommentReactionsProps$
|
|
1181
|
+
type CommentReactionsProps$2 = {
|
|
1169
1182
|
id: string;
|
|
1170
1183
|
userId: string;
|
|
1171
1184
|
commentId: string;
|
|
1172
1185
|
reaction: "LIKE" | "LOVE" | "HAHA" | "AGREE" | "DISLIKE" | "EUREKA" | "NO_COMMENT" | "SUPPORT";
|
|
1173
1186
|
createdAt: string;
|
|
1174
1187
|
updatedAt: string;
|
|
1175
|
-
user?: User$
|
|
1188
|
+
user?: User$2;
|
|
1176
1189
|
};
|
|
1177
|
-
type CommentProps$
|
|
1190
|
+
type CommentProps$2 = {
|
|
1178
1191
|
id: string;
|
|
1179
1192
|
userId: string;
|
|
1180
1193
|
postId: string;
|
|
@@ -1183,10 +1196,10 @@ type CommentProps$1 = {
|
|
|
1183
1196
|
imageUrl: string;
|
|
1184
1197
|
createdAt: string;
|
|
1185
1198
|
updatedAt: string;
|
|
1186
|
-
user: User$
|
|
1187
|
-
reactions: CommentReactionsProps$
|
|
1199
|
+
user: User$2;
|
|
1200
|
+
reactions: CommentReactionsProps$2[];
|
|
1188
1201
|
totalReactions?: number;
|
|
1189
|
-
answers: CommentProps$
|
|
1202
|
+
answers: CommentProps$2[];
|
|
1190
1203
|
totalAnswers: number;
|
|
1191
1204
|
page?: {
|
|
1192
1205
|
id: string;
|
|
@@ -1199,7 +1212,7 @@ type CommentProps$1 = {
|
|
|
1199
1212
|
interface SharePostModalProps {
|
|
1200
1213
|
isOpen: boolean;
|
|
1201
1214
|
onClose: () => void;
|
|
1202
|
-
post: Post$
|
|
1215
|
+
post: Post$2;
|
|
1203
1216
|
variant?: "share" | "repost";
|
|
1204
1217
|
}
|
|
1205
1218
|
declare const SharePostModal: ({ isOpen, onClose, post, variant }: SharePostModalProps) => React__default.JSX.Element;
|
|
@@ -1211,7 +1224,7 @@ interface IActivateAccountModalProps {
|
|
|
1211
1224
|
|
|
1212
1225
|
declare function ActivateAccountModal({ isOpen, onClose }: IActivateAccountModalProps): React__default.JSX.Element;
|
|
1213
1226
|
|
|
1214
|
-
type User = {
|
|
1227
|
+
type User$1 = {
|
|
1215
1228
|
id?: string;
|
|
1216
1229
|
name?: string;
|
|
1217
1230
|
slug?: string;
|
|
@@ -1251,11 +1264,11 @@ type User = {
|
|
|
1251
1264
|
updatedAt?: string;
|
|
1252
1265
|
isPublic?: boolean;
|
|
1253
1266
|
currentCompany?: string;
|
|
1254
|
-
person?: IPerson;
|
|
1267
|
+
person?: IPerson$1;
|
|
1255
1268
|
link?: string;
|
|
1256
1269
|
links?: string[];
|
|
1257
1270
|
};
|
|
1258
|
-
interface IPerson {
|
|
1271
|
+
interface IPerson$1 {
|
|
1259
1272
|
gender?: string;
|
|
1260
1273
|
birthDate?: Date;
|
|
1261
1274
|
nationality?: string;
|
|
@@ -1264,15 +1277,15 @@ interface IPerson {
|
|
|
1264
1277
|
countryCode?: string;
|
|
1265
1278
|
}
|
|
1266
1279
|
|
|
1267
|
-
type PostAttachmentProps = {
|
|
1280
|
+
type PostAttachmentProps$1 = {
|
|
1268
1281
|
title?: string;
|
|
1269
1282
|
description?: string;
|
|
1270
1283
|
imageUrl?: string;
|
|
1271
1284
|
url?: string;
|
|
1272
1285
|
type: string;
|
|
1273
1286
|
};
|
|
1274
|
-
type Post = {
|
|
1275
|
-
user: User;
|
|
1287
|
+
type Post$1 = {
|
|
1288
|
+
user: User$1;
|
|
1276
1289
|
postType: "NORMAL" | "REEL" | "ARTICLE";
|
|
1277
1290
|
id: string;
|
|
1278
1291
|
createdAt: string;
|
|
@@ -1282,7 +1295,7 @@ type Post = {
|
|
|
1282
1295
|
totalShares: number;
|
|
1283
1296
|
totalReactions?: number;
|
|
1284
1297
|
totalComments?: number;
|
|
1285
|
-
attachment?: PostAttachmentProps;
|
|
1298
|
+
attachment?: PostAttachmentProps$1;
|
|
1286
1299
|
isFollowed?: boolean;
|
|
1287
1300
|
isContact?: boolean;
|
|
1288
1301
|
isArticle?: boolean;
|
|
@@ -1294,10 +1307,10 @@ type Post = {
|
|
|
1294
1307
|
imageUrl: string;
|
|
1295
1308
|
url: string;
|
|
1296
1309
|
};
|
|
1297
|
-
images: PostAssetProps[];
|
|
1298
|
-
videos: PostAssetProps[];
|
|
1299
|
-
reactions: PostReactionsProps[];
|
|
1300
|
-
comments: CommentProps[];
|
|
1310
|
+
images: PostAssetProps$1[];
|
|
1311
|
+
videos: PostAssetProps$1[];
|
|
1312
|
+
reactions: PostReactionsProps$1[];
|
|
1313
|
+
comments: CommentProps$1[];
|
|
1301
1314
|
sharedPostId: string;
|
|
1302
1315
|
page?: {
|
|
1303
1316
|
id?: string;
|
|
@@ -1311,7 +1324,7 @@ type Post = {
|
|
|
1311
1324
|
media?: unknown;
|
|
1312
1325
|
linkPreview?: unknown;
|
|
1313
1326
|
visibility?: string;
|
|
1314
|
-
sharedPost: Post;
|
|
1327
|
+
sharedPost: Post$1;
|
|
1315
1328
|
title?: string;
|
|
1316
1329
|
stats?: {
|
|
1317
1330
|
reactionCount?: number;
|
|
@@ -1322,7 +1335,7 @@ type Post = {
|
|
|
1322
1335
|
mention?: {
|
|
1323
1336
|
id: string;
|
|
1324
1337
|
mentionedId: string;
|
|
1325
|
-
mentioned: User;
|
|
1338
|
+
mentioned: User$1;
|
|
1326
1339
|
}[];
|
|
1327
1340
|
community?: {
|
|
1328
1341
|
id: string;
|
|
@@ -1368,31 +1381,31 @@ type Post = {
|
|
|
1368
1381
|
};
|
|
1369
1382
|
communityId?: string;
|
|
1370
1383
|
};
|
|
1371
|
-
type PostAssetProps = {
|
|
1384
|
+
type PostAssetProps$1 = {
|
|
1372
1385
|
id: string;
|
|
1373
1386
|
url: string;
|
|
1374
1387
|
type?: "image" | "video" | "pdf";
|
|
1375
1388
|
createdAt?: string;
|
|
1376
1389
|
};
|
|
1377
|
-
type PostReactionsProps = {
|
|
1390
|
+
type PostReactionsProps$1 = {
|
|
1378
1391
|
id: string;
|
|
1379
1392
|
userId: string;
|
|
1380
1393
|
postId: string;
|
|
1381
1394
|
reaction: "LIKE" | "LOVE" | "HAHA" | "WOW" | "SAD" | "ANGRY" | "AGREE" | "DISLIKE" | "EUREKA" | "NO_COMMENT" | "SUPPORT" | "DISAGREE";
|
|
1382
1395
|
createdAt?: string;
|
|
1383
1396
|
updatedAt?: string;
|
|
1384
|
-
user?: User;
|
|
1397
|
+
user?: User$1;
|
|
1385
1398
|
};
|
|
1386
|
-
type CommentReactionsProps = {
|
|
1399
|
+
type CommentReactionsProps$1 = {
|
|
1387
1400
|
id: string;
|
|
1388
1401
|
userId: string;
|
|
1389
1402
|
commentId: string;
|
|
1390
1403
|
reaction: "LIKE" | "LOVE" | "HAHA" | "AGREE" | "DISLIKE" | "EUREKA" | "NO_COMMENT" | "SUPPORT";
|
|
1391
1404
|
createdAt: string;
|
|
1392
1405
|
updatedAt: string;
|
|
1393
|
-
user?: User;
|
|
1406
|
+
user?: User$1;
|
|
1394
1407
|
};
|
|
1395
|
-
type CommentProps = {
|
|
1408
|
+
type CommentProps$1 = {
|
|
1396
1409
|
id: string;
|
|
1397
1410
|
userId: string;
|
|
1398
1411
|
postId: string;
|
|
@@ -1401,10 +1414,10 @@ type CommentProps = {
|
|
|
1401
1414
|
imageUrl: string;
|
|
1402
1415
|
createdAt: string;
|
|
1403
1416
|
updatedAt: string;
|
|
1404
|
-
user: User;
|
|
1405
|
-
reactions: CommentReactionsProps[];
|
|
1417
|
+
user: User$1;
|
|
1418
|
+
reactions: CommentReactionsProps$1[];
|
|
1406
1419
|
totalReactions?: number;
|
|
1407
|
-
answers: CommentProps[];
|
|
1420
|
+
answers: CommentProps$1[];
|
|
1408
1421
|
totalAnswers: number;
|
|
1409
1422
|
page?: {
|
|
1410
1423
|
id: string;
|
|
@@ -1415,7 +1428,7 @@ type CommentProps = {
|
|
|
1415
1428
|
};
|
|
1416
1429
|
|
|
1417
1430
|
declare function ReactPostButton({ post, hideLabel, className, orientation, }: {
|
|
1418
|
-
post: Post;
|
|
1431
|
+
post: Post$1;
|
|
1419
1432
|
hideLabel?: boolean;
|
|
1420
1433
|
className?: string;
|
|
1421
1434
|
orientation?: "vertical" | "horizontal";
|
|
@@ -1635,7 +1648,7 @@ type ArticleMedia = {
|
|
|
1635
1648
|
type ArticleState = {
|
|
1636
1649
|
title: string;
|
|
1637
1650
|
content: string;
|
|
1638
|
-
post: Post | null;
|
|
1651
|
+
post: Post$1 | null;
|
|
1639
1652
|
selectedProfile: Profile | null;
|
|
1640
1653
|
media: ArticleMedia[];
|
|
1641
1654
|
uploadedMedia: string[];
|
|
@@ -1652,7 +1665,7 @@ type ArticleState = {
|
|
|
1652
1665
|
currentDraftId: string | null;
|
|
1653
1666
|
setTitle: (title: string) => void;
|
|
1654
1667
|
setContent: (content: string) => void;
|
|
1655
|
-
setPost: (post: Post | null) => void;
|
|
1668
|
+
setPost: (post: Post$1 | null) => void;
|
|
1656
1669
|
setSelectedProfile: (profile: Profile | null) => void;
|
|
1657
1670
|
addMedia: (media: ArticleMedia) => void;
|
|
1658
1671
|
removeMedia: (id: string) => void;
|
|
@@ -1688,6 +1701,286 @@ declare const useArticleNavigation: () => {
|
|
|
1688
1701
|
|
|
1689
1702
|
declare function CreatePostCard(): React__default.JSX.Element;
|
|
1690
1703
|
|
|
1704
|
+
interface IMention {
|
|
1705
|
+
id: string;
|
|
1706
|
+
mentionedId: string;
|
|
1707
|
+
mentionType: string;
|
|
1708
|
+
mentionedCommunity?: {
|
|
1709
|
+
slug: string;
|
|
1710
|
+
name: string;
|
|
1711
|
+
id: string;
|
|
1712
|
+
image: string;
|
|
1713
|
+
};
|
|
1714
|
+
mentionedPage?: {
|
|
1715
|
+
name: string;
|
|
1716
|
+
slug: string;
|
|
1717
|
+
logo: string;
|
|
1718
|
+
id: string;
|
|
1719
|
+
};
|
|
1720
|
+
mentionedUser?: {
|
|
1721
|
+
id: string;
|
|
1722
|
+
name: string;
|
|
1723
|
+
slug: string;
|
|
1724
|
+
avatar: string;
|
|
1725
|
+
};
|
|
1726
|
+
}
|
|
1727
|
+
|
|
1728
|
+
interface CreatePostFormState {
|
|
1729
|
+
content: string;
|
|
1730
|
+
isUploading: boolean;
|
|
1731
|
+
hashtags?: string[];
|
|
1732
|
+
setHashtags: (value?: string[]) => void;
|
|
1733
|
+
mentions?: IMention[];
|
|
1734
|
+
setMentions: (mentions?: IMention[]) => void;
|
|
1735
|
+
mentionedUsers?: User$3[];
|
|
1736
|
+
setMentionedUsers: (users?: User$3[]) => void;
|
|
1737
|
+
uploadedMedia: string[];
|
|
1738
|
+
selectedFiles: File[];
|
|
1739
|
+
currentAssets: {
|
|
1740
|
+
id: string;
|
|
1741
|
+
url: string;
|
|
1742
|
+
}[];
|
|
1743
|
+
assetsToDelete: {
|
|
1744
|
+
id: string;
|
|
1745
|
+
url: string;
|
|
1746
|
+
}[];
|
|
1747
|
+
setCurrentAssets: (assets: {
|
|
1748
|
+
id: string;
|
|
1749
|
+
url: string;
|
|
1750
|
+
}[]) => void;
|
|
1751
|
+
setContent: (content: string) => void;
|
|
1752
|
+
handleMediaUpload: (files: FileList | null, ignore?: boolean) => void;
|
|
1753
|
+
removeMedia: (index: number) => void;
|
|
1754
|
+
resetForm: () => void;
|
|
1755
|
+
resetFormContent: () => void;
|
|
1756
|
+
isValid: boolean;
|
|
1757
|
+
isCreatingThePost: boolean;
|
|
1758
|
+
setIsCreatingThePost: (isCreatingThePost: boolean) => void;
|
|
1759
|
+
uploadProgress: number;
|
|
1760
|
+
setUploadProgress: (progress: number) => void;
|
|
1761
|
+
isProcessingPost: boolean;
|
|
1762
|
+
setIsProcessingPost: (isProcessing: boolean) => void;
|
|
1763
|
+
progressText: string;
|
|
1764
|
+
setProgressText: (text: string) => void;
|
|
1765
|
+
}
|
|
1766
|
+
declare const useCreatePostFormStore: zustand.UseBoundStore<zustand.StoreApi<CreatePostFormState>>;
|
|
1767
|
+
|
|
1768
|
+
type User = {
|
|
1769
|
+
id?: string;
|
|
1770
|
+
name?: string;
|
|
1771
|
+
slug?: string;
|
|
1772
|
+
about?: string;
|
|
1773
|
+
email?: string;
|
|
1774
|
+
phone?: string;
|
|
1775
|
+
isOpenToWork?: boolean;
|
|
1776
|
+
gender?: string;
|
|
1777
|
+
banner?: string;
|
|
1778
|
+
isContact?: boolean;
|
|
1779
|
+
isFollowed?: boolean;
|
|
1780
|
+
isFollowedBy?: boolean;
|
|
1781
|
+
birthDate?: string;
|
|
1782
|
+
nationality?: string;
|
|
1783
|
+
headline?: string;
|
|
1784
|
+
country?: string;
|
|
1785
|
+
city?: string;
|
|
1786
|
+
street?: string;
|
|
1787
|
+
countryCode?: string;
|
|
1788
|
+
profession?: string;
|
|
1789
|
+
addresses?: {
|
|
1790
|
+
country?: string;
|
|
1791
|
+
city?: string;
|
|
1792
|
+
address?: string;
|
|
1793
|
+
}[];
|
|
1794
|
+
address?: {
|
|
1795
|
+
country?: string;
|
|
1796
|
+
city?: string;
|
|
1797
|
+
address?: string;
|
|
1798
|
+
};
|
|
1799
|
+
avatar?: string;
|
|
1800
|
+
avatarDisplay?: string;
|
|
1801
|
+
provider?: string;
|
|
1802
|
+
role?: string;
|
|
1803
|
+
status?: string;
|
|
1804
|
+
createdAt?: string;
|
|
1805
|
+
updatedAt?: string;
|
|
1806
|
+
isPublic?: boolean;
|
|
1807
|
+
currentCompany?: string;
|
|
1808
|
+
person?: IPerson;
|
|
1809
|
+
link?: string;
|
|
1810
|
+
links?: string[];
|
|
1811
|
+
};
|
|
1812
|
+
interface IPerson {
|
|
1813
|
+
gender?: string;
|
|
1814
|
+
birthDate?: Date;
|
|
1815
|
+
nationality?: string;
|
|
1816
|
+
maritalStatus?: string;
|
|
1817
|
+
salaryExpectation?: string;
|
|
1818
|
+
countryCode?: string;
|
|
1819
|
+
}
|
|
1820
|
+
|
|
1821
|
+
type PostAttachmentProps = {
|
|
1822
|
+
title?: string;
|
|
1823
|
+
description?: string;
|
|
1824
|
+
imageUrl?: string;
|
|
1825
|
+
url?: string;
|
|
1826
|
+
type: string;
|
|
1827
|
+
};
|
|
1828
|
+
type Post = {
|
|
1829
|
+
user: User;
|
|
1830
|
+
postType: "NORMAL" | "REEL" | "ARTICLE";
|
|
1831
|
+
id: string;
|
|
1832
|
+
createdAt: string;
|
|
1833
|
+
scheduledAt?: string;
|
|
1834
|
+
bio: string;
|
|
1835
|
+
content: string;
|
|
1836
|
+
totalShares: number;
|
|
1837
|
+
totalReactions?: number;
|
|
1838
|
+
totalComments?: number;
|
|
1839
|
+
attachment?: PostAttachmentProps;
|
|
1840
|
+
isFollowed?: boolean;
|
|
1841
|
+
isContact?: boolean;
|
|
1842
|
+
isArticle?: boolean;
|
|
1843
|
+
isDraft?: boolean;
|
|
1844
|
+
expiresAt?: string | null;
|
|
1845
|
+
link: {
|
|
1846
|
+
title: string;
|
|
1847
|
+
description: string;
|
|
1848
|
+
imageUrl: string;
|
|
1849
|
+
url: string;
|
|
1850
|
+
};
|
|
1851
|
+
images: PostAssetProps[];
|
|
1852
|
+
videos: PostAssetProps[];
|
|
1853
|
+
reactions: PostReactionsProps[];
|
|
1854
|
+
comments: CommentProps[];
|
|
1855
|
+
sharedPostId: string;
|
|
1856
|
+
pageId?: string;
|
|
1857
|
+
page?: {
|
|
1858
|
+
id?: string;
|
|
1859
|
+
name?: string;
|
|
1860
|
+
slug?: string;
|
|
1861
|
+
sector?: string;
|
|
1862
|
+
banner?: string;
|
|
1863
|
+
logo?: string;
|
|
1864
|
+
site?: string;
|
|
1865
|
+
};
|
|
1866
|
+
media?: unknown;
|
|
1867
|
+
linkPreview?: unknown;
|
|
1868
|
+
visibility?: string;
|
|
1869
|
+
sharedPost: Post;
|
|
1870
|
+
title?: string;
|
|
1871
|
+
stats?: {
|
|
1872
|
+
reactionCount?: number;
|
|
1873
|
+
commentCount?: number;
|
|
1874
|
+
shareCount?: number;
|
|
1875
|
+
};
|
|
1876
|
+
sharedContext?: unknown;
|
|
1877
|
+
mention?: IMention[];
|
|
1878
|
+
community?: {
|
|
1879
|
+
id: string;
|
|
1880
|
+
visibility: string;
|
|
1881
|
+
slug: string;
|
|
1882
|
+
banner?: string;
|
|
1883
|
+
createdAt?: string;
|
|
1884
|
+
description?: string;
|
|
1885
|
+
image?: string;
|
|
1886
|
+
location?: string;
|
|
1887
|
+
name: string;
|
|
1888
|
+
owner: {
|
|
1889
|
+
id: string;
|
|
1890
|
+
name: string;
|
|
1891
|
+
slug: string;
|
|
1892
|
+
email?: string;
|
|
1893
|
+
};
|
|
1894
|
+
ownerId: string;
|
|
1895
|
+
members?: {
|
|
1896
|
+
userId: string;
|
|
1897
|
+
user: {
|
|
1898
|
+
id: string;
|
|
1899
|
+
name: string;
|
|
1900
|
+
slug: string;
|
|
1901
|
+
};
|
|
1902
|
+
}[];
|
|
1903
|
+
};
|
|
1904
|
+
userId?: string;
|
|
1905
|
+
sharedInCommunity?: {
|
|
1906
|
+
id: string;
|
|
1907
|
+
slug: string;
|
|
1908
|
+
visibility: string;
|
|
1909
|
+
name: string;
|
|
1910
|
+
banner?: string;
|
|
1911
|
+
image?: string;
|
|
1912
|
+
location?: string;
|
|
1913
|
+
ownerId: string;
|
|
1914
|
+
owner: {
|
|
1915
|
+
id: string;
|
|
1916
|
+
slug: string;
|
|
1917
|
+
name: string;
|
|
1918
|
+
};
|
|
1919
|
+
};
|
|
1920
|
+
communityId?: string;
|
|
1921
|
+
};
|
|
1922
|
+
type PostAssetProps = {
|
|
1923
|
+
id: string;
|
|
1924
|
+
url: string;
|
|
1925
|
+
type?: "image" | "video" | "pdf";
|
|
1926
|
+
createdAt?: string;
|
|
1927
|
+
};
|
|
1928
|
+
type PostReactionsProps = {
|
|
1929
|
+
id: string;
|
|
1930
|
+
userId: string;
|
|
1931
|
+
postId: string;
|
|
1932
|
+
reaction: "LIKE" | "LOVE" | "HAHA" | "WOW" | "SAD" | "ANGRY";
|
|
1933
|
+
createdAt: string;
|
|
1934
|
+
updatedAt: string;
|
|
1935
|
+
user: User;
|
|
1936
|
+
};
|
|
1937
|
+
type CommentReactionsProps = {
|
|
1938
|
+
id: string;
|
|
1939
|
+
userId: string;
|
|
1940
|
+
commentId: string;
|
|
1941
|
+
reaction: "LIKE" | "LOVE" | "HAHA" | "AGREE" | "DISLIKE" | "EUREKA" | "NO_COMMENT" | "SUPPORT";
|
|
1942
|
+
createdAt: string;
|
|
1943
|
+
updatedAt: string;
|
|
1944
|
+
user?: User;
|
|
1945
|
+
};
|
|
1946
|
+
type CommentProps = {
|
|
1947
|
+
id: string;
|
|
1948
|
+
userId: string;
|
|
1949
|
+
postId: string;
|
|
1950
|
+
answerId: string;
|
|
1951
|
+
content: string;
|
|
1952
|
+
imageUrl: string;
|
|
1953
|
+
createdAt: string;
|
|
1954
|
+
updatedAt: string;
|
|
1955
|
+
user: User;
|
|
1956
|
+
reactions: CommentReactionsProps[];
|
|
1957
|
+
totalReactions?: number;
|
|
1958
|
+
answers: CommentProps[];
|
|
1959
|
+
totalAnswers: number;
|
|
1960
|
+
page?: {
|
|
1961
|
+
id: string;
|
|
1962
|
+
name: string;
|
|
1963
|
+
slug: string;
|
|
1964
|
+
sector: string;
|
|
1965
|
+
};
|
|
1966
|
+
};
|
|
1967
|
+
|
|
1968
|
+
type PostType = "text" | "media" | "job" | "reel" | "schedule" | null;
|
|
1969
|
+
type InitialStep = "main" | "schedule" | "scheduled-posts" | null;
|
|
1970
|
+
interface CreatePostState {
|
|
1971
|
+
isOpen: boolean;
|
|
1972
|
+
post: Post | undefined;
|
|
1973
|
+
setPost: (post: Post | undefined) => void;
|
|
1974
|
+
postType: PostType;
|
|
1975
|
+
initialStep: InitialStep;
|
|
1976
|
+
openModal: (type?: PostType, step?: InitialStep) => void;
|
|
1977
|
+
closeModal: (preserveFormState?: boolean) => void;
|
|
1978
|
+
operation: "create" | "update";
|
|
1979
|
+
setOperation: (operation: "create" | "update") => void;
|
|
1980
|
+
setInitialStep: (step: InitialStep) => void;
|
|
1981
|
+
}
|
|
1982
|
+
declare const useCreatePostStore: zustand.UseBoundStore<zustand.StoreApi<CreatePostState>>;
|
|
1983
|
+
|
|
1691
1984
|
declare const PostCardArticle: ({ src, title, content, isCompact, classImage, fontSize }: {
|
|
1692
1985
|
src?: string;
|
|
1693
1986
|
title?: string;
|
|
@@ -1724,4 +2017,31 @@ interface SavedItemsStoreProps {
|
|
|
1724
2017
|
}
|
|
1725
2018
|
declare const useSavedItemsStore: zustand.UseBoundStore<zustand.StoreApi<SavedItemsStoreProps>>;
|
|
1726
2019
|
|
|
1727
|
-
|
|
2020
|
+
/**
|
|
2021
|
+
* Creates a persistent state from localStorage
|
|
2022
|
+
* @param key - The localStorage key to use
|
|
2023
|
+
* @param defaultValue - The default value if no stored value exists
|
|
2024
|
+
* @returns The stored value or defaultValue
|
|
2025
|
+
*/
|
|
2026
|
+
declare function createPersistentState<T>(key: string, defaultValue: T): T;
|
|
2027
|
+
|
|
2028
|
+
/**
|
|
2029
|
+
* A hook that persists UI state (views, modals) to localStorage
|
|
2030
|
+
* The state is automatically saved when changed and restored on page load
|
|
2031
|
+
*
|
|
2032
|
+
* @param key - The localStorage key to use for persistence
|
|
2033
|
+
* @param defaultValue - The default value if no stored value exists
|
|
2034
|
+
* @returns A tuple of [state, setState] similar to useState
|
|
2035
|
+
*
|
|
2036
|
+
* @example
|
|
2037
|
+
* ```tsx
|
|
2038
|
+
* // Persist view state
|
|
2039
|
+
* const [view, setView] = usePersistentUIState<"home" | "chat">("ui-view", "home");
|
|
2040
|
+
*
|
|
2041
|
+
* // Persist modal state
|
|
2042
|
+
* const [modal, setModal] = usePersistentUIState<string | null>("ui-modal", null);
|
|
2043
|
+
* ```
|
|
2044
|
+
*/
|
|
2045
|
+
declare function usePersistentUIState<T>(key: string, defaultValue: T): readonly [T, React$1.Dispatch<React$1.SetStateAction<T>>];
|
|
2046
|
+
|
|
2047
|
+
export { ActivateAccountModal, AddRating, AddressAutocompleteInput, AnimatedModal, ArticleContent, ArticleViewer, AutoDownloadBanner, AvatarRatingBadge, BaseInput, Button, ChatContacts, ChatListWrapper, ChatView, ChatViewDesktopPage, CheckBoxInput, ContactsModal, ControlButtons, CountryDisplay, CountryInput, CreatePostCard, CreatePostModal, CustomDateInput, CustomDrawer, CustomDropdown, CustomSelectInput, DateInput, DownloadMobileVersionBanner, DownloadModalTrigger, GradientModal, Header, MessageButton, MessagesButtonFromPage, MirantesButton, MirantesFoundationProvider, NoRecruitmentResponsiveIlustration, PageChatContent, PageChatContentHeader, PageChatInput, PageChatList, PageChatListWrapper, PageChatUserSuggestions, PageFloatFooter, PageMessageWrapper, PagesFeedTrigger, PdfFooter, PdfFullscreenView, PdfReader, PdfReaderHeader, PostCardArticle, ProgressBar, RadioButtonInput, RatingReviewsList, RatingUserCard, RatingsCard, RatingsSummary, RattingSuggestionCard, ReactPostButton, ResponsiveDrawer, SalaryInputWithButton, Calendar as ScheduleCalendar, SharePostModal, ShareProfile, ShareProfileButton, ShareProfileModal, Spinner, WorkspacePanel, clearSettingsCookie, closeLogoutChannel, createPersistentState, getInitials, getSettingsFromCookie, joinUrlWithPathAndQuery, onLogout, stringToObj, useApiCheckRater, useApiGetPage, useArticleNavigation, useArticleStore, useAssetVersions, useBestAssetVersion, useCandidaciesTriggerStore, useCommunityTriggerStore, useCreatePostFormStore, useCreatePostStore, useJobTriggerStore, useLoadSettings, useMessageAppStore, useMirantesFoundation, useModalArticleStore, useModalStore, useOportunitiesStore, usePeriodicDownloadBanner, usePersistentUIState, useRestorePendingChat, useSavedItemsStore, useSetChatVisibility, useSignedUrl, useUploadAsset, useUploadAssetsBulk };
|