diff --git a/dist/types.d.ts b/dist/types.d.ts index 4b2a331..4aa374b 100644 --- a/dist/types.d.ts +++ b/dist/types.d.ts @@ -1,5 +1,5 @@ /// -export type Answers = Record; +export type Answers = Record; export interface Option { id: string; value: string; diff --git a/dist/types.d.ts.map b/dist/types.d.ts.map index e2fe398..c245b62 100644 --- a/dist/types.d.ts.map +++ b/dist/types.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";AAAA,MAAM,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAE7C,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AACD,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,GAAG,CAAC,CAAC,OAAO,EAAE,OAAO,KAAK,MAAM,CAAC,CAAC;IAChD,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,GAAG,CAAC;CACf;AAED,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,IAAI,EAAE,CACJ,OAAO,EAAE,OAAO,KAEd,MAAM,GACN;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,cAAc,CAAC,EAAE,OAAO,CAAA;KAAE,GAChD,OAAO,CAAC,MAAM,CAAC,GACf,OAAO,CAAC;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,cAAc,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;CAC/D;AAED,MAAM,MAAM,sBAAsB,GAAG,CACnC,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,MAAM,CA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UAAU,EAAE,MAAM,IAAI,CAAC;QACvB,cAAc,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,KAAK,CAAC,SAAS,CAAC;KACzD,KAAK,GAAG,CAAC,OAAO,CAAC;CACnB"} \ No newline at end of file diff --git a/docs/classes/_internal_.Component.html b/docs/classes/_internal_.Component.html index cf878f0..a899bed 100644 --- a/docs/classes/_internal_.Component.html +++ b/docs/classes/_internal_.Component.html @@ -1,4 +1,4 @@ -Component | whizflow - v0.4.0
+Component | whizflow - v0.4.1
  • Preparing search index...
  • -
  • The search index is not available
