@goodhood-web/nebenan-base 4.7.0-development.9 → 4.8.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.
@@ -0,0 +1,3 @@
1
+ import { ChristmasBannerProps } from './ChristmasBanner.types';
2
+ declare const ChristmasBanner: ({ active, variant, }: ChristmasBannerProps) => import("react/jsx-runtime").JSX.Element | null;
3
+ export default ChristmasBanner;
@@ -0,0 +1,5 @@
1
+ export type ChristmasBannerVariant = 'default' | 'small';
2
+ export interface ChristmasBannerProps {
3
+ active?: boolean;
4
+ variant?: ChristmasBannerVariant;
5
+ }
@@ -0,0 +1,5 @@
1
+ declare const ProgressBar: ({ flag, isSmall }: {
2
+ flag: boolean;
3
+ isSmall: boolean;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
+ export default ProgressBar;
@@ -0,0 +1,10 @@
1
+ export interface ScheduleItem {
2
+ date: string;
3
+ progress: number;
4
+ }
5
+ /**
6
+ * Hook that returns the current progress value
7
+ * based on the latest matching schedule date.
8
+ * @returns {number} Current progress value
9
+ */
10
+ export declare function useProgressByDate(): number;
@@ -144,7 +144,7 @@ declare const FormRichTextAreaInput: import('react').ForwardRefExoticComponent<U
144
144
  value?: string | undefined;
145
145
  pill?: string | undefined;
146
146
  };
147
- price?: string | null | undefined;
147
+ price_in_cents?: string | null | undefined;
148
148
  }> & Partial<RichTextAreaProps> & {
149
149
  groupId?: number;
150
150
  multipleImageUpload?: boolean;
@@ -22,7 +22,7 @@ export declare const DEFAULT_FORM_VALUES: {
22
22
  pill: string;
23
23
  value: string;
24
24
  };
25
- price: null;
25
+ price_in_cents: null;
26
26
  reach: string;
27
27
  sessionId: null;
28
28
  starts_at_date: Date;
@@ -43,7 +43,7 @@ export declare const generateMarketplacePayload: (data: MarketplaceFormData) =>
43
43
  indices?: number[] | null | undefined;
44
44
  }[];
45
45
  images: string[] | null;
46
- price: number | null;
46
+ price_in_cents: number | null;
47
47
  reach: "group" | "profile" | "public" | "hood" | "extended";
48
48
  subject: string;
49
49
  };
@@ -296,7 +296,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
296
296
  value?: string | undefined;
297
297
  pill?: string | undefined;
298
298
  }>;
299
- price: z.ZodNullable<z.ZodOptional<z.ZodString>>;
299
+ price_in_cents: z.ZodNullable<z.ZodOptional<z.ZodString>>;
300
300
  reach: z.ZodEnum<["profile", "hood", "extended", "public", "group"]>;
301
301
  subject: z.ZodString;
302
302
  }, "strip", z.ZodTypeAny, {
@@ -337,7 +337,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
337
337
  value?: string | undefined;
338
338
  pill?: string | undefined;
339
339
  };
