@mirantes-micro/foundation-design-system 1.2.228 → 1.2.230
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 +19 -33
- package/dist/index.js +197 -197
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import React__default, { ReactNode, JSX, ChangeEvent, KeyboardEvent, FocusEvent } from 'react';
|
|
2
|
+
import React__default, { ReactNode, JSX, RefObject, InputHTMLAttributes, ChangeEvent, KeyboardEvent, FocusEvent } from 'react';
|
|
3
3
|
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
4
4
|
import { QueryClient } from '@tanstack/react-query';
|
|
5
5
|
import { AxiosInstance } from 'axios';
|
|
6
|
+
import { Socket } from 'socket.io-client';
|
|
6
7
|
import * as zustand from 'zustand';
|
|
7
8
|
import * as zustand_middleware from 'zustand/middleware';
|
|
8
9
|
|
|
@@ -16,7 +17,7 @@ declare function stringToObj<T>(inputString: string, separator: string): T | und
|
|
|
16
17
|
|
|
17
18
|
declare function getInitials(fullName: string): string;
|
|
18
19
|
|
|
19
|
-
type TLocale =
|
|
20
|
+
type TLocale = 'pt' | 'en' | 'fr';
|
|
20
21
|
interface IMirantesFoundationProviderProps {
|
|
21
22
|
children: ReactNode;
|
|
22
23
|
Notification?: ReactNode;
|
|
@@ -85,6 +86,7 @@ interface IMirantesFoundationContext {
|
|
|
85
86
|
chatForPage?: boolean;
|
|
86
87
|
environment?: string;
|
|
87
88
|
socketApiUrl?: string;
|
|
89
|
+
socketRef?: RefObject<Socket | null>;
|
|
88
90
|
mirantesDomain?: string;
|
|
89
91
|
hostUrl?: string;
|
|
90
92
|
locale?: TLocale;
|
|
@@ -152,7 +154,7 @@ type User$3 = {
|
|
|
152
154
|
type LinkComponent = (props: CommonLinkProps) => any;
|
|
153
155
|
type UsePathname = () => string;
|
|
154
156
|
|
|
155
|
-
declare function MirantesFoundationProvider({ children, Notification, queryClient, onOpenCreatePostModal, commentComponents, pageTriggerComponents, openCreateJobModal, values: { chatApiUrl, chatForPage, locale, Link, usePathname, user, isGettingUser, mirantesDomain, environment, feedApi, searchApi, widgetsApi, hostUrl, assetsApiUrl, isDev, profileApiUrl, analyticsApiUrl, isGettingStats, openCageApiKey, pageId, authedApi, authApiUrl, socketApiUrl, uploadFilesApi, page, ocpSubscriptionKey, billingApiUrl, multicaixaExpressUrl, stripeKey, isPageFeed, community, isCommunityFeed }, }: IMirantesFoundationProviderProps): React__default.JSX.Element;
|
|
157
|
+
declare function MirantesFoundationProvider({ children, Notification, queryClient, onOpenCreatePostModal, commentComponents, pageTriggerComponents, openCreateJobModal, values: { chatApiUrl, chatForPage, locale, Link, usePathname, user, isGettingUser, mirantesDomain, environment, feedApi, searchApi, widgetsApi, hostUrl, assetsApiUrl, isDev, profileApiUrl, analyticsApiUrl, isGettingStats, openCageApiKey, pageId, authedApi, authApiUrl, socketApiUrl, uploadFilesApi, page, ocpSubscriptionKey, billingApiUrl, multicaixaExpressUrl, stripeKey, isPageFeed, community, isCommunityFeed, }, }: IMirantesFoundationProviderProps): React__default.JSX.Element;
|
|
156
158
|
|
|
157
159
|
declare function WorkspacePanel(): React__default.JSX.Element;
|
|
158
160
|
|
|
@@ -320,31 +322,22 @@ interface CalendarProps {
|
|
|
320
322
|
}
|
|
321
323
|
declare function Calendar({ onMarkAsUnavailable, isModalOpen, onClose, calendarCardClassName, }: CalendarProps): React__default.JSX.Element;
|
|
322
324
|
|
|
323
|
-
|
|
325
|
+
interface BaseInputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
324
326
|
placeholder: string;
|
|
325
327
|
value: string;
|
|
326
328
|
onChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
327
329
|
onKeyDown?: (e: KeyboardEvent<HTMLInputElement>) => void;
|
|
328
330
|
onFocus?: (e: FocusEvent<HTMLInputElement>) => void;
|
|
329
|
-
onBlur?: (e: FocusEvent<HTMLInputElement>) => void;
|
|
330
331
|
rightIcon?: React__default.ReactNode;
|
|
331
332
|
leftIcon?: React__default.ReactNode;
|
|
332
333
|
label?: string;
|
|
333
334
|
error?: string;
|
|
334
|
-
disabled?: boolean;
|
|
335
|
-
type?: string;
|
|
336
|
-
name?: string;
|
|
337
|
-
id?: string;
|
|
338
|
-
className?: string;
|
|
339
335
|
wrapperClassName?: string;
|
|
340
|
-
required?: boolean;
|
|
341
336
|
inputClassName?: string;
|
|
342
337
|
requiredInPlaceholder?: boolean;
|
|
343
|
-
min?: number;
|
|
344
|
-
max?: number;
|
|
345
338
|
placeholderColor?: string;
|
|
346
|
-
|
|
347
|
-
|
|
339
|
+
}
|
|
340
|
+
declare const BaseInput: React__default.ForwardRefExoticComponent<BaseInputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
348
341
|
|
|
349
342
|
declare function CheckBoxInput({ isChecked, onClick, label, disabled, }: {
|
|
350
343
|
isChecked?: boolean;
|
|
@@ -355,16 +348,16 @@ declare function CheckBoxInput({ isChecked, onClick, label, disabled, }: {
|
|
|
355
348
|
|
|
356
349
|
type CustomDrawerProps = {
|
|
357
350
|
children: React__default.ReactNode;
|
|
358
|
-
title?: React__default.ReactNode;
|
|
359
351
|
footer?: React__default.ReactNode;
|
|
352
|
+
title?: React__default.ReactNode;
|
|
360
353
|
onClose: () => void;
|
|
361
354
|
className?: string;
|
|
362
355
|
isOpen?: boolean;
|
|
363
356
|
hideCloseBlock?: boolean;
|
|
364
|
-
|
|
365
|
-
|
|
357
|
+
direction?: 'bottom' | 'right' | 'left';
|
|
358
|
+
hiddenInMobileArticle?: boolean;
|
|
366
359
|
};
|
|
367
|
-
declare function CustomDrawer({ children,
|
|
360
|
+
declare function CustomDrawer({ children, footer, title, onClose, className, isOpen, hideCloseBlock, direction, hiddenInMobileArticle, }: CustomDrawerProps): React__default.JSX.Element | null;
|
|
368
361
|
|
|
369
362
|
declare function RadioButtonInput({ label, isSelected, onSelect, }: {
|
|
370
363
|
label?: string;
|
|
@@ -393,8 +386,7 @@ type CustomSelectInputProps = {
|
|
|
393
386
|
onSearch?: (query: string) => void;
|
|
394
387
|
isLoading?: boolean;
|
|
395
388
|
};
|
|
396
|
-
declare function CustomSelectInput({ options, value, onChange, placeholder, className, enableSearch, floattable,
|
|
397
|
-
required, showCheck, label, error, disabled, onSearch, isLoading, }: CustomSelectInputProps): React$1.JSX.Element;
|
|
389
|
+
declare function CustomSelectInput({ options, value, onChange, placeholder, className, enableSearch, floattable, required, showCheck, label, error, disabled, onSearch, isLoading, }: CustomSelectInputProps): React$1.JSX.Element;
|
|
398
390
|
|
|
399
391
|
type ButtonProps = {
|
|
400
392
|
children: React__default.ReactNode;
|
|
@@ -982,11 +974,6 @@ interface ShareProfileButtonProps {
|
|
|
982
974
|
}
|
|
983
975
|
declare function ShareProfileButton({ onClick }: ShareProfileButtonProps): React__default.JSX.Element;
|
|
984
976
|
|
|
985
|
-
interface ShareOtherProfileButtonProps {
|
|
986
|
-
onClick: () => void;
|
|
987
|
-
}
|
|
988
|
-
declare function ShareOtherProfileButton({ onClick }: ShareOtherProfileButtonProps): React__default.JSX.Element;
|
|
989
|
-
|
|
990
977
|
interface ShareProfileModalProps extends RattingSuggestionCardProps {
|
|
991
978
|
isOpen: boolean;
|
|
992
979
|
onClose: () => void;
|
|
@@ -1353,7 +1340,7 @@ type PostAttachmentProps$1 = {
|
|
|
1353
1340
|
};
|
|
1354
1341
|
type Post$1 = {
|
|
1355
1342
|
user: User$1;
|
|
1356
|
-
postType:
|
|
1343
|
+
postType: "NORMAL" | "REEL" | "ARTICLE";
|
|
1357
1344
|
id: string;
|
|
1358
1345
|
createdAt: string;
|
|
1359
1346
|
scheduledAt?: string;
|
|
@@ -1361,7 +1348,6 @@ type Post$1 = {
|
|
|
1361
1348
|
content: string;
|
|
1362
1349
|
totalShares: number;
|
|
1363
1350
|
totalReactions?: number;
|
|
1364
|
-
currentUserReaction?: string | undefined;
|
|
1365
1351
|
totalComments?: number;
|
|
1366
1352
|
attachment?: PostAttachmentProps$1;
|
|
1367
1353
|
isFollowed?: boolean;
|
|
@@ -1452,14 +1438,14 @@ type Post$1 = {
|
|
|
1452
1438
|
type PostAssetProps$1 = {
|
|
1453
1439
|
id: string;
|
|
1454
1440
|
url: string;
|
|
1455
|
-
type?:
|
|
1441
|
+
type?: "image" | "video" | "pdf";
|
|
1456
1442
|
createdAt?: string;
|
|
1457
1443
|
};
|
|
1458
1444
|
type PostReactionsProps$1 = {
|
|
1459
1445
|
id: string;
|
|
1460
1446
|
userId: string;
|
|
1461
1447
|
postId: string;
|
|
1462
|
-
reaction:
|
|
1448
|
+
reaction: "LIKE" | "LOVE" | "HAHA" | "WOW" | "SAD" | "ANGRY" | "AGREE" | "DISLIKE" | "EUREKA" | "NO_COMMENT" | "SUPPORT" | "DISAGREE";
|
|
1463
1449
|
createdAt?: string;
|
|
1464
1450
|
updatedAt?: string;
|
|
1465
1451
|
user?: User$1;
|
|
@@ -1468,7 +1454,7 @@ type CommentReactionsProps$1 = {
|
|
|
1468
1454
|
id: string;
|
|
1469
1455
|
userId: string;
|
|
1470
1456
|
commentId: string;
|
|
1471
|
-
reaction:
|
|
1457
|
+
reaction: "LIKE" | "LOVE" | "HAHA" | "AGREE" | "DISLIKE" | "EUREKA" | "NO_COMMENT" | "SUPPORT";
|
|
1472
1458
|
createdAt: string;
|
|
1473
1459
|
updatedAt: string;
|
|
1474
1460
|
user?: User$1;
|
|
@@ -1499,7 +1485,7 @@ declare function ReactPostButton({ post, hideLabel, className, orientation, }: {
|
|
|
1499
1485
|
post: Post$1;
|
|
1500
1486
|
hideLabel?: boolean;
|
|
1501
1487
|
className?: string;
|
|
1502
|
-
orientation?:
|
|
1488
|
+
orientation?: "vertical" | "horizontal";
|
|
1503
1489
|
}): JSX.Element;
|
|
1504
1490
|
|
|
1505
1491
|
interface TargetEntity {
|
|
@@ -2250,4 +2236,4 @@ declare function useRegisterTracking(): {
|
|
|
2250
2236
|
registerEvent: _tanstack_react_query.UseMutateFunction<ICreateTelemetryEventOutput | null, Error, ICreateTelemetryEventInput, unknown>;
|
|
2251
2237
|
};
|
|
2252
2238
|
|
|
2253
|
-
export { ActivateAccountModal, AddRating, AddressAutocompleteInput, AnimatedModal, ArticleContent, ArticleViewer, AutoDownloadBanner, AvatarRatingBadge, BaseInput, Button, ChatContacts, ChatListWrapper, ChatView, ChatViewDesktopPage, CheckBoxInput, closeLogoutChannel as CloseLogoutChannel, ContactsModal, ControlButtons, CountryDisplay, CountryInput, CreatePostCard, CreatePostContent, CreatePostForm, CreatePostModal, CreatePostModalFilters, CreatePostReelForm, CreatePostScheduleStep, CreatePostToolbar, CustomDateInput, CustomDrawer, CustomDropdown, CustomSelectInput, DateInput, DownloadMobileVersionBanner, DownloadModalTrigger, GradientModal, Header, MessageButton, MessagesButtonFromPage, MirantesButton, Index as MirantesChatApp, MirantesChatButton, MirantesFoundationProvider, MobileWorkspaceBar, NoRecruitmentResponsiveIlustration, onLogout as Onlogout, 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,
|
|
2239
|
+
export { ActivateAccountModal, AddRating, AddressAutocompleteInput, AnimatedModal, ArticleContent, ArticleViewer, AutoDownloadBanner, AvatarRatingBadge, BaseInput, Button, ChatContacts, ChatListWrapper, ChatView, ChatViewDesktopPage, CheckBoxInput, closeLogoutChannel as CloseLogoutChannel, ContactsModal, ControlButtons, CountryDisplay, CountryInput, CreatePostCard, CreatePostContent, CreatePostForm, CreatePostModal, CreatePostModalFilters, CreatePostReelForm, CreatePostScheduleStep, CreatePostToolbar, CustomDateInput, CustomDrawer, CustomDropdown, CustomSelectInput, DateInput, DownloadMobileVersionBanner, DownloadModalTrigger, GradientModal, Header, MessageButton, MessagesButtonFromPage, MirantesButton, Index as MirantesChatApp, MirantesChatButton, MirantesFoundationProvider, MobileWorkspaceBar, NoRecruitmentResponsiveIlustration, onLogout as Onlogout, 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, broadcastLogout, clearSettingsCookie, clearUserSession, closeLogoutChannel, createPersistentState, getInitials, getSettingsFromCookie, joinUrlWithPathAndQuery, onLogout, stringToObj, useApiCheckRater, useApiGetPage, useArticleNavigation, useArticleStore, useAssetVersions, useBestAssetVersion, useCandidaciesTriggerStore, useCommunityTriggerStore, useCreatePostFormStore, useCreatePostStore, useJobTriggerStore, useLoadSettings, useMessageAppStore, useMirantesFoundation, useModalArticleStore, useModalStore, useOpenChat, useOportunitiesStore, usePeriodicDownloadBanner, usePersistentUIState, useRegisterTracking, useRestorePendingChat, useSavedItemsStore, useSetChatVisibility, useSignedUrl, useUploadAsset, useUploadAssetsBulk };
|