@goodhood-web/nebenan-base 4.3.0-development.1 → 4.3.0-development.2

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.
@@ -1,3 +1,3 @@
1
1
  import { POIRecommendationProps } from './POIRecommendation.types';
2
- declare const POIRecommendation: ({ onDismiss, onSelect, openSheet, value, }: POIRecommendationProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const POIRecommendation: ({ onDismiss, onSelect, openSheet, }: POIRecommendationProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default POIRecommendation;
@@ -1,9 +1,8 @@
1
- import { RichTextAreaValueType } from '../../RichTextArea.types';
1
+ import { Poi } from '../../../../../../api/src/lib/core_v2';
2
2
  export type POIRecommendationProps = {
3
3
  onDismiss: () => void;
4
- onSelect: (value: RichTextAreaValueType) => void;
4
+ onSelect: (poi: Poi) => void;
5
5
  openSheet: boolean;
6
- value: RichTextAreaValueType;
7
6
  };
8
7
  export type POICategory = {
9
8
  key: string;
@@ -0,0 +1,4 @@
1
+ import { LinkedBusinessProfile } from '../../../../../../../api/src/lib/types/newsFeeds';
2
+ export declare const uploadedPoi: import('jotai').PrimitiveAtom<LinkedBusinessProfile | null> & {
3
+ init: LinkedBusinessProfile | null;
4
+ };
@@ -1,3 +1,3 @@
1
1
  import { SuggestionsProps } from './Suggestions.types';
2
- declare const POISuggestions: ({ isMobile, onChange, pois, value }: SuggestionsProps) => import("react/jsx-runtime").JSX.Element | null;
2
+ declare const POISuggestions: ({ onSelect, pois }: SuggestionsProps) => import("react/jsx-runtime").JSX.Element | null;
3
3
  export default POISuggestions;
@@ -1,11 +1,5 @@
1
- import { Dispatch, SetStateAction } from 'react';
2
1
  import { Poi } from '../../../../../../../../api/src/lib/core_v2';
3
- import { RichTextAreaValueType } from '../../../../RichTextArea.types';
4
2
  export type SuggestionsProps = {
5
- isMobile?: boolean;
6
- onChange: (value: RichTextAreaValueType) => void;
3
+ onSelect: (poi: Poi) => void;
7
4
  pois: Poi[] | null;
8
- query: string;
9
- setPois: Dispatch<SetStateAction<Poi[] | null>>;
10
- value: RichTextAreaValueType;
11
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/nebenan-base",
3
- "version": "4.3.0-development.1",
3
+ "version": "4.3.0-development.2",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",
@@ -1,4 +0,0 @@
1
- import { ContentProps, FooterProps, HeaderProps } from './SheetComponents.types';
2
- export declare const Footer: ({ onDismiss }: FooterProps) => import("react/jsx-runtime").JSX.Element | null;
3
- export declare const Header: ({ onDismiss, setQuery }: HeaderProps) => import("react/jsx-runtime").JSX.Element;
4
- export declare const Content: ({ onChange, pois, query, setPois, setQuery, value, }: ContentProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,21 +0,0 @@
1
- import { Dispatch, SetStateAction } from 'react';
2
- import { Poi } from '../../../../../../../../api/src/lib/core_v2';
3
- import { RichTextAreaValueType } from '../../../../RichTextArea.types';
4
- export type HeaderProps = {
5
- onDismiss: () => void;
6
- setQuery: Dispatch<SetStateAction<string>>;
7
- };
8
- export type FooterProps = {
9
- onDismiss: () => void;
10
- };
11
- export type ContentProps = {
12
- onChange: (value: RichTextAreaValueType) => void;
13
- pois: Poi[] | null;
14
- query: string;
15
- setPois: Dispatch<SetStateAction<Poi[] | null>>;
16
- setQuery: Dispatch<SetStateAction<string>>;
17
- value: RichTextAreaValueType;
18
- };
19
- export type SearchInputProps = {
20
- setQuery: Dispatch<SetStateAction<string>>;
21
- };