@goodhood-web/nebenan-base 4.1.0-development.10 → 4.1.0-development.12

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,4 +1,6 @@
1
1
  import { ReactNode } from 'react';
2
+ import { PageSection } from '../../../../../services/src/analytics';
3
+ import { SnowplowTrackEventMap } from '../../../../../services/src/snowplow/types';
2
4
  import { TGridSpacing } from '../../Grids/Grid/Grid.types';
3
5
  import { GridItemProps } from '../../Grids/Grid/GridItem/GridItem.types';
4
6
  import { FormButtonProps } from '../Fields/FormButton/FormButtonProps';
@@ -95,6 +97,10 @@ export type WizardStepT = {
95
97
  formKey?: string;
96
98
  id: string;
97
99
  onSubmit?: FormProps<InferFormData<FormField[]>>['onSubmit'];
100
+ pageViewtracking?: {
101
+ name: SnowplowTrackEventMap['page_view']['name'];
102
+ section?: PageSection;
103
+ };
98
104
  spacing?: TGridSpacing;
99
105
  validationMode?: FormProps<InferFormData<FormField[]>>['validationMode'];
100
106
  validationSchema?: FormProps<InferFormData<FormField[]>>['validationSchema'];
@@ -0,0 +1,9 @@
1
+ import { TrackFunction } from '../../../../../services/src/analytics';
2
+ import { SnowplowTrackFunction } from '../../../../../services/src/snowplow';
3
+ import { WizardStepT } from './Wizard.types';
4
+ interface TrackingFunctions {
5
+ snowplowTrack: SnowplowTrackFunction;
6
+ track?: TrackFunction;
7
+ }
8
+ export declare const useTrackStepPageView: (currentStep: number, steps: WizardStepT[], trackingFunctions: TrackingFunctions) => void;
9
+ export default useTrackStepPageView;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@goodhood-web/nebenan-base",
3
- "version": "4.1.0-development.10",
3
+ "version": "4.1.0-development.12",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "repository": "https://github.com/good-hood-gmbh/goodhood-web",