@frigade/react 1.36.0 → 1.36.2
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 +10 -3
- package/lib/index.js +144 -143
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +184 -183
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -74,7 +74,14 @@ interface StepData {
|
|
|
74
74
|
* Automatically mark the step as completed when the primary button is clicked. Default is false.
|
|
75
75
|
*/
|
|
76
76
|
autoMarkCompleted?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Whether the step is completed.
|
|
79
|
+
*/
|
|
77
80
|
complete: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Whether the step is currently active/the flow is currently on this step. Can only be true for on step at a time.
|
|
83
|
+
*/
|
|
84
|
+
currentlyActive: boolean;
|
|
78
85
|
/**
|
|
79
86
|
* Whether the step is blocked (can't be accessed yet)
|
|
80
87
|
*/
|
|
@@ -364,9 +371,9 @@ interface HeroChecklistProps extends Omit<DefaultFrigadeFlowProps, 'flowId'> {
|
|
|
364
371
|
/** @ignore */
|
|
365
372
|
setSelectedStep?: (index: number) => void;
|
|
366
373
|
/**
|
|
367
|
-
* Map
|
|
374
|
+
* Map of custom step types that the checklist supports. To use a custom steps in your checklist, see [Component Customization](/component/customization#customizing-frigade-components)
|
|
368
375
|
*/
|
|
369
|
-
customStepTypes?: Record<string, (stepData: StepData, appearance: Appearance) => React__default.ReactNode>;
|
|
376
|
+
customStepTypes?: Record<string, ((stepData: StepData, appearance: Appearance) => React__default.ReactNode) | React__default.ReactNode>;
|
|
370
377
|
}
|
|
371
378
|
|
|
372
379
|
interface FrigadeHeroChecklistProps extends HeroChecklistProps {
|
|
@@ -728,7 +735,7 @@ declare function useUserFlowStates(): {
|
|
|
728
735
|
optimisticallyMarkFlowCompleted: (flowId: string) => void;
|
|
729
736
|
optimisticallyMarkFlowNotStarted: (flowId: string) => void;
|
|
730
737
|
optimisticallyMarkStepCompleted: (flowId: string, stepId: string, flowResponse: FlowResponse) => void;
|
|
731
|
-
optimisticallyMarkStepNotStarted: (flowId: string, stepId: string) => void;
|
|
738
|
+
optimisticallyMarkStepNotStarted: (flowId: string, stepId: string, flowResponse: FlowResponse) => void;
|
|
732
739
|
optimisticallyMarkStepStarted: (flowId: string, stepId: string, flowResponse: FlowResponse) => void;
|
|
733
740
|
error: any;
|
|
734
741
|
};
|