@developer_tribe/react-builder 1.0.8 → 1.0.9

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.
Files changed (216) hide show
  1. package/dist/build-components/BIcon/BIconProps.generated.d.ts +3 -0
  2. package/dist/build-components/BackgroundImage/BackgroundImageProps.generated.d.ts +1 -0
  3. package/dist/build-components/Button/ButtonProps.generated.d.ts +1 -0
  4. package/dist/build-components/Carousel/CarouselProps.generated.d.ts +5 -0
  5. package/dist/build-components/CarouselButtons/CarouselButtonsProps.generated.d.ts +1 -0
  6. package/dist/build-components/CarouselDots/CarouselDotsProps.generated.d.ts +1 -0
  7. package/dist/build-components/CarouselItem/CarouselItemProps.generated.d.ts +1 -0
  8. package/dist/build-components/CarouselProvider/CarouselProviderProps.generated.d.ts +1 -0
  9. package/dist/build-components/Image/ImageProps.generated.d.ts +1 -0
  10. package/dist/build-components/Main/MainProps.generated.d.ts +1 -1
  11. package/dist/build-components/Onboard/OnboardProps.generated.d.ts +1 -0
  12. package/dist/build-components/OnboardButton/OnboardButtonProps.generated.d.ts +1 -0
  13. package/dist/build-components/OnboardButtons/OnboardButtonsProps.generated.d.ts +1 -0
  14. package/dist/build-components/OnboardDot/OnboardDotProps.generated.d.ts +1 -0
  15. package/dist/build-components/OnboardFooter/OnboardFooterProps.generated.d.ts +3 -0
  16. package/dist/build-components/OnboardImage/OnboardImageProps.generated.d.ts +1 -0
  17. package/dist/build-components/OnboardItem/OnboardItemProps.generated.d.ts +1 -0
  18. package/dist/build-components/OnboardProvider/OnboardProviderProps.generated.d.ts +3 -0
  19. package/dist/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.d.ts +3 -0
  20. package/dist/build-components/OnboardTitle/OnboardTitleProps.generated.d.ts +3 -0
  21. package/dist/build-components/PaywallBackground/PaywallBackgroundProps.generated.d.ts +1 -1
  22. package/dist/build-components/PaywallCloseButton/PaywallCloseButtonProps.generated.d.ts +3 -1
  23. package/dist/build-components/PaywallOptions/PaywallOptionsProps.generated.d.ts +1 -1
  24. package/dist/build-components/PaywallProvider/PaywallContext.d.ts +12 -0
  25. package/dist/build-components/PaywallProvider/PaywallProviderProps.generated.d.ts +1 -1
  26. package/dist/build-components/PaywallSubscribeButton/PaywallSubscribeButtonProps.generated.d.ts +1 -0
  27. package/dist/build-components/RadioButton/RadioButtonProps.generated.d.ts +1 -1
  28. package/dist/build-components/Text/TextProps.generated.d.ts +3 -0
  29. package/dist/build-components/View/ViewProps.generated.d.ts +1 -0
  30. package/dist/build-components/patterns.generated.d.ts +372 -374
  31. package/dist/components/BuilderProvider.d.ts +2 -0
  32. package/dist/components/ParamsProvider.d.ts +5 -0
  33. package/dist/components/RenderErrorBoundary.d.ts +28 -0
  34. package/dist/hooks/useSyncHtmlThemeClass.d.ts +7 -0
  35. package/dist/index.cjs.js +5 -5
  36. package/dist/index.cjs.js.map +1 -1
  37. package/dist/index.d.ts +2 -0
  38. package/dist/index.esm.js +3 -3
  39. package/dist/index.esm.js.map +1 -1
  40. package/dist/index.native.cjs.js +4 -4
  41. package/dist/index.native.cjs.js.map +1 -1
  42. package/dist/index.native.d.ts +1 -0
  43. package/dist/index.native.esm.js +4 -4
  44. package/dist/index.native.esm.js.map +1 -1
  45. package/dist/migrations/migratePipe.d.ts +14 -0
  46. package/dist/migrations/migrations/1.1.0_normalize_style_attributes.d.ts +2 -0
  47. package/dist/migrations/semver.d.ts +8 -0
  48. package/dist/migrations/types.d.ts +8 -0
  49. package/dist/mockOS/components/SubscriptionModal.d.ts +7 -0
  50. package/dist/mockOS/context/MockOSContextBase.d.ts +1 -0
  51. package/dist/mockOS/hooks/useMockIap.d.ts +3 -0
  52. package/dist/mockOS/index.d.ts +4 -0
  53. package/dist/mockOS/managers/mockOSIapManager.d.ts +6 -0
  54. package/dist/mockOS/managers/subscriptionManager.d.ts +10 -0
  55. package/dist/pages/ProjectDebug.d.ts +14 -0
  56. package/dist/pages/ProjectMigrationPage.d.ts +23 -0
  57. package/dist/pages/ProjectValidationPage.d.ts +15 -0
  58. package/dist/styles.css +1 -1
  59. package/dist/types/Device.d.ts +5 -0
  60. package/dist/utils/__special_exceptions.d.ts +7 -0
  61. package/dist/utils/getImage.d.ts +23 -0
  62. package/dist/utils/pasteNode.d.ts +15 -0
  63. package/dist/utils/patterns.d.ts +1 -2
  64. package/package.json +6 -2
  65. package/scripts/migrate-patterns-to-v2.mjs +131 -0
  66. package/scripts/migrate-samples-to-current.ts +79 -0
  67. package/scripts/prebuild/utils/createGeneratedProps.js +4 -5
  68. package/scripts/prebuild/utils/validateAllComponentsOrThrow.js +32 -21
  69. package/scripts/prebuild/utils/validatePatternJson.js +12 -10
  70. package/src/.DS_Store +0 -0
  71. package/src/AttributesEditor.tsx +41 -11
  72. package/src/RenderPage.tsx +55 -0
  73. package/src/assets/.DS_Store +0 -0
  74. package/src/assets/devices.json +91 -0
  75. package/src/assets/samples/carousel-sample.json +141 -29
  76. package/src/assets/samples/getSamples.ts +9 -0
  77. package/src/assets/samples/paywall-1.json +119 -71
  78. package/src/assets/samples/simple-1.json +28 -16
  79. package/src/assets/samples/simple-2.json +157 -82
  80. package/src/assets/samples/unmigrated-builder1.json +42 -0
  81. package/src/assets/samples/unvalidated-builder1.json +49 -0
  82. package/src/assets/samples/unvalidated-crash1.json +19 -0
  83. package/src/assets/samples/unvalidated-crashcomponent1.json +16 -0
  84. package/src/assets/samples/vpn-onboard-1.json +91 -51
  85. package/src/assets/samples/vpn-onboard-2.json +318 -278
  86. package/src/assets/samples/vpn-onboard-3.json +286 -252
  87. package/src/assets/samples/vpn-onboard-4.json +286 -252
  88. package/src/assets/samples/vpn-onboard-5.json +434 -374
  89. package/src/assets/samples/vpn-onboard-6.json +290 -250
  90. package/src/attributes-editor/Field.tsx +1 -1
  91. package/src/attributes-editor/LayoutPreviewPicker.tsx +5 -2
  92. package/src/build-components/BIcon/BIconProps.generated.ts +3 -0
  93. package/src/build-components/BIcon/pattern.json +12 -9
  94. package/src/build-components/BackgroundImage/BackgroundImage.tsx +3 -1
  95. package/src/build-components/BackgroundImage/BackgroundImageProps.generated.ts +1 -0
  96. package/src/build-components/BackgroundImage/pattern.json +25 -16
  97. package/src/build-components/Button/Button.tsx +26 -3
  98. package/src/build-components/Button/ButtonProps.generated.ts +1 -0
  99. package/src/build-components/Button/pattern.json +10 -6
  100. package/src/build-components/Carousel/CarouselProps.generated.ts +5 -0
  101. package/src/build-components/Carousel/pattern.json +19 -8
  102. package/src/build-components/CarouselButtons/CarouselButtonsProps.generated.ts +1 -0
  103. package/src/build-components/CarouselButtons/pattern.json +11 -5
  104. package/src/build-components/CarouselDots/CarouselDotsProps.generated.ts +1 -0
  105. package/src/build-components/CarouselDots/pattern.json +5 -4
  106. package/src/build-components/CarouselItem/CarouselItemProps.generated.ts +1 -0
  107. package/src/build-components/CarouselItem/pattern.json +5 -4
  108. package/src/build-components/CarouselProvider/CarouselProvider.tsx +44 -2
  109. package/src/build-components/CarouselProvider/CarouselProviderProps.generated.ts +1 -0
  110. package/src/build-components/Image/Image.tsx +2 -1
  111. package/src/build-components/Image/ImageProps.generated.ts +1 -0
  112. package/src/build-components/Image/pattern.json +11 -5
  113. package/src/build-components/Main/MainProps.generated.ts +1 -1
  114. package/src/build-components/Main/pattern.json +12 -9
  115. package/src/build-components/Onboard/OnboardProps.generated.ts +1 -0
  116. package/src/build-components/Onboard/pattern.json +14 -9
  117. package/src/build-components/OnboardButton/OnboardButtonProps.generated.ts +1 -0
  118. package/src/build-components/OnboardButton/pattern.json +5 -4
  119. package/src/build-components/OnboardButtons/OnboardButtonsProps.generated.ts +1 -0
  120. package/src/build-components/OnboardButtons/pattern.json +5 -4
  121. package/src/build-components/OnboardDot/OnboardDotProps.generated.ts +1 -0
  122. package/src/build-components/OnboardDot/pattern.json +5 -4
  123. package/src/build-components/OnboardFooter/OnboardFooterProps.generated.ts +3 -0
  124. package/src/build-components/OnboardFooter/pattern.json +8 -5
  125. package/src/build-components/OnboardImage/OnboardImageProps.generated.ts +1 -0
  126. package/src/build-components/OnboardImage/pattern.json +7 -4
  127. package/src/build-components/OnboardItem/OnboardItemProps.generated.ts +1 -0
  128. package/src/build-components/OnboardItem/pattern.json +18 -9
  129. package/src/build-components/OnboardProvider/OnboardProviderProps.generated.ts +3 -0
  130. package/src/build-components/OnboardProvider/pattern.json +21 -6
  131. package/src/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.ts +3 -0
  132. package/src/build-components/OnboardSubtitle/pattern.json +10 -6
  133. package/src/build-components/OnboardTitle/OnboardTitleProps.generated.ts +3 -0
  134. package/src/build-components/OnboardTitle/pattern.json +11 -7
  135. package/src/build-components/PaywallBackground/PaywallBackgroundProps.generated.ts +1 -1
  136. package/src/build-components/PaywallBackground/pattern.json +5 -4
  137. package/src/build-components/PaywallCloseButton/PaywallCloseButton.tsx +6 -1
  138. package/src/build-components/PaywallCloseButton/PaywallCloseButtonProps.generated.ts +3 -1
  139. package/src/build-components/PaywallCloseButton/pattern.json +15 -12
  140. package/src/build-components/PaywallOptions/PaywallOptionButton.tsx +0 -1
  141. package/src/build-components/PaywallOptions/PaywallOptions.tsx +3 -2
  142. package/src/build-components/PaywallOptions/PaywallOptionsProps.generated.ts +1 -1
  143. package/src/build-components/PaywallOptions/pattern.json +14 -11
  144. package/src/build-components/PaywallProvider/PaywallContext.ts +25 -0
  145. package/src/build-components/PaywallProvider/PaywallProvider.tsx +102 -5
  146. package/src/build-components/PaywallProvider/PaywallProviderProps.generated.ts +1 -1
  147. package/src/build-components/PaywallProvider/pattern.json +11 -8
  148. package/src/build-components/PaywallSubscribeButton/PaywallSubscribeButton.tsx +7 -0
  149. package/src/build-components/PaywallSubscribeButton/PaywallSubscribeButtonProps.generated.ts +1 -0
  150. package/src/build-components/PaywallSubscribeButton/pattern.json +16 -13
  151. package/src/build-components/RadioButton/RadioButtonProps.generated.ts +1 -1
  152. package/src/build-components/RadioButton/pattern.json +5 -4
  153. package/src/build-components/Text/Text.tsx +107 -4
  154. package/src/build-components/Text/TextProps.generated.ts +3 -0
  155. package/src/build-components/Text/pattern.json +19 -4
  156. package/src/build-components/View/ViewProps.generated.ts +1 -0
  157. package/src/build-components/View/pattern.json +28 -13
  158. package/src/build-components/other.tsx +15 -0
  159. package/src/build-components/patterns.generated.ts +340 -235
  160. package/src/build-components/useNode.ts +22 -3
  161. package/src/components/Builder.tsx +20 -6
  162. package/src/components/BuilderButton.tsx +75 -38
  163. package/src/components/BuilderProvider.tsx +22 -2
  164. package/src/components/DeviceButton.tsx +12 -5
  165. package/src/components/EditorHeader.tsx +296 -38
  166. package/src/components/ParamsProvider.tsx +7 -0
  167. package/src/components/RenderErrorBoundary.tsx +200 -0
  168. package/src/hooks/useParams.ts +5 -1
  169. package/src/hooks/useSyncHtmlThemeClass.ts +19 -0
  170. package/src/index.native.ts +7 -0
  171. package/src/index.ts +8 -0
  172. package/src/migrations/migratePipe.ts +59 -0
  173. package/src/migrations/migrations/1.1.0_normalize_style_attributes.ts +80 -0
  174. package/src/migrations/semver.ts +24 -0
  175. package/src/migrations/types.ts +9 -0
  176. package/src/mockOS/components/PermissionModal.tsx +3 -2
  177. package/src/mockOS/components/SubscriptionModal.tsx +400 -0
  178. package/src/mockOS/context/MockOSContext.tsx +61 -10
  179. package/src/mockOS/context/MockOSContextBase.ts +1 -0
  180. package/src/mockOS/hooks/useMockIap.ts +11 -0
  181. package/src/mockOS/index.ts +7 -0
  182. package/src/mockOS/managers/mockOSIapManager.ts +10 -0
  183. package/src/mockOS/managers/subscriptionManager.ts +36 -0
  184. package/src/modals/IconPickerModal.tsx +1 -1
  185. package/src/pages/ProjectDebug.tsx +331 -0
  186. package/src/pages/ProjectMigrationPage.tsx +92 -0
  187. package/src/pages/ProjectPage.tsx +313 -161
  188. package/src/pages/ProjectValidationPage.tsx +54 -0
  189. package/src/styles/base/_global.scss +58 -11
  190. package/src/styles/components/_attributes-editor.scss +1 -1
  191. package/src/styles/components/_bottom-bar.scss +7 -4
  192. package/src/styles/components/_editor-shell.scss +126 -4
  193. package/src/styles/components/_mockos-router.scss +3 -2
  194. package/src/styles/components/_ui-components.scss +10 -5
  195. package/src/styles/foundation/_colors.scss +78 -11
  196. package/src/styles/foundation/_mixins.scss +4 -1
  197. package/src/styles/foundation/_sizes.scss +4 -2
  198. package/src/styles/index.scss +1 -0
  199. package/src/styles/layout/_builder.scss +61 -0
  200. package/src/styles/layout/_project-validation.scss +214 -0
  201. package/src/styles/modals/_add-component.scss +4 -2
  202. package/src/styles/modals/_color-modal.scss +4 -2
  203. package/src/styles/modals/_modal-shell.scss +3 -1
  204. package/src/types/Device.ts +5 -0
  205. package/src/utils/__special_exceptions.ts +88 -0
  206. package/src/utils/analyseNode.ts +8 -2
  207. package/src/utils/analyseNodeByPatterns.ts +43 -9
  208. package/src/utils/extractTextStyle.ts +19 -6
  209. package/src/utils/extractViewStyle.ts +68 -59
  210. package/src/utils/getImage.ts +76 -0
  211. package/src/utils/novaToJson.ts +2 -1
  212. package/src/utils/pasteNode.ts +172 -0
  213. package/src/utils/patterns.ts +4 -3
  214. package/dist/android.svg +0 -43
  215. package/dist/apple.svg +0 -16
  216. package/dist/background.jpg +0 -0
