@apolitical/component-library 1.3.2 → 1.4.0-beta.1
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/communities/community-details/community-details.d.ts +2 -2
- package/communities/join-button/join-button.d.ts +2 -2
- package/context/index.d.ts +1 -0
- package/context/intl/index.d.ts +1 -0
- package/context/intl/intl.provider.d.ts +8 -0
- package/context/user/index.d.ts +2 -2
- package/context/user/user.context.d.ts +1 -2
- package/context/user/user.provider.d.ts +2 -2
- package/discussion/form/form.d.ts +2 -2
- package/discussion/likes/likes.d.ts +7 -2
- package/discussion/post/post.d.ts +2 -2
- package/form/components/email-helper-text-box/email-helper-text-box.d.ts +2 -2
- package/form/components/password-rules/password-rules.d.ts +1 -1
- package/form/components/rating/rating.d.ts +2 -2
- package/form/types/search-form/search-form.d.ts +2 -2
- package/helpers/index.d.ts +0 -2
- package/index.d.ts +3 -1
- package/index.js +55 -144
- package/index.mjs +10882 -23638
- package/layout/page-layout/components/cookie-banner/cookie-banner.d.ts +2 -6
- package/layout/page-layout/components/footer/footer.d.ts +2 -6
- package/layout/page-layout/components/header/header.d.ts +2 -6
- package/loaders/loading-block/loading-block.d.ts +1 -1
- package/loaders/progress-bar/progress-bar.d.ts +1 -1
- package/modals/index.d.ts +1 -0
- package/navigation/filters/filters.d.ts +2 -2
- package/navigation/load-more/load-more.d.ts +2 -2
- package/navigation/logo/logo.d.ts +2 -2
- package/navigation/tags/tags.d.ts +2 -2
- package/package.json +1 -1
- package/style.css +1 -1
- package/testing/index.d.ts +1 -0
- package/text/collapsible-section/collapsible-section.d.ts +2 -2
- package/text/hide-show-text-box/hide-show-text-box.d.ts +2 -2
- package/text/markdown-text/components/details/details.d.ts +2 -2
- package/text/markdown-text/components/iframe/iframe.d.ts +2 -2
- package/user/contributors/contributors.d.ts +6 -2
- package/user/member/member.d.ts +2 -2
- package/helpers/intl-wrapper.d.ts +0 -6
|
@@ -3,5 +3,5 @@ interface Props extends IJoinButtonProps {
|
|
|
3
3
|
/** Additional classes */
|
|
4
4
|
className?: string;
|
|
5
5
|
}
|
|
6
|
-
declare const
|
|
7
|
-
export default
|
|
6
|
+
declare const CommunityDetails: ({ className, ...props }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export default CommunityDetails;
|
|
@@ -11,5 +11,5 @@ export interface IJoinButtonProps {
|
|
|
11
11
|
/** The language to use */
|
|
12
12
|
locale?: string;
|
|
13
13
|
}
|
|
14
|
-
declare const
|
|
15
|
-
export default
|
|
14
|
+
declare const JoinButton: ({ isMember: userIsMember, functions: { join, leave } }: IJoinButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export default JoinButton;
|
package/context/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './intl.provider';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface Props {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
locale?: 'en' | 'fr';
|
|
5
|
+
messages?: Record<string, string>;
|
|
6
|
+
}
|
|
7
|
+
export declare const IntlProvider: ({ children, locale, messages }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
package/context/user/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export type { IUserDetails } from './user.context';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export * from './user.context';
|
|
3
|
+
export * from './user.provider';
|
|
@@ -9,5 +9,4 @@ export interface IUserDetails {
|
|
|
9
9
|
export interface IUserContext extends IUserDetails {
|
|
10
10
|
isLoading: boolean;
|
|
11
11
|
}
|
|
12
|
-
declare const
|
|
13
|
-
export default _default;
|
|
12
|
+
export declare const UserContext: import("react").Context<IUserContext | null>;
|
|
@@ -4,5 +4,5 @@ interface Props {
|
|
|
4
4
|
children: React.ReactNode;
|
|
5
5
|
user: IUserContext | null;
|
|
6
6
|
}
|
|
7
|
-
declare const UserProvider: ({ children, user }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
export
|
|
7
|
+
export declare const UserProvider: ({ children, user }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -44,5 +44,5 @@ interface Props {
|
|
|
44
44
|
/** The language to use for the text */
|
|
45
45
|
locale?: string;
|
|
46
46
|
}
|
|
47
|
-
declare const
|
|
48
|
-
export default
|
|
47
|
+
declare const Form: ({ content, meta, inputRef, maxLength, minRows, forceShow, functions, gtmContext, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
48
|
+
export default Form;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { IDiscussionContent } from './../discussion';
|
|
2
3
|
interface Props {
|
|
3
4
|
/** The element to render around the content */
|
|
@@ -19,5 +20,9 @@ interface Props {
|
|
|
19
20
|
/** The language to use for the text */
|
|
20
21
|
locale?: string;
|
|
21
22
|
}
|
|
22
|
-
declare const
|
|
23
|
-
|
|
23
|
+
declare const Likes: ({ element, likes, isShort, userLiked, content, canLike, createLike, deleteLike, }: Props) => React.DetailedReactHTMLElement<{
|
|
24
|
+
className: string;
|
|
25
|
+
onClick: (e: React.MouseEvent<HTMLElement>) => false | undefined;
|
|
26
|
+
children: import("react/jsx-runtime").JSX.Element;
|
|
27
|
+
}, HTMLElement>;
|
|
28
|
+
export default Likes;
|
|
@@ -33,5 +33,5 @@ interface Props {
|
|
|
33
33
|
/** The language for the text */
|
|
34
34
|
locale?: string;
|
|
35
35
|
}
|
|
36
|
-
declare const
|
|
37
|
-
export default
|
|
36
|
+
declare const Post: ({ content, isLoading, originalAuthorId, functions: { content: { createContent, deleteContent, updateContent }, likes: { createLike, deleteLike }, }, className, gtmContext, locale, children, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
37
|
+
export default Post;
|
|
@@ -10,5 +10,5 @@ interface Props {
|
|
|
10
10
|
/** The language to use */
|
|
11
11
|
locale?: string;
|
|
12
12
|
}
|
|
13
|
-
declare const
|
|
14
|
-
export default
|
|
13
|
+
declare const EmailHelperTextBox: ({ type: content, email, redirectPath, resendVerificationCode }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
export default EmailHelperTextBox;
|
|
@@ -12,5 +12,5 @@ interface Props {
|
|
|
12
12
|
/** The language to use for the text */
|
|
13
13
|
locale?: string;
|
|
14
14
|
}
|
|
15
|
-
declare const _default: React.MemoExoticComponent<({
|
|
15
|
+
declare const _default: React.MemoExoticComponent<({ matchingRules, className }: Props) => import("react/jsx-runtime").JSX.Element>;
|
|
16
16
|
export default _default;
|
|
@@ -27,5 +27,5 @@ interface Props {
|
|
|
27
27
|
/** The language to use for the text */
|
|
28
28
|
locale?: string;
|
|
29
29
|
}
|
|
30
|
-
declare const
|
|
31
|
-
export default
|
|
30
|
+
declare const Rating: ({ text: textProp, topRating, functions: { createRating, updateRating, reportError }, className, hasLoaded, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
31
|
+
export default Rating;
|
|
@@ -17,5 +17,5 @@ interface Props {
|
|
|
17
17
|
/** The language to use */
|
|
18
18
|
locale?: string;
|
|
19
19
|
}
|
|
20
|
-
declare const
|
|
21
|
-
export default
|
|
20
|
+
declare const SearchForm: ({ id, className, handleToggle, defaultValue, gtmContext, gtmEvent, }: Props) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export default SearchForm;
|
package/helpers/index.d.ts
CHANGED
|
@@ -3,7 +3,5 @@ export * from './breakpoints';
|
|
|
3
3
|
export * from './dates';
|
|
4
4
|
export { default as delay } from './delay';
|
|
5
5
|
export * from './intl';
|
|
6
|
-
export { default as IntlWrapper } from './intl-wrapper';
|
|
7
6
|
export { default as passPropsToChildren } from './pass-props-to-children';
|
|
8
|
-
export * from './test-utils';
|
|
9
7
|
export * from './validation';
|
package/index.d.ts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
export * from './accessibility';
|
|
2
2
|
export * from './banners';
|
|
3
|
-
export * from './
|
|
3
|
+
export * from './communities';
|
|
4
4
|
export * from './constants';
|
|
5
5
|
export * from './context';
|
|
6
6
|
export * from './discussion';
|
|
7
7
|
export * from './form';
|
|
8
|
+
export * from './general';
|
|
8
9
|
export * from './hooks';
|
|
9
10
|
export * from './layout';
|
|
10
11
|
export * from './loaders';
|
|
12
|
+
export * from './modals';
|
|
11
13
|
export * from './navigation';
|
|
12
14
|
export * from './sections';
|
|
13
15
|
export * from './text';
|