@frigade/react 1.32.75 → 1.32.77

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 CHANGED
@@ -280,29 +280,32 @@ interface FrigadeConfig {
280
280
  }
281
281
  declare const FrigadeProvider: FC<FrigadeProviderProps>;
282
282
 
283
- type FrigadeChecklistType = 'inline' | 'modal';
284
- type FrigadeChecklistStyle = 'with-guide' | 'default' | 'condensed' | 'carousel';
285
283
  interface FrigadeChecklistProps extends HeroChecklistProps {
286
284
  flowId: string;
287
285
  title?: string;
288
286
  subtitle?: string;
289
- onCompleteStep?: (index: number, stepData: StepData) => void;
290
287
  style?: CSSProperties;
288
+ /** @ignore */
291
289
  initialSelectedStep?: number;
292
290
  className?: string;
293
- type?: FrigadeChecklistType;
294
- checklistStyle?: FrigadeChecklistStyle;
291
+ type?: 'inline' | 'modal';
292
+ checklistStyle?: 'with-guide' | 'default' | 'condensed' | 'carousel';
295
293
  visible?: boolean;
296
294
  setVisible?: (visible: boolean) => void;
297
295
  onDismiss?: () => void;
296
+ /**
297
+ * See https://docs.frigade.com/flows/dynamic-variables
298
+ */
298
299
  customVariables?: {
299
300
  [key: string]: string | number | boolean;
300
301
  };
301
302
  /**
302
- * Optional Props specifically for ChecklistWithGuide
303
- *
303
+ * Flow ID referencing the flow of a guide/link collection to attach to this Checklist
304
304
  */
305
305
  guideFlowId?: string;
306
+ /**
307
+ * Title for the guide (if attached)
308
+ */
306
309
  guideTitle?: string;
307
310
  autoExpandFirstIncompleteStep?: boolean;
308
311
  autoExpandNextStep?: boolean;
@@ -314,15 +317,18 @@ interface HeroChecklistProps extends Omit<DefaultFrigadeFlowProps, 'flowId'> {
314
317
  subtitle?: string;
315
318
  /**
316
319
  * @deprecated Use `appearance` instead
320
+ * @ignore
317
321
  */
318
322
  primaryColor?: string;
323
+ /** @ignore */
319
324
  steps?: StepData[];
320
- /**
321
- * @deprecated use onStepCompletion instead
322
- */
323
- onCompleteStep?: (index: number, stepData: StepData) => void;
325
+ /** @ignore */
324
326
  selectedStep?: number;
327
+ /** @ignore */
325
328
  setSelectedStep?: (index: number) => void;
329
+ /**
330
+ * Map from string to function with StepData returning React.ReactNode
331
+ */
326
332
  customStepTypes?: Record<string, (stepData: StepData, appearance: Appearance) => React__default.ReactNode>;
327
333
  }
328
334