@mirantes-micro/foundation-design-system 1.2.176 → 1.2.178
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 +95 -5
- package/dist/index.js +409 -384
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1235,9 +1235,10 @@ interface SharePostModalProps {
|
|
|
1235
1235
|
isOpen: boolean;
|
|
1236
1236
|
onClose: () => void;
|
|
1237
1237
|
post: Post$2;
|
|
1238
|
+
isProfileLink?: boolean;
|
|
1238
1239
|
variant?: "share" | "repost";
|
|
1239
1240
|
}
|
|
1240
|
-
declare const SharePostModal: ({ isOpen, onClose, post, variant }: SharePostModalProps) => React__default.JSX.Element;
|
|
1241
|
+
declare const SharePostModal: ({ isOpen, onClose, post, variant, isProfileLink }: SharePostModalProps) => React__default.JSX.Element;
|
|
1241
1242
|
|
|
1242
1243
|
interface IActivateAccountModalProps {
|
|
1243
1244
|
isOpen: boolean;
|
|
@@ -1651,7 +1652,7 @@ interface IUserDraft {
|
|
|
1651
1652
|
};
|
|
1652
1653
|
}
|
|
1653
1654
|
|
|
1654
|
-
type Profile = {
|
|
1655
|
+
type Profile$2 = {
|
|
1655
1656
|
id: string;
|
|
1656
1657
|
name: string;
|
|
1657
1658
|
avatar: string;
|
|
@@ -1671,7 +1672,7 @@ type ArticleState = {
|
|
|
1671
1672
|
title: string;
|
|
1672
1673
|
content: string;
|
|
1673
1674
|
post: Post$1 | null;
|
|
1674
|
-
selectedProfile: Profile | null;
|
|
1675
|
+
selectedProfile: Profile$2 | null;
|
|
1675
1676
|
media: ArticleMedia[];
|
|
1676
1677
|
uploadedMedia: string[];
|
|
1677
1678
|
isUploading: boolean;
|
|
@@ -1688,7 +1689,7 @@ type ArticleState = {
|
|
|
1688
1689
|
setTitle: (title: string) => void;
|
|
1689
1690
|
setContent: (content: string) => void;
|
|
1690
1691
|
setPost: (post: Post$1 | null) => void;
|
|
1691
|
-
setSelectedProfile: (profile: Profile | null) => void;
|
|
1692
|
+
setSelectedProfile: (profile: Profile$2 | null) => void;
|
|
1692
1693
|
addMedia: (media: ArticleMedia) => void;
|
|
1693
1694
|
removeMedia: (id: string) => void;
|
|
1694
1695
|
setIsUploading: (isUploading: boolean) => void;
|
|
@@ -1773,6 +1774,7 @@ interface CreatePostFormState {
|
|
|
1773
1774
|
setContent: (content: string) => void;
|
|
1774
1775
|
handleMediaUpload: (files: FileList | null, ignore?: boolean) => void;
|
|
1775
1776
|
removeMedia: (index: number) => void;
|
|
1777
|
+
replaceMedia: (index: number, file: File) => void;
|
|
1776
1778
|
resetForm: () => void;
|
|
1777
1779
|
resetFormContent: () => void;
|
|
1778
1780
|
isValid: boolean;
|
|
@@ -2031,6 +2033,94 @@ interface CreatePostModalProps {
|
|
|
2031
2033
|
}
|
|
2032
2034
|
declare function CreatePostModal({ inline }: CreatePostModalProps): React__default.JSX.Element;
|
|
2033
2035
|
|
|
2036
|
+
type Profile$1 = {
|
|
2037
|
+
id: string;
|
|
2038
|
+
name: string;
|
|
2039
|
+
avatar: string;
|
|
2040
|
+
role?: string;
|
|
2041
|
+
isPage?: boolean;
|
|
2042
|
+
};
|
|
2043
|
+
|
|
2044
|
+
type ModalStep = 'main' | 'select-profile' | 'schedule' | 'scheduled-posts' | 'post-actions-menu' | 'edit-scheduled-post';
|
|
2045
|
+
interface CreatePostContentProps {
|
|
2046
|
+
readonly currentStep: ModalStep;
|
|
2047
|
+
readonly selectedProfile: Profile$1 | null;
|
|
2048
|
+
readonly scheduledDate: Date | null;
|
|
2049
|
+
readonly selectedPostForAction: string | null;
|
|
2050
|
+
readonly isSubmitting: boolean;
|
|
2051
|
+
readonly isLoading: boolean;
|
|
2052
|
+
readonly onProfileSelect: (profile: Profile$1) => void;
|
|
2053
|
+
readonly onGoToProfileSelection: () => void;
|
|
2054
|
+
readonly onGoToSchedule: () => void;
|
|
2055
|
+
readonly onScheduleSelect: (date: Date) => void;
|
|
2056
|
+
readonly onBackToMain: () => void;
|
|
2057
|
+
readonly onScheduleMore: () => void;
|
|
2058
|
+
readonly onPostActions: (postId: string) => void;
|
|
2059
|
+
readonly onEditScheduledPost: (postId: string) => void;
|
|
2060
|
+
readonly onDeleteScheduledPost: (postId?: string) => void;
|
|
2061
|
+
readonly onEditPostSubmit: (postId: string, updatedDate?: Date | null, shouldUpdateScheduledAt?: boolean) => void;
|
|
2062
|
+
readonly onSubmit: (type: "REEL" | "NORMAL") => void;
|
|
2063
|
+
readonly onClose?: () => void;
|
|
2064
|
+
readonly shouldLoadScheduledPosts?: boolean;
|
|
2065
|
+
readonly onPostDeleted?: () => void;
|
|
2066
|
+
readonly onPostUpdated?: () => void;
|
|
2067
|
+
readonly showScheduleOption?: boolean;
|
|
2068
|
+
}
|
|
2069
|
+
declare function CreatePostContent(props: CreatePostContentProps): React__default.JSX.Element;
|
|
2070
|
+
|
|
2071
|
+
type CreatePostToolbarProps = {
|
|
2072
|
+
readonly onMediaSelect?: (files: FileList | null) => void;
|
|
2073
|
+
readonly isForReels?: boolean;
|
|
2074
|
+
readonly onScheduleClick?: () => void;
|
|
2075
|
+
readonly onMentionClick?: () => void;
|
|
2076
|
+
readonly showScheduleOption?: boolean;
|
|
2077
|
+
readonly hasMedia?: boolean;
|
|
2078
|
+
readonly onEmojiClick?: () => void;
|
|
2079
|
+
readonly onViewScheduledPosts?: () => void;
|
|
2080
|
+
};
|
|
2081
|
+
declare function CreatePostToolbar({ onMediaSelect, isForReels, onScheduleClick, onMentionClick, showScheduleOption, hasMedia, onEmojiClick, onViewScheduledPosts, }: CreatePostToolbarProps): React__default.JSX.Element;
|
|
2082
|
+
|
|
2083
|
+
type CreatePostScheduleStepProps = {
|
|
2084
|
+
readonly onBack: () => void;
|
|
2085
|
+
readonly onScheduleSelect: (scheduledDate: Date) => void;
|
|
2086
|
+
readonly onClose?: () => void;
|
|
2087
|
+
readonly initialDate?: Date;
|
|
2088
|
+
readonly onViewScheduledPosts?: () => void;
|
|
2089
|
+
};
|
|
2090
|
+
declare function CreatePostScheduleStep({ onBack, onScheduleSelect, onClose, initialDate, onViewScheduledPosts, }: CreatePostScheduleStepProps): React__default.JSX.Element;
|
|
2091
|
+
|
|
2092
|
+
interface CreatePostReelFormProps {
|
|
2093
|
+
onSubmit: (data: {
|
|
2094
|
+
content: string;
|
|
2095
|
+
media: string[];
|
|
2096
|
+
}) => void;
|
|
2097
|
+
}
|
|
2098
|
+
declare function CreatePostReelForm({ onSubmit }: CreatePostReelFormProps): React__default.JSX.Element;
|
|
2099
|
+
|
|
2100
|
+
type CreatePostFormProps = {
|
|
2101
|
+
readonly onSubmit: (data: {
|
|
2102
|
+
content: string;
|
|
2103
|
+
media: string[];
|
|
2104
|
+
}) => void;
|
|
2105
|
+
readonly onScheduleClick?: () => void;
|
|
2106
|
+
readonly scheduledDate?: Date | null;
|
|
2107
|
+
readonly showScheduleOption?: boolean;
|
|
2108
|
+
readonly onViewScheduledPosts?: () => void;
|
|
2109
|
+
};
|
|
2110
|
+
declare function CreatePostForm({ onSubmit, onScheduleClick, scheduledDate, showScheduleOption, onViewScheduledPosts }: CreatePostFormProps): React__default.JSX.Element;
|
|
2111
|
+
|
|
2112
|
+
type Profile = {
|
|
2113
|
+
id: string;
|
|
2114
|
+
name: string;
|
|
2115
|
+
avatar: string;
|
|
2116
|
+
role?: string;
|
|
2117
|
+
};
|
|
2118
|
+
type CreatePostModalFiltersProps = {
|
|
2119
|
+
readonly selectedProfile?: Profile | null;
|
|
2120
|
+
readonly onProfileSelectClick: () => void;
|
|
2121
|
+
};
|
|
2122
|
+
declare function CreatePostModalFilters({ selectedProfile, onProfileSelectClick }: CreatePostModalFiltersProps): React__default.JSX.Element;
|
|
2123
|
+
|
|
2034
2124
|
interface SavedItemsStoreProps {
|
|
2035
2125
|
isOpen: boolean;
|
|
2036
2126
|
openModal: () => void;
|
|
@@ -2113,4 +2203,4 @@ declare function useRegisterTracking(): {
|
|
|
2113
2203
|
registerEvent: _tanstack_react_query.UseMutateFunction<ICreateTelemetryEventOutput | null, Error, ICreateTelemetryEventInput, unknown>;
|
|
2114
2204
|
};
|
|
2115
2205
|
|
|
2116
|
-
export { ActivateAccountModal, AddRating, AddressAutocompleteInput, AnimatedModal, ArticleContent, ArticleViewer, AutoDownloadBanner, AvatarRatingBadge, BaseInput, Button, ChatContacts, ChatListWrapper, ChatView, ChatViewDesktopPage, CheckBoxInput, closeLogoutChannel as CloseLogoutChannel, ContactsModal, ControlButtons, CountryDisplay, CountryInput, CreatePostCard, CreatePostModal, CustomDateInput, CustomDrawer, CustomDropdown, CustomSelectInput, DateInput, DownloadMobileVersionBanner, DownloadModalTrigger, GradientModal, Header, MessageButton, MessagesButtonFromPage, MirantesButton, 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, useOportunitiesStore, usePeriodicDownloadBanner, usePersistentUIState, useRegisterTracking, useRestorePendingChat, useSavedItemsStore, useSetChatVisibility, useSignedUrl, useUploadAsset, useUploadAssetsBulk };
|
|
2206
|
+
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, 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, useOportunitiesStore, usePeriodicDownloadBanner, usePersistentUIState, useRegisterTracking, useRestorePendingChat, useSavedItemsStore, useSetChatVisibility, useSignedUrl, useUploadAsset, useUploadAssetsBulk };
|