@goodhood-web/nebenan-base 4.1.0-development.16 → 4.1.0-development.18
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 +71 -71
- package/index.mjs +9355 -9378
- 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,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