@goodhood-web/nebenan-base 4.5.0-development.16 → 4.5.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.
@@ -2,6 +2,7 @@ import { UseControllerProps } from 'react-hook-form';
2
2
  import { RichTextAreaProps, RichTextAreaRef } from '../../../../../RichTextArea/RichTextArea.types';
3
3
  import { ContentFormData } from '../../../../validationSchemas';
4
4
  export type FormRichTextAreaInputProps = UseControllerProps<ContentFormData> & Partial<RichTextAreaProps> & {
5
+ groupId?: number;
5
6
  name: string;
6
7
  };
7
8
  declare const FormRichTextAreaInput: import('react').ForwardRefExoticComponent<UseControllerProps<{
@@ -139,6 +140,7 @@ declare const FormRichTextAreaInput: import('react').ForwardRefExoticComponent<U
139
140
  };
140
141
  price?: string | null | undefined;
141
142
  }> & Partial<RichTextAreaProps> & {
143
+ groupId?: number;
142
144
  name: string;
143
145
  } & import('react').RefAttributes<RichTextAreaRef>>;
144
146
  export default FormRichTextAreaInput;
@@ -1,3 +1,3 @@
1
1
  import { PostFieldsProps } from './PostFields.types';
2
- declare const PostFields: ({ onPoiDismiss, poiClicked, postFieldPlaceholders, richTextAreaRef, }: PostFieldsProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const PostFields: ({ groupId, onPoiDismiss, poiClicked, postFieldPlaceholders, richTextAreaRef, }: PostFieldsProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default PostFields;
@@ -1,6 +1,7 @@
1
1
  import { RefObject } from 'react';
2
2
  import { RichTextAreaRef } from '../../../../../RichTextArea/RichTextArea.types';
3
3
  export type PostFieldsProps = {
4
+ groupId?: number;
4
5
  onPoiDismiss: () => void;
5
6
  poiClicked: boolean;
6
7
  postFieldPlaceholders?: {
@@ -1,7 +1,7 @@
1
1
  import { CropperRef } from 'react-advanced-cropper';
2
2
  import { MultiImageCropperProps } from '../../MultiImageCropper.types';
3
3
  type ImageCropperPanelProps = {
4
- aspectRatio: number;
4
+ aspectRatio?: number;
5
5
  cropperRef: React.RefObject<CropperRef>;
6
6
  handleCrop: () => void;
7
7
  handleReset: () => void;
@@ -16,6 +16,7 @@ export type RichTextAreaProps = {
16
16
  contentEditableRef?: RefObject<HTMLDivElement>;
17
17
  disabled?: boolean;
18
18
  errorText?: string;
19
+ groupId?: number;
19
20
  hintText?: string;
20
21
  id?: string;
21
22
  isWithImagePreview?: boolean;
@@ -1,5 +1,6 @@
1
1
  interface MentionPluginProps {
2
2
  anchorRef: React.RefObject<HTMLElement>;
3
+ groupId?: number;
3
4
  }
4
- export declare function MentionPlugin({ anchorRef }: MentionPluginProps): import("react/jsx-runtime").JSX.Element;
5
+ export declare function MentionPlugin({ anchorRef, groupId }: MentionPluginProps): import("react/jsx-runtime").JSX.Element;
5
6
  export {};
@@ -5,7 +5,7 @@ export declare function generateGID(userId: number): string;
5
5
  /**
6
6
  * Fetch neighbours for mention suggestions
7
7
  */
8
- export declare function fetchNeighbours(query: string): Promise<{
8
+ export declare function fetchNeighbours(query: string, groupId?: number, postId?: number): Promise<{
9
9
  page: import('../../../../../api/src/lib/core').components["schemas"]["Core_V3_Neighbour_List"];
10
10
  page_info: import('../../../../../api/src/lib/core').components["schemas"]["PageInfo"];
11
11
  } | undefined>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/nebenan-base",
3
- "version": "4.5.0-development.16",
3
+ "version": "4.5.0-development.18",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",