-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflow-details.ts
388 lines (376 loc) · 11.1 KB
/
flow-details.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
export const HINT_FLOW_ID = 'flow_QoSHPAnV';
//This Flow's config is:
/**
steps:
- id: new-step-1
title: Use Hints to drive adoption
subtitle: Hints can be used to call attention to specific UI elements on the page.
selector: "#model-card"
primaryButton:
title: Got it
action: step.complete
props:
align: start
side: left
secondaryButton:
title: View docs
action: false
uri: https://docs.frigade.com/v2/component/hint
target: _blank
- id: new-step-2
title: Create subtle callouts
subtitle: Hints are closed by default. They provide user education in a less
intrusive way than pop-ups.
selector: "#model"
props:
align: after
side: top
- id: new-step-3
title: Complete in any order
subtitle: Hints tend to be non-sequential, and they can be fully customized and
styled.
selector: "#top-p"
imageUri: https://cdn.frigade.com/bde697dd-445e-4d70-a395-340096a97a29.png
props:
align: before
side: left
primaryButton:
title: Cool
action: step.complete
secondaryButton:
title: Visit Frigade
action: false
target: _blank
uri: https://frigade.com
**/
export const USER_FEEDBACK_MODAL_FLOW_ID = 'flow_aI9TTbI6';
//This Flow's config is:
/**
steps:
- id: page-1
title: User Feedback
subtitle: Trigger in-product feedback at the right time.
primaryButton:
title: Submit
fields:
- id: test-radio
type: radio
label: How do you like this demo?
required: true
options:
- label: Like it
value: 1
- label: Love it
value: 2
- label: Gotta have it
value: 3
- id: test-textarea
type: textarea
label: Any other feedback?
placeholder: Short response here...
**/
export const NPS_FLOW_ID = 'flow_Gd8oTupY';
//This Flow's config is:
/**
props:
dismissible: true
steps:
- id: nps-score-page
title: How likely are you to recommend us to a friend or colleague?
fields:
- id: nps-score
type: nps
label: NPS input field
positiveLabel: Extremely likely
negativeLabel: Not likely at all
- id: nps-feedback-page
title: Why did you choose this rating?
primaryButton:
title: Submit
fields:
- id: nps-feedback-text
type: textarea
placeholder: Your answer goes here
**/
export const CUSTOM_MODAL_FLOW_ID = 'flow_HL3Hq1KH';
//This Flow's config is:
/**
steps:
- id: feature-announcement
title: This announcement is built with Sanity UI
subtitle: It uses Frigade hooks and custom UI.
primaryButton:
title: Next
secondaryButton:
title: Learn more
uri: https://docs.frigade.com/v2/guides/custom
target: _blank
action: false
imageUri: https://cdn.frigade.com/b3bc4cf4-e608-49f9-ab40-8b240016c717.svg
- id: feature-announcement-2
title: There's no limit to what you can build
subtitle: Feel free to reach out with questions.
primaryButton:
title: Finish
imageUri: https://cdn.frigade.com/2253cbcc-51fb-4aef-89f5-b9b22e20481a.svg
**/
export const STYLED_MODAL_FLOW_ID = 'flow_Uynd2FX0';
//This Flow's config is:
/**
steps:
- id: feature-announcement
title: This announcement has custom styles
subtitle: Use custom CSS or connect your design system.
primaryButton:
title: Got it
secondaryButton:
title: Learn more
uri: https://docs.frigade.com/v2/sdk/styling/theming
target: _blank
action: false
imageUri: https://cdn.frigade.com/8382f5bb-a242-4355-b1a2-25080321352c.svg
**/
export const MODAL_FLOW_ID = 'flow_OMJL2QzR';
//This Flow's config is:
/**
steps:
- id: feature-announcement
title: This is a basic announcement
subtitle: It is a standard, non-styled version.
primaryButton:
title: Next
secondaryButton:
title: Learn more
uri: https://frigade.com/
target: _blank
action: false
imageUri: https://cdn.frigade.com/b7540f8f-1690-4234-b92b-adb9a42ebe36.svg
- id: feature-announcement-2
title: Announcements can be multi-page
subtitle: Check out the other variations on this page
primaryButton:
title: Finish
imageUri: https://cdn.frigade.com/3258935a-a150-46da-9026-54df34729b55.svg
**/
export const CHECKLIST_FLOW_ID = 'flow_lSjFTcXz';
//This Flow's config is:
/**
title: Getting started
subtitle: Build effective onboarding checklists with Frigade <a
href='https://docs.frigade.com/v2/component/checklist/carousel'
target='_blank' style='color:#0171F8;'>pre-built UI</a> or custom components.
steps:
- id: checklist-step-one
title: State Management
subtitle: Frigade automatically tracks and remembers completion statuses for
every user. Mark this step complete, then try closing and reopening this
tab in your browser.
primaryButton:
title: Mark complete
action: step.complete
secondaryButton:
title: Learn more
action: false
uri: https://frigade.com
target: _blank
- id: checklist-step-two
title: Dynamic Completion
subtitle: Sometimes you want to mark a step complete after the user completes a
specific action. Frigade makes this easy. Complete this step by selecting
<strong>`User action`</strong> below.
secondaryButton:
title: Learn more
action: false
uri: https://docs.frigade.com/v2/sdk/advanced/completing-a-step
target: _blank
- id: checklist-step-three
title: Conditional Logic
subtitle: Add your own logic to automatically lock steps or mark them complete.
For example, complete the final step to unlock this step.
startCriteria: user.property('hasFinishedStepFour') == true
primaryButton:
title: Mark complete
- id: checklist-step-four
title: Native UI Components
subtitle: Style every part of our pre-built UI components to fit seamlessly in
your product, or build headless with our SDK. Write
<strong>native</strong> in the box below to complete this step.
**/
export const BANNER_FLOW_ID = 'flow_LrVN8xha';
//This Flow's config is:
/**
steps:
- id: banner-announcement
title: You completed the tour!
subtitle: This is a Frigade banner that uses <a
href='https://docs.frigade.com/v2/platform/targeting' target='_blank'
style='color:#0171F8;'>targeting</a> to automatically show after the tour.
**/
export const BANNER_CARD_FLOW_ID = 'flow_yupOQHJs';
//This Flow's config is:
/**
steps:
- id: banner-announcement
title: Inline UI Components
subtitle: Frigade components like this banner and the below card sit within your
product, not on top of it.
primaryButton:
title: Hide
action: step.complete
**/
export const CARD_FLOW_ID = 'flow_89rqfLTS';
//This Flow's config is:
/**
steps:
- id: my-card
title: Frigade Card
subtitle: Dismiss this card.
**/
export const TOUR_FLOW_ID = 'flow_F0MP8vnI';
//This Flow's config is:
/**
steps:
- id: tour-step-one
title: This is a Frigade tour
subtitle: It can be customized to fit your brand, or built from the ground up
with your own UI components.
primaryButton:
title: Next
selector: "#demo-card-subtitle"
- id: tour-step-two
title: Tours can interact with user inputs
subtitle: Enter a number larger than 100 to advance to the next step of the tour.
secondaryButton:
title: Learn more
action: false
uri: https://docs.frigade.com/v2/component/tour
target: _blank
selector: "#stock-1"
- id: tour-step-three
imageUri: https://cdn.frigade.com/bde697dd-445e-4d70-a395-340096a97a29.png
title: Push the button
subtitle: Select the Medium (M) button to complete the final step of this tour.
selector: "#demo-button-group"
**/
export const FORM_FLOW_ID = 'flow_kTB2fci9';
//This Flow's config is:
/**
steps:
- id: welcome
title: Forms
subtitle: Build powerful, native forms with Frigade. Flexible like Typeform, but
fully customizable and within your own product – not just iframes.
primaryButton:
title: Get started
- id: branching
title: Branching
subtitle: Frigade supports form branching based on user inputs. Try it yourself
by choosing an option below.
secondaryButton:
title: Back
action: flow.back
primaryButton:
title: Continue
fields:
- id: input
type: radio
required: true
options:
- label: "Show me a dropdown "
value: dropdown
- label: Show me a text input
value: text
- label: Show me a multi-select
value: multi
- id: choice-dropdown
title: Frigade has dropdown components
visibilityCriteria: user.flowStepData('flow_kTB2fci9', 'branching', 'input') == 'dropdown'
secondaryButton:
title: Back
action: flow.back
primaryButton:
title: Next
fields:
- id: dropdown
type: select
label: Dropdown
required: true
options:
- label: One
value: one
- label: Two
value: two
- label: Three
value: three
- id: choice-text
title: Frigade has text components
visibilityCriteria: user.flowStepData('flow_kTB2fci9', 'branching', 'input') == 'text'
secondaryButton:
title: Back
action: flow.back
primaryButton:
title: Next
fields:
- id: text
type: text
label: Text
required: true
placeholder: Write anything...
- id: choice-multi
title: Frigade has multi-select components
visibilityCriteria: user.flowStepData('flow_kTB2fci9', 'branching', 'input') == 'multi'
secondaryButton:
title: Back
action: flow.back
primaryButton:
title: Next
fields:
- id: multi
type: select
multiple: true
label: Multi-select
required: true
options:
- label: One
value: one
- label: Two
value: two
- label: Three
value: three
- id: custom-components
title: Custom components
subtitle: Frigade supports embedding components within forms. This page of the
form is a custom component that talks to an external movie API and
populates the dropdown list dynamically.
secondaryButton:
title: Back
action: flow.back
primaryButton:
title: Continue
fields:
- id: movie-typeahead
type: movie-typeahead
- id: custom-components-video
title: Mandatory video
subtitle: Please watch the following video to continue
primaryButton:
title: Continue
fields:
- id: mandatory-video
required: true
type: mandatory-video
- id: contact-us
title: Learn more
subtitle: Visit our developer docs to see all Form options, or feel free to grab
time with our team to discuss your usecase.
secondaryButton:
title: Visit docs
action: false
uri: https://docs.frigade.com/v2/component/form
target: _blank
primaryButton:
title: Finish
fields:
- id: custom-typeahead
type: custom-typeahead
**/