-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflowExample.json
More file actions
241 lines (241 loc) · 7.87 KB
/
Copy pathflowExample.json
File metadata and controls
241 lines (241 loc) · 7.87 KB
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
{
"version": "7.2",
"data_api_version": "3.0",
"routing_model": {
"SIGN_IN": ["SIGN_UP", "FORGOT_PASSWORD"],
"SIGN_UP": ["TERMS_AND_CONDITIONS"],
"FORGOT_PASSWORD": [],
"TERMS_AND_CONDITIONS": []
},
"screens": [
{
"id": "SIGN_IN",
"title": "Sign in",
"terminal": true,
"success": true,
"data": {},
"layout": {
"type": "SingleColumnLayout",
"children": [
{
"type": "Form",
"name": "sign_in_form",
"children": [
{
"type": "TextInput",
"required": true,
"label": "Email address",
"name": "email",
"input-type": "email"
},
{
"type": "TextInput",
"required": true,
"label": "Password",
"name": "password",
"input-type": "password"
},
{
"type": "EmbeddedLink",
"text": "Don't have an account? Sign up",
"on-click-action": {
"name": "navigate",
"next": {
"type": "screen",
"name": "SIGN_UP"
},
"payload": {}
}
},
{
"type": "EmbeddedLink",
"text": "Forgot password",
"on-click-action": {
"name": "navigate",
"next": {
"type": "screen",
"name": "FORGOT_PASSWORD"
},
"payload": {
"body": "Example"
}
}
},
{
"type": "Footer",
"label": "Sign in",
"on-click-action": {
"name": "data_exchange",
"payload": {
"email": "${form.email}",
"password": "${form.password}"
}
}
}
]
}
]
}
},
{
"id": "SIGN_UP",
"title": "Sign up",
"data": {},
"layout": {
"type": "SingleColumnLayout",
"children": [
{
"type": "Form",
"name": "sign_up_form",
"children": [
{
"type": "TextInput",
"required": true,
"label": "First Name",
"name": "first_name",
"input-type": "text"
},
{
"type": "TextInput",
"required": true,
"label": "Last Name",
"name": "last_name",
"input-type": "text"
},
{
"type": "TextInput",
"required": true,
"label": "Email address",
"name": "email",
"input-type": "email"
},
{
"type": "TextInput",
"required": true,
"label": "Set password",
"name": "password",
"input-type": "password"
},
{
"type": "TextInput",
"required": true,
"label": "Confirm password",
"name": "confirm_password",
"input-type": "password"
},
{
"type": "OptIn",
"name": "terms_agreement",
"label": "I agree with the terms.",
"required": true,
"on-click-action": {
"name": "navigate",
"next": {
"type": "screen",
"name": "TERMS_AND_CONDITIONS"
},
"payload": {}
}
},
{
"type": "OptIn",
"name": "offers_acceptance",
"label": "I would like to receive news and offers."
},
{
"type": "Footer",
"label": "Continue",
"on-click-action": {
"name": "data_exchange",
"payload": {
"first_name": "${form.first_name}",
"last_name": "${form.last_name}",
"email": "${form.email}",
"password": "${form.password}",
"confirm_password": "${form.confirm_password}",
"terms_agreement": "${form.terms_agreement}",
"offers_acceptance": "${form.offers_acceptance}"
}
}
}
]
}
]
}
},
{
"id": "FORGOT_PASSWORD",
"title": "Forgot password",
"terminal": true,
"success": true,
"data": {
"body": {
"type": "string",
"__example__": "Enter your email address for your account and we'll send a reset link. The single-use link will expire after 24 hours."
}
},
"layout": {
"type": "SingleColumnLayout",
"children": [
{
"type": "Form",
"name": "forgot_password_form",
"children": [
{
"type": "TextBody",
"text": "${data.body}"
},
{
"type": "TextInput",
"required": true,
"label": "Email address",
"name": "email",
"input-type": "email"
},
{
"type": "Footer",
"label": "Sign in",
"on-click-action": {
"name": "data_exchange",
"payload": {
"email": "${form.email}"
}
}
}
]
}
]
}
},
{
"id": "TERMS_AND_CONDITIONS",
"title": "Terms and conditions",
"data": {},
"layout": {
"type": "SingleColumnLayout",
"children": [
{
"type": "TextHeading",
"text": "Our Terms"
},
{
"type": "TextSubheading",
"text": "Data usage"
},
{
"type": "TextBody",
"text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vitae odio dui. Praesent ut nulla tincidunt, scelerisque augue malesuada, volutpat lorem. Aliquam iaculis ex at diam posuere mollis. Suspendisse eget purus ac tellus interdum pharetra. In quis dolor turpis. Fusce in porttitor enim, vitae efficitur nunc. Fusce dapibus finibus volutpat. Fusce velit mi, ullamcorper ac gravida vitae, blandit quis ex. Fusce ultrices diam et justo blandit, quis consequat nisl euismod. Vestibulum pretium est sem, vitae convallis justo sollicitudin non. Morbi bibendum purus mattis quam condimentum, a scelerisque erat bibendum. Nullam sit amet bibendum lectus."
},
{
"type": "TextSubheading",
"text": "Privacy policy"
},
{
"type": "TextBody",
"text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vitae odio dui. Praesent ut nulla tincidunt, scelerisque augue malesuada, volutpat lorem. Aliquam iaculis ex at diam posuere mollis. Suspendisse eget purus ac tellus interdum pharetra. In quis dolor turpis. Fusce in porttitor enim, vitae efficitur nunc. Fusce dapibus finibus volutpat. Fusce velit mi, ullamcorper ac gravida vitae, blandit quis ex. Fusce ultrices diam et justo blandit, quis consequat nisl euismod. Vestibulum pretium est sem, vitae convallis justo sollicitudin non. Morbi bibendum purus mattis quam condimentum, a scelerisque erat bibendum. Nullam sit amet bibendum lectus."
}
]
}
}
]
}