@frigade/react 1.32.17 → 1.32.19
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.
- package/lib/index.d.ts +27 -1
- package/lib/index.js +203 -203
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +202 -202
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -344,12 +344,35 @@ declare const FrigadeProgressBadge: React__default.FC<FrigadeProgressBadgeProps>
|
|
|
344
344
|
|
|
345
345
|
type ModalPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right' | 'center';
|
|
346
346
|
|
|
347
|
+
interface FormInputType {
|
|
348
|
+
id: string;
|
|
349
|
+
title?: string;
|
|
350
|
+
type: string;
|
|
351
|
+
required?: boolean;
|
|
352
|
+
}
|
|
353
|
+
interface FormInputProps {
|
|
354
|
+
formInput: FormInputType;
|
|
355
|
+
customFormTypeProps: CustomFormTypeProps;
|
|
356
|
+
onSaveInputData: (data: object) => void;
|
|
357
|
+
setFormValidationErrors: (errors: FormValidationError[]) => void;
|
|
358
|
+
}
|
|
359
|
+
interface FormValidationError {
|
|
360
|
+
message: string;
|
|
361
|
+
id: string;
|
|
362
|
+
}
|
|
347
363
|
interface CustomFormTypeProps {
|
|
348
364
|
stepData: StepData;
|
|
349
365
|
canContinue: boolean;
|
|
350
366
|
setCanContinue: (canContinue: boolean) => void;
|
|
351
367
|
onSaveData: (data: object) => void;
|
|
352
368
|
appearance?: Appearance;
|
|
369
|
+
customFormElements?: {
|
|
370
|
+
[key: string]: (params: FormInputProps) => React__default.ReactNode;
|
|
371
|
+
};
|
|
372
|
+
}
|
|
373
|
+
interface StepContentProps {
|
|
374
|
+
stepData: StepData;
|
|
375
|
+
appearance?: Appearance;
|
|
353
376
|
}
|
|
354
377
|
type EntityProperties = Record<string, string | boolean | number | null>;
|
|
355
378
|
|
|
@@ -361,6 +384,9 @@ interface FormProps extends DefaultFrigadeFlowProps {
|
|
|
361
384
|
customStepTypes?: {
|
|
362
385
|
[key: string]: (params: CustomFormTypeProps) => React__default.ReactNode;
|
|
363
386
|
};
|
|
387
|
+
customFormElements?: {
|
|
388
|
+
[key: string]: (params: FormInputProps) => React__default.ReactNode;
|
|
389
|
+
};
|
|
364
390
|
visible?: boolean;
|
|
365
391
|
setVisible?: (visible: boolean) => void;
|
|
366
392
|
onComplete?: () => void;
|
|
@@ -479,4 +505,4 @@ declare function useOrganization(): {
|
|
|
479
505
|
trackEventForOrganization: (event: string, properties?: EntityProperties) => Promise<void>;
|
|
480
506
|
};
|
|
481
507
|
|
|
482
|
-
export { Appearance, FrigadeBanner, FrigadeChecklist, FrigadeEmbeddedTip, FrigadeForm, FrigadeGuide, FrigadeHeroChecklist, FrigadeProgressBadge, FrigadeProvider, FrigadeSupportWidget, BaseTheme as FrigadeTheme, FrigadeTour, StepData, useFlowOpens, useFlowResponses, useFlows, useOrganization, useUser };
|
|
508
|
+
export { Appearance, CustomFormTypeProps, EntityProperties, FormInputProps, FormInputType, FormValidationError, FrigadeBanner, FrigadeChecklist, FrigadeEmbeddedTip, FrigadeForm, FrigadeGuide, FrigadeHeroChecklist, FrigadeProgressBadge, FrigadeProvider, FrigadeSupportWidget, BaseTheme as FrigadeTheme, FrigadeTour, StepContentProps, StepData, useFlowOpens, useFlowResponses, useFlows, useOrganization, useUser };
|