@hievilmath/browser-formidavim 1.1.4 → 1.1.5

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,10 @@
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
+ }>>;
@@ -4,4 +4,5 @@ export declare const FlowRenderer: FC<{
4
4
  flow: Partial<Flow>;
5
5
  isPreview: boolean;
6
6
  $bgColor?: string;
7
+ onSubmit: () => Promise<any>;
7
8
  }>;
@@ -1,10 +1,7 @@
1
1
  import { FC, PropsWithChildren } from 'react';
2
- import { Flow } from '../../../../../axios/formidavim/src/index.ts';
3
2
  export declare const NetworkAwareWrapper: FC<PropsWithChildren<{
4
- flowName: string;
5
- version: string;
6
- formidavimHost: string;
7
- dataFetcher: () => Promise<any>;
8
- configFetcher?: () => Promise<Partial<Flow>>;
9
- onSubmit?: any;
3
+ dataFetcher?: () => Promise<any>;
4
+ configFetcher: () => Promise<any>;
5
+ onSubmit: () => Promise<any>;
6
+ isPreview: boolean;
10
7
  }>>;
@@ -1,7 +1,8 @@
1
1
  import { PatientProfileDto, Flow } from '../../../../../axios/formidavim/src/index.ts';
2
2
  import { FC } from 'react';
3
3
  export declare const Renderer: FC<{
4
- data: PatientProfileDto;
4
+ data: PatientProfileDto | null;
5
5
  config: Partial<Flow>;
6
6
  isPreview: boolean;
7
+ onSubmit: () => Promise<any>;
7
8
  }>;
@@ -6,5 +6,7 @@ export { FlowFormRenderer } from './FlowFormRenderer';
6
6
  export { FormRenderer } from './FormRenderer';
7
7
  export { FormComponentRenderer } from './FormComponentRenderer';
8
8
  export { FormWrapper } from './FormWrapper';
9
+ export { NetworkAwareWrapper } from './NetworkAwareWrapper';
10
+ export { DemoConsumer } from './DemoConsumer';
9
11
  export { evaluateCondition } from '../utils/conditionEvaluator';
10
12
  export { ComponentFactory } from './ComponentFactory';
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
2
  import { FormComponentProps } from '../components/ComponentFactory';
3
3
  export type ComponentMap = Record<string, FC<FormComponentProps>>;
4
- export declare const COMPONENT_CONFIGS: Record<string, 'string' | 'number' | 'array'>;
4
+ export declare const COMPONENT_CONFIGS: Record<string, 'string' | 'number' | 'boolean' | 'array' | 'boolean[]'>;
5
5
  export declare const components: ComponentMap;
@@ -1,10 +1,10 @@
1
- import { Flow, PatientProfileDto } from '../../../../../axios/formidavim/src/index.ts';
1
+ import { Flow } from '../../../../../axios/formidavim/src/index.ts';
2
2
  export declare const useFlowStore: () => {
3
3
  setFlowValue: (field: string, value: any) => void;
4
4
  setFlowValues: (values: Record<string, any>) => void;
5
5
  getFlowValue: (field: string) => any;
6
6
  setPatientValue: (field: string, value: any) => void;
7
- setPatientValues: (profile: PatientProfileDto) => void;
7
+ setPatientValues: (profile: any) => void;
8
8
  getPatientValue: (field: string) => string | undefined;
9
9
  setFlowAndPatientValue: (field: string, value: any) => void;
10
10
  generateFormDataFromFlow: (flow: Partial<Flow>) => Record<string, any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hievilmath/browser-formidavim",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "main": "./index.js",
5
5
  "module": "./index.mjs",
6
6
  "typings": "./index.d.ts",