@mirantes-micro/foundation-design-system 1.2.164 → 1.2.166

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.
Files changed (3) hide show
  1. package/dist/index.d.ts +51 -2
  2. package/dist/index.js +162 -154
  3. package/package.json +196 -196
package/dist/index.d.ts CHANGED
@@ -46,6 +46,7 @@ interface IMirantesFoundationProviderProps {
46
46
  feedApi?: string;
47
47
  environment?: string;
48
48
  profileApiUrl?: string;
49
+ analyticsApiUrl?: string;
49
50
  billingApiUrl?: string;
50
51
  assetsApiUrl?: string;
51
52
  multicaixaExpressUrl?: string;
@@ -76,6 +77,7 @@ interface IMirantesFoundationContext {
76
77
  profileApiUrl?: string;
77
78
  chatApiUrl?: string;
78
79
  billingApiUrl?: string;
80
+ analyticsApiUrl?: string;
79
81
  assetsApiUrl?: string;
80
82
  multicaixaExpressUrl?: string;
81
83
  stripeKey?: string;
@@ -147,7 +149,7 @@ type User$3 = {
147
149
  type LinkComponent = (props: CommonLinkProps) => any;
148
150
  type UsePathname = () => string;
149
151
 
150
- declare function MirantesFoundationProvider({ children, Notification, queryClient, onOpenCreatePostModal, commentComponents, pageTriggerComponents, values: { chatApiUrl, chatForPage, locale, Link, usePathname, user, isGettingUser, mirantesDomain, environment, feedApi, searchApi, widgetsApi, hostUrl, assetsApiUrl, isDev, profileApiUrl, isGettingStats, openCageApiKey, pageId, authedApi, authApiUrl, socketApiUrl, uploadFilesApi, page, ocpSubscriptionKey, billingApiUrl, multicaixaExpressUrl, stripeKey, isPageFeed, community, isCommunityFeed }, }: IMirantesFoundationProviderProps): React__default.JSX.Element;
152
+ declare function MirantesFoundationProvider({ children, Notification, queryClient, onOpenCreatePostModal, commentComponents, pageTriggerComponents, 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;
151
153
 
152
154
  declare function WorkspacePanel(): React__default.JSX.Element;
153
155
 
@@ -2046,4 +2048,51 @@ declare function createPersistentState<T>(key: string, defaultValue: T): T;
2046
2048
  */
2047
2049
  declare function usePersistentUIState<T>(key: string, defaultValue: T): readonly [T, React$1.Dispatch<React$1.SetStateAction<T>>];
2048
2050
 
2049
- 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 };
2051
+ interface ICreateTelemetryEventInput {
2052
+ input?: {
2053
+ source?: {
2054
+ app?: "mirantes-web" | "mirantes-mobile";
2055
+ platform?: "ios" | "android" | "web";
2056
+ version?: string;
2057
+ environment?: string;
2058
+ };
2059
+ actor?: {
2060
+ user_id?: string;
2061
+ anonymous_id?: string;
2062
+ session_id?: string;
2063
+ };
2064
+ context?: {
2065
+ route?: string;
2066
+ referrer?: string;
2067
+ timezone?: string;
2068
+ locale?: string;
2069
+ country?: string;
2070
+ device?: {
2071
+ os?: string;
2072
+ model?: string;
2073
+ };
2074
+ browser?: {
2075
+ name?: string;
2076
+ version?: string;
2077
+ };
2078
+ };
2079
+ events?: ITelemetryEvent[];
2080
+ };
2081
+ }
2082
+ interface ITelemetryEvent {
2083
+ event_id?: string;
2084
+ event_type?: "PAGE_VIEW" | "PROFILE_VIEW" | "CLICK_APPLY_JOB" | "SIGNUP_STEP_1" | "SIGNUP_STEP_2" | "SIGNUP_STEP_3" | "PERF_LOAD_TIME";
2085
+ occurred_at?: Date;
2086
+ metadata?: any;
2087
+ }
2088
+ interface ICreateTelemetryEventOutput {
2089
+ events?: {
2090
+ id?: string;
2091
+ }[];
2092
+ }
2093
+
2094
+ declare function useRegisterTracking(): {
2095
+ registerEvent: _tanstack_react_query.UseMutateFunction<ICreateTelemetryEventOutput | null, Error, ICreateTelemetryEventInput, unknown>;
2096
+ };
2097
+
2098
+ 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, useRegisterTracking, useRestorePendingChat, useSavedItemsStore, useSetChatVisibility, useSignedUrl, useUploadAsset, useUploadAssetsBulk };