@hievilmath/browser-formidavim 1.3.3 → 1.4.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.
@@ -3,7 +3,7 @@ import { Flow, FlowForm } from '../../../../../axios/formidavim/src/index.ts';
3
3
  export declare const DataRenderer: FC<PropsWithChildren<{
4
4
  dataFetcher?: () => Promise<any>;
5
5
  configFetcher?: () => Promise<any>;
6
- onSubmit?: (formData: any) => Promise<any>;
6
+ onSubmit?: (formData: any, flow: Partial<Flow>, shouldRedirect: boolean) => Promise<any>;
7
7
  isPreview?: boolean;
8
8
  flowName?: string;
9
9
  version?: string | undefined;
@@ -11,4 +11,5 @@ export declare const DataRenderer: FC<PropsWithChildren<{
11
11
  onNextStep?: (flow: Flow, currentForm: FlowForm) => any;
12
12
  onPrevStep?: (flow: Flow, currentForm: FlowForm) => any;
13
13
  onFlowInit?: (flow: Flow) => any;
14
+ shouldRedirect?: boolean;
14
15
  }>>;
@@ -17,7 +17,8 @@ export declare const FlowRenderer: FC<{
17
17
  flow: Partial<Flow>;
18
18
  isPreview: boolean;
19
19
  $bgColor?: string;
20
- onSubmit: (formData: any) => Promise<any>;
20
+ onSubmit: (formData: any, flow: Partial<Flow>, shouldRedirect: boolean) => Promise<any>;
21
21
  onNextStep?: (flow: any, currentForm: any) => any;
22
22
  onPrevStep?: (flow: any, currentForm: any) => any;
23
+ shouldRedirect?: boolean;
23
24
  }>;
@@ -0,0 +1,17 @@
1
+ import { FC, PropsWithChildren } from 'react';
2
+ import { Flow, FlowForm, PipelineFlowDto } from '../../../../../axios/formidavim/src/index.ts';
3
+ export declare const PipelineProcessor: FC<PropsWithChildren<{
4
+ dataFetcher?: () => Promise<any>;
5
+ pipelineFetcher?: () => Promise<any>;
6
+ configFetcher?: () => Promise<any>;
7
+ onSubmit?: (formData: any, flow: Partial<Flow>, shouldRedirect: boolean) => Promise<any>;
8
+ isPreview?: boolean;
9
+ flowName: string;
10
+ version?: string | undefined;
11
+ formidavimHost?: string;
12
+ onNextStep?: (flow: Flow, currentForm: FlowForm) => any;
13
+ onPrevStep?: (flow: Flow, currentForm: FlowForm) => any;
14
+ onFlowInit?: (flow: Flow) => any;
15
+ onPipelineInit?: (pipelineFlows: PipelineFlowDto[]) => any;
16
+ onNoFlowsAvailable?: () => void;
17
+ }>>;
@@ -4,7 +4,8 @@ export declare const Renderer: FC<{
4
4
  data: PatientProfileDto | null;
5
5
  config: Partial<Flow>;
6
6
  isPreview: boolean;
7
- onSubmit: (formData: any) => Promise<any>;
7
+ onSubmit: (formData: any, flow: Partial<Flow>, shouldRedirect: boolean) => Promise<any>;
8
8
  onNextStep?: (flow: any, currentForm: any) => any;
9
9
  onPrevStep?: (flow: any, currentForm: any) => any;
10
+ shouldRedirect?: boolean;
10
11
  }>;
@@ -7,5 +7,5 @@ export { FormRenderer } from './FormRenderer';
7
7
  export { FormComponentRenderer } from './FormComponentRenderer';
8
8
  export { FormWrapper } from './FormWrapper';
9
9
  export { DataRenderer } from './DataRenderer';
10
- export { DemoConsumer } from './DemoConsumer';
10
+ export { PipelineProcessor } from './PipelineProcessor';
11
11
  export { ComponentFactory } from './ComponentFactory';
@@ -0,0 +1,15 @@
1
+ import { FC } from 'react';
2
+ import { FormComponent } from '../../../../../../axios/formidavim/src/index.ts';
3
+ export interface HipaaConsentProps {
4
+ effectiveDate: string;
5
+ consentText: string;
6
+ height?: string;
7
+ checkboxLabel?: string;
8
+ propertyId: string;
9
+ required?: boolean;
10
+ color?: string;
11
+ 'text-align'?: 'left' | 'center' | 'right' | 'justify';
12
+ }
13
+ export declare const HipaaConsent: FC<{
14
+ formComponent: Partial<FormComponent>;
15
+ }>;
@@ -0,0 +1,5 @@
1
+ import { FC } from 'react';
2
+ import { FormComponent } from '../../../../../../axios/formidavim/src/index.ts';
3
+ export declare const Video: FC<{
4
+ formComponent: Partial<FormComponent>;
5
+ }>;
@@ -138,6 +138,13 @@ export declare const StyledImage: import('styled-components/dist/types').IStyled
138
138
  $maxHeight?: string;
139
139
  $margin?: string;
140
140
  }>> & string;
141
+ export declare const StyledVideoWrapper: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components/dist/types').Substitute<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
142
+ $borderRadius?: string;
143
+ $margin?: string;
144
+ $maxHeight?: string;
145
+ $visible?: string;
146
+ }>> & string;
147
+ export declare const StyledVideo: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, never>> & string;
141
148
  export declare const StyledRadioLabel: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, never>> & string;
142
149
  export declare const FormHeaderDesktop: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
143
150
  export declare const FlowStepTrackerContainerMobile: import('styled-components/dist/types').IStyledComponentBase<"web", import('styled-components').FastOmit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, never>> & string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hievilmath/browser-formidavim",
3
- "version": "1.3.3",
3
+ "version": "1.4.0",
4
4
  "main": "./index.js",
5
5
  "module": "./index.mjs",
6
6
  "typings": "./index.d.ts",
@@ -1,10 +0,0 @@
1
- import { FC, PropsWithChildren } from 'react';
2
- import { Flow } from '../../../../../axios/formidavim/src/index.ts';
3
- export declare const DemoConsumer: FC<PropsWithChildren<{
4
- flowName: string;
5
- version: string;
6
- formidavimHost: string;
7
- dataFetcher: () => Promise<any>;
8
- configFetcher?: () => Promise<Partial<Flow>>;
9
- onSubmit?: any;
10
- }>>;