@goodhood-web/nebenan-base 4.1.0-development.17 → 4.1.0-development.19
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/index.js +70 -70
- package/index.mjs +9597 -9523
- package/lib/Authentication/Registration/VerificationForm/Steps/index.d.ts +2 -1
- package/lib/Authentication/Registration/VerificationForm/VerificationForm.types.d.ts +3 -2
- package/lib/Authentication/Registration/VerificationForm/network.d.ts +2 -1
- package/lib/Feed/FeedItem/Replies/Reply/Reply.d.ts +1 -1
- package/lib/Feed/FeedItem/Replies/Reply/Reply.types.d.ts +0 -2
- package/lib/Feed/FeedItem/Replies/ReplySection/ReplySection.d.ts +1 -1
- package/lib/Feed/FeedItem/Replies/ReplySection/ReplySection.types.d.ts +0 -2
- package/lib/RichTextArea/RichTextArea.d.ts +1 -1
- package/lib/RichTextArea/RichTextArea.types.d.ts +0 -2
- package/lib/RichTextArea/lexical/plugins/MentionPlugin.d.ts +1 -3
- package/lib/RichTextArea/lexical/utils.d.ts +4 -7
- package/package.json +1 -1
- package/lib/RichTextArea/utils.d.ts +0 -3
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { getGpsMethod } from './Gps';
|
|
1
2
|
import { getInviteCodeMethod } from './InviteCode';
|
|
2
3
|
import { getMethods } from './Methods';
|
|
3
4
|
import { getPostalCodeMethod } from './PostalCode';
|
|
4
5
|
import { getPostalCodeRequested } from './PostalCodeRequested';
|
|
5
6
|
import { getSmsMethod } from './Sms';
|
|
6
7
|
import { getSmsCodeMethod } from './SmsCode';
|
|
7
|
-
export { getSmsMethod, getSmsCodeMethod, getPostalCodeMethod, getInviteCodeMethod, getMethods, getPostalCodeRequested, };
|
|
8
|
+
export { getSmsMethod, getSmsCodeMethod, getPostalCodeMethod, getInviteCodeMethod, getGpsMethod, getMethods, getPostalCodeRequested, };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { VerificationMethods, VerificationSMSResponse } from '../../../../../../api/src/lib/core_v2';
|
|
1
|
+
import { VerificationGPSResponse, VerificationMethods, VerificationSMSResponse } from '../../../../../../api/src/lib/core_v2';
|
|
2
|
+
export type VerificationResponse = VerificationSMSResponse | VerificationGPSResponse;
|
|
2
3
|
export interface VerificationFormProps {
|
|
3
4
|
initialStep?: string | number;
|
|
4
5
|
onFetchProfile: () => Promise<void>;
|
|
5
|
-
onSubmit: (data?:
|
|
6
|
+
onSubmit: (data?: VerificationResponse) => void;
|
|
6
7
|
status: {
|
|
7
8
|
verification_methods: VerificationMethods;
|
|
8
9
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { VerificationSMSResponse } from '../../../../../../api/src/lib/core_v2';
|
|
1
|
+
import { VerificationGPSResponse, VerificationSMSResponse } from '../../../../../../api/src/lib/core_v2';
|
|
2
2
|
import { FormField, InferFormData } from '../../../Forms';
|
|
3
3
|
import { OnFormSubmitType } from '../../../Forms/Form/Form.types';
|
|
4
4
|
export declare const handleSmsCodeRequest: (data: OnFormSubmitType<InferFormData<FormField[]>>, setFormError: (error: string | null) => void, token: string | null) => Promise<boolean>;
|
|
5
5
|
export declare const handleSmsCodeSend: (data: OnFormSubmitType<InferFormData<FormField[]>>, onSubmit: (data: VerificationSMSResponse) => void, setFormError: (error: string | null) => void, token: string | null) => Promise<boolean | undefined>;
|
|
6
6
|
export declare const handleInviteCodeSend: (data: OnFormSubmitType<InferFormData<FormField[]>>, onSubmit: (data: VerificationSMSResponse) => void, setFormError: (error: string | null) => void, token: string | null) => Promise<boolean | undefined>;
|
|
7
7
|
export declare const handlePostalCodeRequest: (onFetchProfile: () => Promise<void>, setFormError: (error: string | null) => void, token: string | null) => Promise<boolean | "postalCodeRequested">;
|
|
8
|
+
export declare const handleGpsVerification: (onSubmit: (data: VerificationGPSResponse) => void, setFormError: (error: string | null) => void, token: string | null) => Promise<boolean>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ReplyProps } from './Reply.types';
|
|
2
|
-
export declare const Reply: ({
|
|
2
|
+
export declare const Reply: ({ isAuthenticated, isEdited, onAddReply, postId, profile, reply, saveReply, }: ReplyProps) => import("react/jsx-runtime").JSX.Element | undefined;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { components } from '../../../../../../../api/src/lib/core';
|
|
2
2
|
import { ReplyBubbleProps, ReplyType } from '../ReplyBubble/ReplyBubble.types';
|
|
3
3
|
export type ReplyProps = Omit<ReplyBubbleProps, 'handleEditing'> & {
|
|
4
|
-
hoodId?: number;
|
|
5
4
|
onAddReply: (author_details: components['schemas']['Core_V3_AuthorDetails']) => void;
|
|
6
5
|
profile: components['schemas']['Core_V3_UserProfile'];
|
|
7
|
-
reachedHoodIds?: number[];
|
|
8
6
|
saveReply: (reply: ReplyType) => void;
|
|
9
7
|
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ReplySectionProps } from './ReplySection.types';
|
|
2
|
-
export declare const ReplySection: ({
|
|
2
|
+
export declare const ReplySection: ({ isAuthenticated, limit, postId, profile, replies, }: ReplySectionProps) => import("react/jsx-runtime").JSX.Element;
|
|
3
3
|
export default ReplySection;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { components } from '../../../../../../../api/src/lib/core';
|
|
2
2
|
import { ReplyType } from '../ReplyBubble/ReplyBubble.types';
|
|
3
3
|
export type ReplySectionProps = {
|
|
4
|
-
hoodId?: number;
|
|
5
4
|
isAuthenticated: boolean;
|
|
6
5
|
limit: number;
|
|
7
6
|
onAddReply: (author_details: components['schemas']['Core_V3_AuthorDetails']) => void;
|
|
8
7
|
postId: number;
|
|
9
8
|
profile: components['schemas']['Core_V3_UserProfile'];
|
|
10
|
-
reachedHoodIds?: number[];
|
|
11
9
|
replies: ReplyType[];
|
|
12
10
|
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { RichTextAreaProps } from './RichTextArea.types';
|
|
2
|
-
export default function RichTextArea({ ariaDescribedby, attachment, charLimit, colorScheme, contentEditableRef, disabled, errorText, hintText,
|
|
2
|
+
export default function RichTextArea({ ariaDescribedby, attachment, charLimit, colorScheme, contentEditableRef, disabled, errorText, hintText, id, label, onBlur, onChange, onFocus, onImageClick, onPoiClick, onPoiDismiss, size, submitButton, value, }: RichTextAreaProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -14,7 +14,6 @@ export type RichTextAreaProps = {
|
|
|
14
14
|
disabled?: boolean;
|
|
15
15
|
errorText?: string;
|
|
16
16
|
hintText?: string;
|
|
17
|
-
hoodId?: number;
|
|
18
17
|
id?: string;
|
|
19
18
|
label?: string;
|
|
20
19
|
name?: string;
|
|
@@ -24,7 +23,6 @@ export type RichTextAreaProps = {
|
|
|
24
23
|
onImageClick?: () => void;
|
|
25
24
|
onPoiClick?: boolean;
|
|
26
25
|
onPoiDismiss?: () => void;
|
|
27
|
-
reachedHoodIds?: number[];
|
|
28
26
|
size?: 'medium' | 'large';
|
|
29
27
|
submitButton?: ReactNode;
|
|
30
28
|
value: RichTextAreaValueType;
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
interface MentionPluginProps {
|
|
2
2
|
anchorRef: React.RefObject<HTMLElement>;
|
|
3
|
-
hoodId: number;
|
|
4
|
-
reachedHoodIds: number[];
|
|
5
3
|
}
|
|
6
|
-
export declare function MentionPlugin({ anchorRef
|
|
4
|
+
export declare function MentionPlugin({ anchorRef }: MentionPluginProps): import("react/jsx-runtime").JSX.Element;
|
|
7
5
|
export {};
|
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import { NeighbourResponse } from '../../../../../api/src/lib/core_v2';
|
|
2
|
-
declare global {
|
|
3
|
-
interface Window {
|
|
4
|
-
__STORYBOOK_MOCK_USERS__?: NeighbourResponse[];
|
|
5
|
-
}
|
|
6
|
-
}
|
|
7
1
|
/**
|
|
8
2
|
* Generate a unique GID for a mention
|
|
9
3
|
*/
|
|
@@ -11,4 +5,7 @@ export declare function generateGID(userId: number): string;
|
|
|
11
5
|
/**
|
|
12
6
|
* Fetch neighbours for mention suggestions
|
|
13
7
|
*/
|
|
14
|
-
export declare function fetchNeighbours(
|
|
8
|
+
export declare function fetchNeighbours(query: string): Promise<{
|
|
9
|
+
page: import('../../../../../api/src/lib/core').components["schemas"]["Core_V3_Neighbour_List"];
|
|
10
|
+
page_info: import('../../../../../api/src/lib/core').components["schemas"]["PageInfo"];
|
|
11
|
+
} | undefined>;
|
package/package.json
CHANGED