@mirantes-micro/foundation-design-system 1.2.259 → 1.2.261
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 +6 -4
- package/dist/index.js +196 -199
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -63,6 +63,7 @@ interface IMirantesFoundationProviderProps {
|
|
|
63
63
|
onOpenCreatePostModal?: () => void;
|
|
64
64
|
commentComponents?: ReactNode | JSX.Element;
|
|
65
65
|
pageTriggerComponents?: ReactNode | JSX.Element;
|
|
66
|
+
postCardComponent?: ReactNode | JSX.Element;
|
|
66
67
|
openCreateJobModal?: () => void;
|
|
67
68
|
values?: {
|
|
68
69
|
pageId?: string;
|
|
@@ -160,6 +161,7 @@ interface IMirantesFoundationContext {
|
|
|
160
161
|
openCreateJobModal?: () => void;
|
|
161
162
|
commentComponents?: ReactNode | JSX.Element;
|
|
162
163
|
pageTriggerComponents?: ReactNode | JSX.Element;
|
|
164
|
+
postCardComponent?: ReactNode | JSX.Element;
|
|
163
165
|
}
|
|
164
166
|
type CommonLinkProps = {
|
|
165
167
|
to?: string;
|
|
@@ -197,7 +199,7 @@ type User$3 = {
|
|
|
197
199
|
type LinkComponent = (props: CommonLinkProps) => any;
|
|
198
200
|
type UsePathname = () => string;
|
|
199
201
|
|
|
200
|
-
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;
|
|
202
|
+
declare function MirantesFoundationProvider({ children, Notification, queryClient, onOpenCreatePostModal, commentComponents, pageTriggerComponents, postCardComponent, 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;
|
|
201
203
|
|
|
202
204
|
declare function useMirantesFoundation(): IMirantesFoundationContext;
|
|
203
205
|
|
|
@@ -466,7 +468,7 @@ interface ModalConfigProps {
|
|
|
466
468
|
interface AnimatedModalProps extends BaseModalProps, ModalStyleProps, ModalBehaviorProps, ModalConfigProps {
|
|
467
469
|
}
|
|
468
470
|
|
|
469
|
-
declare function AnimatedModal({ isOpen, onClose, children, variant, className, contentClassName, overlayClassName, closeOnClickOutside, closeOnEscape, hideCloseButton, showOverlay, position, header, zIndex, offsetTop, preventBodyScroll }: AnimatedModalProps): React__default.JSX.Element;
|
|
471
|
+
declare function AnimatedModal({ isOpen, onClose, children, variant, className, contentClassName, overlayClassName, closeOnClickOutside, closeOnEscape, hideCloseButton, showOverlay, position, header, zIndex, offsetTop, preventBodyScroll, }: AnimatedModalProps): React__default.JSX.Element;
|
|
470
472
|
|
|
471
473
|
interface BaseInputProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
472
474
|
placeholder: string;
|
|
@@ -1732,7 +1734,7 @@ type MentionableItem = {
|
|
|
1732
1734
|
name?: string;
|
|
1733
1735
|
slug?: string;
|
|
1734
1736
|
image?: string;
|
|
1735
|
-
type?:
|
|
1737
|
+
type?: "user" | "page" | "community";
|
|
1736
1738
|
originalData?: TMentionItem;
|
|
1737
1739
|
};
|
|
1738
1740
|
|
|
@@ -2315,7 +2317,7 @@ interface SharePostModalProps {
|
|
|
2315
2317
|
isProfileLink?: boolean;
|
|
2316
2318
|
variant?: "share" | "repost";
|
|
2317
2319
|
}
|
|
2318
|
-
declare const SharePostModal: ({ isOpen, onClose, post, variant, isProfileLink }: SharePostModalProps) => React__default.JSX.Element;
|
|
2320
|
+
declare const SharePostModal: ({ isOpen, onClose, post, variant, isProfileLink, }: SharePostModalProps) => React__default.JSX.Element;
|
|
2319
2321
|
|
|
2320
2322
|
declare function getInitials(fullName: string): string;
|
|
2321
2323
|
|