@@ -1,6 +1,6 @@
1
1
  {
2
- "name": "vpn-onboard-5 (legacy)",
3
- "version": "1.0.0",
2
+ "name": "vpn-onboard-5",
3
+ "version": "1.1.0",
4
4
  "type": "onboard",
5
5
  "appConfig": {
6
6
  "theme": "light",
@@ -85,455 +85,515 @@
85
85
  "children": [
86
86
  {
87
87
  "type": "OnboardProvider",
88
- "children": [
89
- {
90
- "type": "Onboard",
91
88
  "children": [
92
89
  {
93
- "type": "OnboardItem",
94
- "key": "app_onboard-page1",
90
+ "type": "Onboard",
95
91
  "children": [
96
92
  {
97
- "type": "OnboardImage",
98
- "attributes": {
99
- "src": "https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/d237d6cde8bc9126cee7b47e30cd19f0.png",
100
- "height": 400,
101
- "resizeMode": "contain",
102
- "lottie": "https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/lottie/0be045f9fe44c790a4525a1a6bc4b837.json"
103
- }
93
+ "type": "OnboardItem",
94
+ "key": "app_onboard-page1",
95
+ "children": [
96
+ {
97
+ "type": "OnboardImage",
98
+ "attributes": {
99
+ "src": "https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/d237d6cde8bc9126cee7b47e30cd19f0.png",
100
+ "resizeMode": "contain",
101
+ "lottie": "https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/lottie/0be045f9fe44c790a4525a1a6bc4b837.json",
102
+ "style": {
103
+ "height": 400
104
+ }
105
+ }
106
+ },
107
+ {
108
+ "type": "OnboardTitle",
109
+ "attributes": {
110
+ "style": {
111
+ "color": "#080A17"
112
+ }
113
+ },
114
+ "children": "onboard.title.one-page"
115
+ },
116
+ {
117
+ "type": "OnboardSubtitle",
118
+ "attributes": {
119
+ "style": {
120
+ "color": "#272737"
121
+ }
122
+ },
123
+ "children": "onboard.subtitle.one-page"
124
+ }
125
+ ]
104
126
  },
105
127
  {
106
- "type": "OnboardTitle",
107
- "attributes": {
108
- "color": "#080A17"
109
- },
110
- "children": "onboard.title.one-page"
128
+ "type": "OnboardItem",
129
+ "key": "app_onboard-page2",
130
+ "children": [
131
+ {
132
+ "type": "OnboardImage",
133
+ "attributes": {
134
+ "src": "https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/820dc32b8252555058e7014a7fd1652f.png",
135
+ "resizeMode": "contain",
136
+ "video_url": "https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/video/440346112d02e65be3767c39b96cd7c0.mp4",
137
+ "style": {
138
+ "height": 400
139
+ }
140
+ }
141
+ },
142
+ {
143
+ "type": "OnboardTitle",
144
+ "attributes": {
145
+ "style": {
146
+ "color": "#080A17"
147
+ }
148
+ },
149
+ "children": "onboard.title.two-page"
150
+ },
151
+ {
152
+ "type": "OnboardSubtitle",
153
+ "attributes": {
154
+ "style": {
155
+ "color": "#272737"
156
+ }
157
+ },
158
+ "children": "onboard.subtitle.two-page"
159
+ }
160
+ ]
111
161
  },
112
162
  {
113
- "type": "OnboardSubtitle",
114
- "attributes": {
115
- "color": "#272737"
116
- },
117
- "children": "onboard.subtitle.one-page"
163
+ "type": "OnboardItem",
164
+ "key": "app_onboard-page3",
165
+ "children": [
166
+ {
167
+ "type": "OnboardImage",
168
+ "attributes": {
169
+ "src": "https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/fbb8677cd23cba79eef0ebef181e3b57.png",
170
+ "resizeMode": "contain",
171
+ "style": {
172
+ "height": 400
173
+ }
174
+ }
175
+ },
176
+ {
177
+ "type": "OnboardTitle",
178
+ "attributes": {
179
+ "style": {
180
+ "color": "#080A17"
181
+ }
182
+ },
183
+ "children": "onboard.title.three-page"
184
+ },
185
+ {
186
+ "type": "OnboardSubtitle",
187
+ "attributes": {
188
+ "style": {
189
+ "color": "#272737"
190
+ }
191
+ },
192
+ "children": "onboard.subtitle.three-page"
193
+ }
194
+ ]
195
+ },
196
+ {
197
+ "type": "OnboardItem",
198
+ "key": "app_onboard-page4",
199
+ "children": [
200
+ {
201
+ "type": "OnboardImage",
202
+ "attributes": {
203
+ "src": "https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/18cdd5cc478389df8ff362f95b7173ea.png",
204
+ "resizeMode": "contain",
205
+ "style": {
206
+ "height": 400
207
+ }
208
+ }
209
+ },
210
+ {
211
+ "type": "OnboardTitle",
212
+ "attributes": {
213
+ "style": {
214
+ "color": "#080A17"
215
+ }
216
+ },
217
+ "children": "onboard.title.five-page"
218
+ },
219
+ {
220
+ "type": "OnboardSubtitle",
221
+ "attributes": {
222
+ "style": {
223
+ "color": "#272737"
224
+ }
225
+ },
226
+ "children": "onboard.subtitle.five-page"
227
+ }
228
+ ]
229
+ },
230
+ {
231
+ "type": "OnboardItem",
232
+ "key": "app_onboard-page6",
233
+ "children": [
234
+ {
235
+ "type": "OnboardImage",
236
+ "attributes": {
237
+ "src": "https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/3c1225f83f5a5c934926fab3cb0e65d5.png",
238
+ "resizeMode": "contain",
239
+ "style": {
240
+ "height": 400
241
+ }
242
+ }
243
+ },
244
+ {
245
+ "type": "OnboardTitle",
246
+ "attributes": {
247
+ "style": {
248
+ "color": "#080A17"
249
+ }
250
+ },
251
+ "children": "onboard.title.six-page"
252
+ },
253
+ {
254
+ "type": "OnboardSubtitle",
255
+ "attributes": {
256
+ "style": {
257
+ "color": "#272737"
258
+ }
259
+ },
260
+ "children": "onboard.subtitle.six-page"
261
+ }
262
+ ]
263
+ },
264
+ {
265
+ "type": "OnboardItem",
266
+ "key": "app_onboard-page5",
267
+ "children": [
268
+ {
269
+ "type": "OnboardImage",
270
+ "attributes": {
271
+ "src": "https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/ff07e162b2a63d38f07909e87848d46f.png",
272
+ "resizeMode": "contain",
273
+ "style": {
274
+ "height": 400
275
+ }
276
+ }
277
+ },
278
+ {
279
+ "type": "OnboardTitle",
280
+ "attributes": {
281
+ "style": {
282
+ "color": "#080A17"
283
+ }
284
+ },
285
+ "children": "onboard.title.four-page"
286
+ },
287
+ {
288
+ "type": "OnboardSubtitle",
289
+ "attributes": {
290
+ "style": {
291
+ "color": "#272737"
292
+ }
293
+ },
294
+ "children": "onboard.subtitle.four-page"
295
+ }
296
+ ]
118
297
  }
119
298
  ]
120
299
  },
121
300
  {
122
- "type": "OnboardItem",
123
- "key": "app_onboard-page2",
301
+ "type": "OnboardDot",
302
+ "attributes": {
303
+ "dotType": "expanding_dot",
304
+ "expanding_dot_width": 20
305
+ }
306
+ },
307
+ {
308
+ "type": "OnboardButtons",
309
+ "attributes": {
310
+ "buttons_direction": "row",
311
+ "condition": "carousel-index",
312
+ "conditionVariable": 0
313
+ },
124
314
  "children": [
125
315
  {
126
- "type": "OnboardImage",
316
+ "type": "OnboardButton",
127
317
  "attributes": {
128
- "src": "https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/820dc32b8252555058e7014a7fd1652f.png",
129
- "height": 400,
130
- "resizeMode": "contain",
131
- "video_url": "https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/video/440346112d02e65be3767c39b96cd7c0.mp4"
318
+ "labelKey": "onboard.skip.one-page",
319
+ "button_text_color": "#0450E2",
320
+ "button_background_color": "#E9EBF9",
321
+ "events": [
322
+ {
323
+ "type": "Navigate",
324
+ "navigate_to": null,
325
+ "targetIndex": 3
326
+ }
327
+ ],
328
+ "style": {
329
+ "flex": 1
330
+ }
132
331
  }
133
332
  },
134
333
  {
135
- "type": "OnboardTitle",
136
- "attributes": {
137
- "color": "#080A17"
138
- },
139
- "children": "onboard.title.two-page"
140
- },
141
- {
142
- "type": "OnboardSubtitle",
334
+ "type": "OnboardButton",
143
335
  "attributes": {
144
- "color": "#272737"
145
- },
146
- "children": "onboard.subtitle.two-page"
336
+ "labelKey": "onboard.next.one-page",
337
+ "button_text_color": "#ffffff",
338
+ "button_background_color": "#0450E2",
339
+ "events": [
340
+ {
341
+ "type": "Navigate",
342
+ "navigate_to": null,
343
+ "targetIndex": 1
344
+ }
345
+ ],
346
+ "style": {
347
+ "flex": 1
348
+ }
349
+ }
147
350
  }
148
351
  ]
149
352
  },
150
353
  {
151
- "type": "OnboardItem",
152
- "key": "app_onboard-page3",
354
+ "type": "OnboardButtons",
355
+ "attributes": {
356
+ "buttons_direction": "row",
357
+ "condition": "carousel-index",
358
+ "conditionVariable": 1
359
+ },
153
360
  "children": [
154
361
  {
155
- "type": "OnboardImage",
362
+ "type": "OnboardButton",
156
363
  "attributes": {
157
- "src": "https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/fbb8677cd23cba79eef0ebef181e3b57.png",
158
- "height": 400,
159
- "resizeMode": "contain"
364
+ "labelKey": "onboard.skip.two-page",
365
+ "button_text_color": "#0450E2",
366
+ "button_background_color": "#E9EBF9",
367
+ "events": [
368
+ {
369
+ "type": "Navigate",
370
+ "navigate_to": null,
371
+ "targetIndex": 3
372
+ }
373
+ ],
374
+ "style": {
375
+ "flex": 1
376
+ }
160
377
  }
161
378
  },
162
379
  {
163
- "type": "OnboardTitle",
164
- "attributes": {
165
- "color": "#080A17"
166
- },
167
- "children": "onboard.title.three-page"
168
- },
169
- {
170
- "type": "OnboardSubtitle",
380
+ "type": "OnboardButton",
171
381
  "attributes": {
172
- "color": "#272737"
173
- },
174
- "children": "onboard.subtitle.three-page"
382
+ "labelKey": "onboard.next.two-page",
383
+ "button_text_color": "#ffffff",
384
+ "button_background_color": "#0450E2",
385
+ "events": [
386
+ {
387
+ "type": "Navigate",
388
+ "navigate_to": null,
389
+ "targetIndex": 2
390
+ }
391
+ ],
392
+ "style": {
393
+ "flex": 1
394
+ }
395
+ }
175
396
  }
176
397
  ]
177
398
  },
178
399
  {
179
- "type": "OnboardItem",
180
- "key": "app_onboard-page4",
400
+ "type": "OnboardButtons",
401
+ "attributes": {
402
+ "buttons_direction": "row",
403
+ "condition": "carousel-index",
404
+ "conditionVariable": 2
405
+ },
181
406
  "children": [
182
407
  {
183
- "type": "OnboardImage",
408
+ "type": "OnboardButton",
184
409
  "attributes": {
185
- "src": "https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/18cdd5cc478389df8ff362f95b7173ea.png",
186
- "height": 400,
187
- "resizeMode": "contain"
410
+ "labelKey": "onboard.skip.three-page",
411
+ "button_text_color": "#0450E2",
412
+ "button_background_color": "#E9EBF9",
413
+ "events": [
414
+ {
415
+ "type": "Navigate",
416
+ "navigate_to": null,
417
+ "targetIndex": 3
418
+ }
419
+ ],
420
+ "style": {
421
+ "flex": 1
422
+ }
188
423
  }
189
424
  },
190
425
  {
191
- "type": "OnboardTitle",
192
- "attributes": {
193
- "color": "#080A17"
194
- },
195
- "children": "onboard.title.five-page"
196
- },
197
- {
198
- "type": "OnboardSubtitle",
426
+ "type": "OnboardButton",
199
427
  "attributes": {
200
- "color": "#272737"
201
- },
202
- "children": "onboard.subtitle.five-page"
428
+ "labelKey": "onboard.next.three-page",
429
+ "button_text_color": "#ffffff",
430
+ "button_background_color": "#0450E2",
431
+ "events": [
432
+ {
433
+ "type": "Navigate",
434
+ "navigate_to": null,
435
+ "targetIndex": 3
436
+ }
437
+ ],
438
+ "style": {
439
+ "flex": 1
440
+ }
441
+ }
203
442
  }
204
443
  ]
205
444
  },
206
445
  {
207
- "type": "OnboardItem",
208
- "key": "app_onboard-page6",
446
+ "type": "OnboardButtons",
447
+ "attributes": {
448
+ "buttons_direction": "row",
449
+ "condition": "carousel-index",
450
+ "conditionVariable": 3
451
+ },
209
452
  "children": [
210
453
  {
211
- "type": "OnboardImage",
454
+ "type": "OnboardButton",
212
455
  "attributes": {
213
- "src": "https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/3c1225f83f5a5c934926fab3cb0e65d5.png",
214
- "height": 400,
215
- "resizeMode": "contain"
456
+ "labelKey": "onboard.skip.five-page",
457
+ "button_text_color": "#0450E2",
458
+ "button_background_color": "#E9EBF9",
459
+ "events": [
460
+ {
461
+ "type": "Navigate",
462
+ "navigate_to": null,
463
+ "targetIndex": 4
464
+ }
465
+ ],
466
+ "style": {
467
+ "flex": 1
468
+ }
216
469
  }
217
470
  },
218
471
  {
219
- "type": "OnboardTitle",
472
+ "type": "OnboardButton",
220
473
  "attributes": {
221
- "color": "#080A17"
222
- },
223
- "children": "onboard.title.six-page"
224
- },
225
- {
226
- "type": "OnboardSubtitle",
227
- "attributes": {
228
- "color": "#272737"
229
- },
230
- "children": "onboard.subtitle.six-page"
474
+ "labelKey": "onboard.next.five-page",
475
+ "button_text_color": "#ffffff",
476
+ "button_background_color": "#0450E2",
477
+ "events": [
478
+ {
479
+ "type": "Permission",
480
+ "permission": "GDPR"
481
+ },
482
+ {
483
+ "type": "Navigate",
484
+ "navigate_to": null,
485
+ "targetIndex": 4
486
+ }
487
+ ],
488
+ "style": {
489
+ "flex": 1
490
+ }
491
+ }
231
492
  }
232
493
  ]
233
494
  },
234
495
  {
235
- "type": "OnboardItem",
236
- "key": "app_onboard-page5",
496
+ "type": "OnboardButtons",
497
+ "attributes": {
498
+ "buttons_direction": "row",
499
+ "condition": "carousel-index",
500
+ "conditionVariable": 4
501
+ },
237
502
  "children": [
238
503
  {
239
- "type": "OnboardImage",
504
+ "type": "OnboardButton",
240
505
  "attributes": {
241
- "src": "https://vpn111-stage.s3.eu-central-1.amazonaws.com/onboard/high/ff07e162b2a63d38f07909e87848d46f.png",
242
- "height": 400,
243
- "resizeMode": "contain"
506
+ "labelKey": "onboard.skip.five-page",
507
+ "button_text_color": "#0450E2",
508
+ "button_background_color": "#E9EBF9",
509
+ "events": [
510
+ {
511
+ "type": "Navigate",
512
+ "navigate_to": null,
513
+ "targetIndex": 5
514
+ }
515
+ ],
516
+ "style": {
517
+ "flex": 1
518
+ }
244
519
  }
245
520
  },
246
521
  {
247
- "type": "OnboardTitle",
248
- "attributes": {
249
- "color": "#080A17"
250
- },
251
- "children": "onboard.title.four-page"
252
- },
253
- {
254
- "type": "OnboardSubtitle",
522
+ "type": "OnboardButton",
255
523
  "attributes": {
256
- "color": "#272737"
257
- },
258
- "children": "onboard.subtitle.four-page"
524
+ "labelKey": "onboard.next.five-page",
525
+ "button_text_color": "#ffffff",
526
+ "button_background_color": "#0450E2",
527
+ "events": [
528
+ {
529
+ "type": "Permission",
530
+ "permission": "rating"
531
+ },
532
+ {
533
+ "type": "Navigate",
534
+ "navigate_to": null,
535
+ "targetIndex": 5
536
+ }
537
+ ],
538
+ "style": {
539
+ "flex": 1
540
+ }
541
+ }
259
542
  }
260
543
  ]
261
- }
262
- ]
263
- },
264
- {
265
- "type": "OnboardDot",
266
- "attributes": {
267
- "dotType": "expanding_dot",
268
- "expanding_dot_width": 20
269
- }
270
- },
271
- {
272
- "type": "OnboardButtons",
273
- "attributes": {
274
- "buttons_direction": "row",
275
- "condition": "carousel-index",
276
- "conditionVariable": 0
277
- },
278
- "children": [
279
- {
280
- "type": "OnboardButton",
281
- "attributes": {
282
- "labelKey": "onboard.skip.one-page",
283
- "button_text_color": "#0450E2",
284
- "button_background_color": "#E9EBF9",
285
- "flex": 1,
286
- "events": [
287
- {
288
- "type": "Navigate",
289
- "navigate_to": null,
290
- "targetIndex": 3
291
- }
292
- ]
293
- }
294
- },
295
- {
296
- "type": "OnboardButton",
297
- "attributes": {
298
- "labelKey": "onboard.next.one-page",
299
- "button_text_color": "#ffffff",
300
- "button_background_color": "#0450E2",
301
- "flex": 1,
302
- "events": [
303
- {
304
- "type": "Navigate",
305
- "navigate_to": null,
306
- "targetIndex": 1
307
- }
308
- ]
309
- }
310
- }
311
- ]
312
- },
313
- {
314
- "type": "OnboardButtons",
315
- "attributes": {
316
- "buttons_direction": "row",
317
- "condition": "carousel-index",
318
- "conditionVariable": 1
319
- },
320
- "children": [
321
- {
322
- "type": "OnboardButton",
323
- "attributes": {
324
- "labelKey": "onboard.skip.two-page",
325
- "button_text_color": "#0450E2",
326
- "button_background_color": "#E9EBF9",
327
- "flex": 1,
328
- "events": [
329
- {
330
- "type": "Navigate",
331
- "navigate_to": null,
332
- "targetIndex": 3
333
- }
334
- ]
335
- }
336
- },
337
- {
338
- "type": "OnboardButton",
339
- "attributes": {
340
- "labelKey": "onboard.next.two-page",
341
- "button_text_color": "#ffffff",
342
- "button_background_color": "#0450E2",
343
- "flex": 1,
344
- "events": [
345
- {
346
- "type": "Navigate",
347
- "navigate_to": null,
348
- "targetIndex": 2
349
- }
350
- ]
351
- }
352
- }
353
- ]
354
- },
355
- {
356
- "type": "OnboardButtons",
357
- "attributes": {
358
- "buttons_direction": "row",
359
- "condition": "carousel-index",
360
- "conditionVariable": 2
361
- },
362
- "children": [
363
- {
364
- "type": "OnboardButton",
365
- "attributes": {
366
- "labelKey": "onboard.skip.three-page",
367
- "button_text_color": "#0450E2",
368
- "button_background_color": "#E9EBF9",
369
- "flex": 1,
370
- "events": [
371
- {
372
- "type": "Navigate",
373
- "navigate_to": null,
374
- "targetIndex": 3
375
- }
376
- ]
377
- }
378
544
  },
379
545
  {
380
- "type": "OnboardButton",
381
- "attributes": {
382
- "labelKey": "onboard.next.three-page",
383
- "button_text_color": "#ffffff",
384
- "button_background_color": "#0450E2",
385
- "flex": 1,
386
- "events": [
387
- {
388
- "type": "Navigate",
389
- "navigate_to": null,
390
- "targetIndex": 3
391
- }
392
- ]
393
- }
394
- }
395
- ]
396
- },
397
- {
398
- "type": "OnboardButtons",
399
- "attributes": {
400
- "buttons_direction": "row",
401
- "condition": "carousel-index",
402
- "conditionVariable": 3
403
- },
404
- "children": [
405
- {
406
- "type": "OnboardButton",
546
+ "type": "OnboardButtons",
407
547
  "attributes": {
408
- "labelKey": "onboard.skip.five-page",
409
- "button_text_color": "#0450E2",
410
- "button_background_color": "#E9EBF9",
411
- "flex": 1,
412
- "events": [
413
- {
414
- "type": "Navigate",
415
- "navigate_to": null,
416
- "targetIndex": 4
417
- }
418
- ]
419
- }
420
- },
421
- {
422
- "type": "OnboardButton",
423
- "attributes": {
424
- "labelKey": "onboard.next.five-page",
425
- "button_text_color": "#ffffff",
426
- "button_background_color": "#0450E2",
427
- "flex": 1,
428
- "events": [
429
- {
430
- "type": "Permission",
431
- "permission": "GDPR"
432
- },
433
- {
434
- "type": "Navigate",
435
- "navigate_to": null,
436
- "targetIndex": 4
437
- }
438
- ]
439
- }
440
- }
441
- ]
442
- },
443
- {
444
- "type": "OnboardButtons",
445
- "attributes": {
446
- "buttons_direction": "row",
447
- "condition": "carousel-index",
448
- "conditionVariable": 4
449
- },
450
- "children": [
451
- {
452
- "type": "OnboardButton",
453
- "attributes": {
454
- "labelKey": "onboard.skip.five-page",
455
- "button_text_color": "#0450E2",
456
- "button_background_color": "#E9EBF9",
457
- "flex": 1,
458
- "events": [
459
- {
460
- "type": "Navigate",
461
- "navigate_to": null,
462
- "targetIndex": 5
548
+ "buttons_direction": "row",
549
+ "condition": "carousel-index",
550
+ "conditionVariable": 5
551
+ },
552
+ "children": [
553
+ {
554
+ "type": "OnboardButton",
555
+ "attributes": {
556
+ "labelKey": "onboard.allow.four-page",
557
+ "button_text_color": "#ffffff",
558
+ "button_background_color": "#0450E2",
559
+ "events": [
560
+ {
561
+ "type": "Permission",
562
+ "permission": "notification"
563
+ },
564
+ {
565
+ "type": "Navigate",
566
+ "navigate_to": "subscriptions"
567
+ }
568
+ ],
569
+ "style": {
570
+ "flex": 1
571
+ }
463
572
  }
464
- ]
465
- }
573
+ }
574
+ ]
466
575
  },
467
576
  {
468
- "type": "OnboardButton",
577
+ "type": "OnboardFooter",
469
578
  "attributes": {
470
- "labelKey": "onboard.next.five-page",
471
- "button_text_color": "#ffffff",
472
- "button_background_color": "#0450E2",
473
- "flex": 1,
474
- "events": [
475
- {
476
- "type": "Permission",
477
- "permission": "rating"
478
- },
479
- {
480
- "type": "Navigate",
481
- "navigate_to": null,
482
- "targetIndex": 5
483
- }
484
- ]
485
- }
486
- }
487
- ]
488
- },
489
- {
490
- "type": "OnboardButtons",
491
- "attributes": {
492
- "buttons_direction": "row",
493
- "condition": "carousel-index",
494
- "conditionVariable": 5
495
- },
496
- "children": [
497
- {
498
- "type": "OnboardButton",
499
- "attributes": {
500
- "labelKey": "onboard.allow.four-page",
501
- "button_text_color": "#ffffff",
502
- "button_background_color": "#0450E2",
503
- "flex": 1,
504
- "events": [
505
- {
506
- "type": "Permission",
507
- "permission": "notification"
508
- },
509
- {
510
- "type": "Navigate",
511
- "navigate_to": "subscriptions"
512
- }
513
- ]
579
+ "textLocalizationKey": "view.onboarding.footer.description",
580
+ "linkedWordFirstLocalizationKey": "view.onboarding.btnPrivacy",
581
+ "linkedWordFirstColor": "#0450E2",
582
+ "linkedWordFirstPage": "privacy",
583
+ "linkedWordSecondLocalizationKey": "view.onboarding.btnTerms",
584
+ "linkedWordSecondColor": "#0450E2",
585
+ "linkedWordSecondPage": "terms",
586
+ "style": {
587
+ "gap": 8,
588
+ "color": "#A2A4B1"
589
+ }
514
590
  }
515
591
  }
516
- ]
517
- },
518
- {
519
- "type": "OnboardFooter",
592
+ ],
520
593
  "attributes": {
521
- "gap": 8,
522
- "textLocalizationKey": "view.onboarding.footer.description",
523
- "textColor": "#A2A4B1",
524
- "linkedWordFirstLocalizationKey": "view.onboarding.btnPrivacy",
525
- "linkedWordFirstColor": "#0450E2",
526
- "linkedWordFirstPage": "privacy",
527
- "linkedWordSecondLocalizationKey": "view.onboarding.btnTerms",
528
- "linkedWordSecondColor": "#0450E2",
529
- "linkedWordSecondPage": "terms"
594
+ "theme": "all"
530
595
  }
531
596
  }
532
- ],
533
- "attributes": {
534
- "theme": "all"
535
- }
536
- }
537
597
  ]
538
598
  }
539
599
  }