@apolitical/component-library 4.7.5-beta.0 → 4.7.5-test.0
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/discussion/components/index.d.ts +0 -1
- package/discussion/feeds/activities-feed/activities-feed.d.ts +0 -3
- package/discussion/feeds/replies-feed/replies-feed.d.ts +1 -4
- package/discussion/sections/activity-section/activity-section.d.ts +2 -4
- package/enums/custom-events.d.ts +0 -1
- package/form/components/form/form.types.d.ts +1 -1
- package/helpers/index.d.ts +0 -1
- package/helpers/intl.d.ts +0 -3
- package/index.js +60 -60
- package/index.mjs +7045 -7113
- package/modals/types/profile-modal/index.d.ts +0 -1
- package/modals/types/profile-modal/profile-modal.d.ts +2 -2
- package/package.json +1 -1
- package/discussion/components/profile-modal-launcher/index.d.ts +0 -1
- package/discussion/components/profile-modal-launcher/profile-modal-launcher.d.ts +0 -7
- package/discussion/components/profile-modal-launcher/profile-modal-launcher.mock.d.ts +0 -24
- package/form/types/profile-form/profile-form.mock.d.ts +0 -19
- package/helpers/profile-is-complete/index.d.ts +0 -1
- package/helpers/profile-is-complete/profile-is-complete.d.ts +0 -3
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type IProfileFormProps } from '../../../form';
|
|
3
2
|
import type { IMentionsFns } from '../../../discussion/discussion.d';
|
|
4
3
|
import type { IQueryFns } from './cache';
|
|
5
4
|
interface Props {
|
|
@@ -20,8 +19,6 @@ interface Props {
|
|
|
20
19
|
/** Function to leave the community */
|
|
21
20
|
leave: () => Promise<void>;
|
|
22
21
|
};
|
|
23
|
-
/** Props to pass into the profile form */
|
|
24
|
-
profile: IProfileFormProps;
|
|
25
22
|
}
|
|
26
23
|
declare const ActivitiesFeed: React.FC<Props>;
|
|
27
24
|
export default ActivitiesFeed;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { type IProfileFormProps } from '../../../form';
|
|
3
2
|
import type { IMentionsFns } from './../../discussion';
|
|
4
|
-
import {
|
|
3
|
+
import type { IQueryFns } from './cache';
|
|
5
4
|
interface Props {
|
|
6
5
|
/** The base path, used for slugs */
|
|
7
6
|
basePath: string;
|
|
@@ -22,8 +21,6 @@ interface Props {
|
|
|
22
21
|
/** Function to leave the community */
|
|
23
22
|
leave: () => Promise<void>;
|
|
24
23
|
};
|
|
25
|
-
/** Props to pass into the profile form */
|
|
26
|
-
profile: IProfileFormProps;
|
|
27
24
|
}
|
|
28
25
|
declare const RepliesFeed: React.FC<Props>;
|
|
29
26
|
export default RepliesFeed;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
3
|
-
import { type IRepliesFeedQueryFns } from '../../../discussion/feeds';
|
|
2
|
+
import type { IRepliesFeedQueryFns } from '../../../discussion/feeds';
|
|
4
3
|
import type { IMentionsFns } from './../../discussion.d';
|
|
5
|
-
import {
|
|
4
|
+
import type { IQueryFns } from './cache';
|
|
6
5
|
interface IActivitySectionQueryFns extends IQueryFns {
|
|
7
6
|
remove: () => Promise<void>;
|
|
8
7
|
}
|
|
@@ -18,7 +17,6 @@ interface Props {
|
|
|
18
17
|
join: () => Promise<void>;
|
|
19
18
|
leave: () => Promise<void>;
|
|
20
19
|
};
|
|
21
|
-
profile: IProfileFormProps;
|
|
22
20
|
}
|
|
23
21
|
declare const ActivitySection: React.FC<Props>;
|
|
24
22
|
export default ActivitySection;
|
package/enums/custom-events.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export interface ILabel {
|
|
|
12
12
|
/** The ID of the input to be labelled */
|
|
13
13
|
htmlFor?: string;
|
|
14
14
|
}
|
|
15
|
-
export type FormActionTypes = 'addError' | 'formSubmitted' | 'formSubmittedAndReset' | 'removeError' | 'submitForm' | 'updateValue';
|
|
15
|
+
export type FormActionTypes = 'addError' | 'formSubmitted' | 'formSubmittedAndReset' | 'removeError' | 'submitForm' | 'toggleSubmitting' | 'updateValue';
|
|
16
16
|
export type FieldValidationConditions = boolean | 'no-numbers' | 'required' | 'valid-email' | 'valid-url' | 'custom-validation' | ((arg: IFormValues) => boolean);
|
|
17
17
|
export interface IFieldOption {
|
|
18
18
|
/** The ID of the option */
|
package/helpers/index.d.ts
CHANGED
|
@@ -9,7 +9,6 @@ export * from './intl';
|
|
|
9
9
|
export * from './numbers';
|
|
10
10
|
export { default as passPropsToChildren } from './pass-props-to-children';
|
|
11
11
|
export * from './prerender';
|
|
12
|
-
export * from './profile-is-complete';
|
|
13
12
|
export { default as replaceMentionData } from './replace-mention-data';
|
|
14
13
|
export * from './urls';
|
|
15
14
|
export * from './validation';
|
package/helpers/intl.d.ts
CHANGED
|
@@ -166,9 +166,6 @@ export declare const checkIntlPathExists: (path: string, language?: {
|
|
|
166
166
|
discussion_thread_show: string;
|
|
167
167
|
discussion_thread_hide: string;
|
|
168
168
|
discussion_thread_loadMore: string;
|
|
169
|
-
profileModalLauncher_successMessage: string;
|
|
170
|
-
profileModalLauncher_title: string;
|
|
171
|
-
profileModalLauncher_text: string;
|
|
172
169
|
contactFooter_title: string;
|
|
173
170
|
contactFooter_text: string;
|
|
174
171
|
contactFooter_phone: string;
|