whizflow - v0.4.0
+
  • The search index is not available
  • whizflow - v0.4.1
    @@ -519,7 +519,7 @@

    Theme

    @@ -6,13 +6,13 @@
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1
    @@ -48,7 +48,7 @@

    Theme

    @@ -6,12 +6,12 @@
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1

    Interface ComponentLifecycle<P, S, SS>

    @@ -348,7 +348,7 @@

    Theme

    @@ -6,13 +6,13 @@
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1
    @@ -75,7 +75,7 @@

    Theme

    @@ -6,13 +6,13 @@
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1
    @@ -74,7 +74,7 @@

    Theme

    @@ -6,13 +6,13 @@
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1

    Interface DeprecatedLifecycle<P, S>

    @@ -225,7 +225,7 @@

    Theme

    @@ -6,13 +6,13 @@
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1
    @@ -59,7 +59,7 @@

    Theme

    @@ -6,13 +6,13 @@
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1
    @@ -76,7 +76,7 @@

    Theme

    @@ -6,13 +6,13 @@
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1
    @@ -65,7 +65,7 @@

    Theme

    @@ -6,13 +6,13 @@
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1

    Interface Iterator<T, TReturn, TNext>

    @@ -102,7 +102,7 @@

    Theme

    @@ -6,13 +6,13 @@
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1

    Interface IteratorReturnResult<TReturn>

    @@ -68,7 +68,7 @@

    Theme

    @@ -6,13 +6,13 @@
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1

    Interface IteratorYieldResult<TYield>

    @@ -68,7 +68,7 @@

    Theme

    @@ -6,13 +6,13 @@
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1

    Interface NewLifecycle<P, S, SS>

    @@ -105,7 +105,7 @@

    Theme

    @@ -6,13 +6,13 @@
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1
    @@ -21,7 +21,7 @@

    Hierarchy

    • Option
    +
  • Defined in src/types.ts:3
  • @@ -39,17 +39,17 @@

    Properties

    id: string
    +
  • Defined in src/types.ts:4
  • label: string
    +
  • Defined in src/types.ts:6
  • value: string
    +
  • Defined in src/types.ts:5
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1
    @@ -83,7 +83,7 @@

    Theme

    @@ -6,13 +6,13 @@
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1
    @@ -68,7 +68,7 @@

    Theme

    @@ -6,13 +6,13 @@
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1
    @@ -21,7 +21,7 @@

    Hierarchy

    • Question
    +
  • Defined in src/types.ts:8
  • @@ -41,27 +41,27 @@

    Properties

    context?: any
    +
  • Defined in src/types.ts:13
  • id: string
    +
  • Defined in src/types.ts:9
  • inputType: string
    +
  • Defined in src/types.ts:12
  • options?: Option[]
    +
  • Defined in src/types.ts:11
  • prompt: string | ((answers: Answers) => string)
    +
  • Defined in src/types.ts:10
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1
    @@ -78,7 +78,7 @@

    Theme

    @@ -6,13 +6,13 @@
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1
    @@ -80,7 +80,7 @@

    Theme

    @@ -6,13 +6,13 @@
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1
    @@ -21,7 +21,7 @@

    Hierarchy

    • Step
    +
  • Defined in src/types.ts:16
  • @@ -40,12 +40,12 @@

    Properties

    context?: any
    +
  • Defined in src/types.ts:19
  • id: string
    +
  • Defined in src/types.ts:17
  • next: ((answers: Answers) => string | {
        nextStepId: string;
        updatedAnswers?: Answers;
    } | Promise<string> | Promise<{
        nextStepId: string;
        updatedAnswers?: Answers;
    }>)
    @@ -63,12 +63,12 @@

    Parameters

    answers: Answers

    Returns string | {
        nextStepId: string;
        updatedAnswers?: Answers;
    } | Promise<string> | Promise<{
        nextStepId: string;
        updatedAnswers?: Answers;
    }>

    +
  • Defined in src/types.ts:20
  • questions: Question[]
    +
  • Defined in src/types.ts:18
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1
    @@ -88,7 +88,7 @@

    Theme

    @@ -6,13 +6,13 @@
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1
    @@ -21,7 +21,7 @@

    Hierarchy

    • WhizFlowProps
    +
  • Defined in src/types.ts:39
  • @@ -107,7 +107,7 @@

    Returns voidstep: Step

    Returns Element

    +
  • Defined in src/types.ts:43
  • onComplete?: ((answers: Answers) => void)
    @@ -125,17 +125,17 @@

    Parameters

    answers: Answers

    Returns void

    +
  • Defined in src/types.ts:42
  • questionTypes?: QuestionTypes
    +
  • Defined in src/types.ts:41
  • workflow: Step[]
    +
  • Defined in src/types.ts:40
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1
    -

    whizflow - v0.4.0

    +

    whizflow - v0.4.1

    Index

    @@ -42,7 +42,7 @@

    Theme

    @@ -6,13 +6,13 @@
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1
    @@ -85,7 +85,7 @@

    Theme

    @@ -6,19 +6,19 @@
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1
    -
    Answers: Record<string, string>
    +
  • Defined in src/types.ts:1
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1
    @@ -43,7 +43,7 @@

    Theme

    @@ -6,13 +6,13 @@
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1

    Type alias IteratorResult<T, TReturn>

    @@ -45,7 +45,7 @@

    Theme

    @@ -6,13 +6,13 @@
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1
    @@ -43,7 +43,7 @@

    Theme

    @@ -6,13 +6,13 @@
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1
    @@ -38,7 +38,7 @@

    Theme

    @@ -6,13 +6,13 @@
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1
    @@ -47,7 +47,7 @@

    Theme

    @@ -6,13 +6,13 @@
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1
    @@ -43,7 +43,7 @@

    Theme

    @@ -6,13 +6,13 @@
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1
    @@ -46,7 +46,7 @@
    updatedAnswers: Returns void

    Returns ReactNode

    +
  • Defined in src/types.ts:29
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1
    @@ -23,7 +23,7 @@

    Type declaration

  • [key: string]: QuestionRenderFunction
  • +
  • Defined in src/types.ts:35
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1
    @@ -38,7 +38,7 @@

    Theme

    @@ -6,13 +6,13 @@
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1
    @@ -38,7 +38,7 @@

    Theme

    @@ -6,13 +6,13 @@
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1
    @@ -38,7 +38,7 @@

    Theme

    @@ -6,13 +6,13 @@
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1
    @@ -45,7 +45,7 @@

    Theme

    @@ -6,13 +6,13 @@
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1
    @@ -47,7 +47,7 @@

    Theme

    @@ -6,13 +6,13 @@
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1
    @@ -43,7 +43,7 @@

    Theme

    @@ -6,13 +6,13 @@
    • Preparing search index...
    • -
    • The search index is not available
    whizflow - v0.4.0 +
  • The search index is not available
  • whizflow - v0.4.1
    @@ -43,7 +43,7 @@

    Theme