340
- price?: string | null | undefined;
340
+ price_in_cents?: string | null | undefined;
341
341
  }, {
342
342
  content: {
343
343
  body: string;
@@ -376,7 +376,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
376
376
  value?: string | undefined;
377
377
  pill?: string | undefined;
378
378
  };
379
- price?: string | null | undefined;
379
+ price_in_cents?: string | null | undefined;
380
380
  }>, {
381
381
  content: {
382
382
  body: string;
@@ -415,7 +415,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
415
415
  value?: string | undefined;
416
416
  pill?: string | undefined;
417
417
  };
418
- price?: string | null | undefined;
418
+ price_in_cents?: string | null | undefined;
419
419
  }, {
420
420
  content: {
421
421
  body: string;
@@ -454,7 +454,7 @@ export declare const contentValidationSchema: z.ZodUnion<[z.ZodObject<{
454
454
  value?: string | undefined;
455
455
  pill?: string | undefined;
456
456
  };
457
- price?: string | null | undefined;
457
+ price_in_cents?: string | null | undefined;
458
458
  }>, z.ZodObject<{
459
459
  content: z.ZodObject<{
460
460
  attachments: z.ZodOptional<z.ZodObject<{
@@ -110,7 +110,7 @@ export declare const marketplaceValidationSchema: z.ZodEffects<z.ZodObject<{
110
110
  value?: string | undefined;
111
111
  pill?: string | undefined;
112
112
  }>;
113
- price: z.ZodNullable<z.ZodOptional<z.ZodString>>;
113
+ price_in_cents: z.ZodNullable<z.ZodOptional<z.ZodString>>;
114
114
  reach: z.ZodEnum<["profile", "hood", "extended", "public", "group"]>;
115
115
  subject: z.ZodString;
116
116
  }, "strip", z.ZodTypeAny, {
@@ -151,7 +151,7 @@ export declare const marketplaceValidationSchema: z.ZodEffects<z.ZodObject<{
151
151
  value?: string | undefined;
152
152
  pill?: string | undefined;
153
153
  };
154
- price?: string | null | undefined;
154
+ price_in_cents?: string | null | undefined;
155
155
  }, {
156
156
  content: {
157
157
  body: string;
@@ -190,7 +190,7 @@ export declare const marketplaceValidationSchema: z.ZodEffects<z.ZodObject<{
190
190
  value?: string | undefined;
191
191
  pill?: string | undefined;
192
192
  };
193
- price?: string | null | undefined;
193
+ price_in_cents?: string | null | undefined;
194
194
  }>, {
195
195
  content: {
196
196
  body: string;
@@ -229,7 +229,7 @@ export declare const marketplaceValidationSchema: z.ZodEffects<z.ZodObject<{
229
229
  value?: string | undefined;
230
230
  pill?: string | undefined;
231
231
  };
232
- price?: string | null | undefined;
232
+ price_in_cents?: string | null | undefined;
233
233
  }, {
234
234
  content: {
235
235
  body: string;
@@ -268,5 +268,5 @@ export declare const marketplaceValidationSchema: z.ZodEffects<z.ZodObject<{
268
268
  value?: string | undefined;
269
269
  pill?: string | undefined;
270
270
  };
271
- price?: string | null | undefined;
271
+ price_in_cents?: string | null | undefined;
272
272
  }>;
@@ -1,7 +1,9 @@
1
1
  import { ReactElement, ReactNode } from 'react';
2
+ import { ChristmasBannerVariant } from '../ChristmasBanner/ChristmasBanner.types';
2
3
  export interface DesktopLayoutTwoColumnProps {
3
4
  banner: {
4
5
  adSlot?: ReactElement;
6
+ christmasBannerVariant?: ChristmasBannerVariant;
5
7
  didRender: boolean;
6
8
  };
7
9
  children: ReactNode;
@@ -1,3 +1,4 @@
1
+ import { ClickPayload } from '../../../../services/src/snowplow/schemas/de.nebenan/click.interface';
1
2
  import { TypographyTypeProduct } from '../../../../ui/src/lib/Base/Typography/Typography.types';
2
3
  export interface MenuLinkListProps {
3
4
  className?: string;
@@ -9,5 +10,6 @@ export interface MenuLinkItem {
9
10
  label: string;
10
11
  onClick?: () => void;
11
12
  rel?: string;
13
+ snowplowClickTracking?: ClickPayload;
12
14
  target?: string;
13
15
  }
@@ -1,3 +1,3 @@
1
1
  import { MobileLayoutProps } from './MobileLayout.types';
2
- declare const MobileLayout: ({ action, adSlot, adSlotEnabled, banner, children, footer, header, hideHeaderOnScroll, showFooter, }: MobileLayoutProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const MobileLayout: ({ action, adSlot, adSlotEnabled, banner, children, christmasBannerVariant, footer, header, hideHeaderOnScroll, showFooter, }: MobileLayoutProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default MobileLayout;
@@ -1,6 +1,7 @@
1
1
  import { ReactElement, ReactNode } from 'react';
2
2
  import { IconButtonProps } from '../../../../ui/src/lib/Atoms/Buttons/IconButton/IconButton.types';
3
3
  import { NavBarProps } from '../../../../ui/src/lib/Molecules/Navigation/NavBar/NavBar.types';
4
+ import { ChristmasBannerProps } from '../ChristmasBanner/ChristmasBanner.types';
4
5
  import { MobileHeaderBarProps } from './components/MobileHeaderBar/MobileHeaderBar.types';
5
6
  export interface MobileLayoutProps {
6
7
  action?: ReactElement<IconButtonProps>;
@@ -8,6 +9,7 @@ export interface MobileLayoutProps {
8
9
  adSlotEnabled: boolean;
9
10
  banner?: ReactElement;
10
11
  children: ReactNode;
12
+ christmasBannerVariant?: ChristmasBannerProps['variant'];
11
13
  footer: ReactElement<NavBarProps>;
12
14
  header: ReactElement<MobileHeaderBarProps>;
13
15
  hideHeaderOnScroll?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/nebenan-base",
3
- "version": "4.7.0-development.9",
3
+ "version": "4.8.0",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",