@mirantes-micro/foundation-design-system 1.2.146 → 1.2.147
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 +42 -2
- 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;
|
|
@@ -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;
|
|
@@ -1724,4 +1737,31 @@ interface SavedItemsStoreProps {
|
|
|
1724
1737
|
}
|
|
1725
1738
|
declare const useSavedItemsStore: zustand.UseBoundStore<zustand.StoreApi<SavedItemsStoreProps>>;
|
|
1726
1739
|
|
|
1727
|
-
|
|
1740
|
+
/**
|
|
1741
|
+
* Creates a persistent state from localStorage
|
|
1742
|
+
* @param key - The localStorage key to use
|
|
1743
|
+
* @param defaultValue - The default value if no stored value exists
|
|
1744
|
+
* @returns The stored value or defaultValue
|
|
1745
|
+
*/
|
|
1746
|
+
declare function createPersistentState<T>(key: string, defaultValue: T): T;
|
|
1747
|
+
|
|
1748
|
+
/**
|
|
1749
|
+
* A hook that persists UI state (views, modals) to localStorage
|
|
1750
|
+
* The state is automatically saved when changed and restored on page load
|
|
1751
|
+
*
|
|
1752
|
+
* @param key - The localStorage key to use for persistence
|
|
1753
|
+
* @param defaultValue - The default value if no stored value exists
|
|
1754
|
+
* @returns A tuple of [state, setState] similar to useState
|
|
1755
|
+
*
|
|
1756
|
+
* @example
|
|
1757
|
+
* ```tsx
|
|
1758
|
+
* // Persist view state
|
|
1759
|
+
* const [view, setView] = usePersistentUIState<"home" | "chat">("ui-view", "home");
|
|
1760
|
+
*
|
|
1761
|
+
* // Persist modal state
|
|
1762
|
+
* const [modal, setModal] = usePersistentUIState<string | null>("ui-modal", null);
|
|
1763
|
+
* ```
|
|
1764
|
+
*/
|
|
1765
|
+
declare function usePersistentUIState<T>(key: string, defaultValue: T): readonly [T, React$1.Dispatch<React$1.SetStateAction<T>>];
|
|
1766
|
+
|
|
1767
|
+
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, useJobTriggerStore, useLoadSettings, useMessageAppStore, useMirantesFoundation, useModalArticleStore, useModalStore, useOportunitiesStore, usePeriodicDownloadBanner, usePersistentUIState, useRestorePendingChat, useSavedItemsStore, useSetChatVisibility, useSignedUrl, useUploadAsset, useUploadAssetsBulk };
|