@developer_tribe/react-builder 1.2.22 → 1.2.24

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 (106) hide show
  1. package/dist/attribute-analyser/style/native/useExtractImageStyle.d.ts +6 -6
  2. package/dist/attribute-analyser/style/native/useExtractTextStyle.d.ts +6 -4
  3. package/dist/attribute-analyser/style/native/useExtractViewStyle.d.ts +5 -3
  4. package/dist/build-components/Image/ImageProps.generated.d.ts +2 -4
  5. package/dist/build-components/NavigationBarColor/NavigationBarColor.d.ts +5 -0
  6. package/dist/build-components/NavigationBarColor/NavigationBarColorProps.generated.d.ts +54 -0
  7. package/dist/build-components/OnboardImage/OnboardImageProps.generated.d.ts +1 -3
  8. package/dist/build-components/Separator/Separator.d.ts +5 -0
  9. package/dist/build-components/Separator/SeparatorProps.generated.d.ts +21 -0
  10. package/dist/build-components/StatusBarColor/StatusBarColor.d.ts +5 -0
  11. package/dist/build-components/StatusBarColor/StatusBarColorProps.generated.d.ts +54 -0
  12. package/dist/build-components/index.d.ts +4 -1
  13. package/dist/build-components/patterns.generated.d.ts +2111 -1251
  14. package/dist/components/AttributesEditorPanel.d.ts +1 -1
  15. package/dist/components/BuilderProvider.d.ts +1 -1
  16. package/dist/index.cjs.js +4 -4
  17. package/dist/index.cjs.js.map +1 -1
  18. package/dist/index.d.ts +2 -0
  19. package/dist/index.esm.js +4 -4
  20. package/dist/index.esm.js.map +1 -1
  21. package/dist/index.web.cjs.js +6 -6
  22. package/dist/index.web.cjs.js.map +1 -1
  23. package/dist/index.web.esm.js +4 -4
  24. package/dist/index.web.esm.js.map +1 -1
  25. package/dist/store.d.ts +4 -0
  26. package/dist/styles.css +1 -1
  27. package/dist/utils/attributeStyle.d.ts +21 -0
  28. package/dist/utils/extractImageStyle.d.ts +1 -1
  29. package/dist/utils/extractViewStyle/extractViewStyleNative.d.ts +1 -1
  30. package/package.json +7 -2
  31. package/src/DeviceMockFrame.tsx +8 -2
  32. package/src/assets/meta.json +1 -1
  33. package/src/assets/samples/paywall-1.json +44 -39
  34. package/src/assets/samples/paywall-2.json +44 -25
  35. package/src/assets/samples/paywall-app-delete-offer.json +40 -21
  36. package/src/assets/samples/paywall-app-open-offer.json +40 -21
  37. package/src/assets/samples/paywall-back-offer.json +40 -21
  38. package/src/assets/samples/paywall-notification-offer.json +40 -21
  39. package/src/assets/samples/vpn-onboard-1.json +84 -39
  40. package/src/assets/samples/vpn-onboard-2.json +85 -40
  41. package/src/assets/samples/vpn-onboard-3.json +84 -39
  42. package/src/assets/samples/vpn-onboard-4.json +84 -39
  43. package/src/assets/samples/vpn-onboard-5.json +102 -55
  44. package/src/assets/samples/vpn-onboard-6.json +87 -38
  45. package/src/attribute-analyser/style/native/useExtractImageStyle.ts +31 -25
  46. package/src/attribute-analyser/style/native/useExtractTextStyle.ts +26 -11
  47. package/src/attribute-analyser/style/native/useExtractViewStyle.ts +21 -11
  48. package/src/attributes-editor/useAttributesEditorModel.ts +23 -17
  49. package/src/build-components/BackgroundImage/pattern.json +9 -7
  50. package/src/build-components/CarouselDots/CarouselDots.tsx +12 -11
  51. package/src/build-components/CarouselProvider/CarouselProvider.tsx +3 -1
  52. package/src/build-components/Image/ImageProps.generated.ts +2 -4
  53. package/src/build-components/Image/pattern.json +15 -25
  54. package/src/build-components/NavigationBarColor/NavigationBarColor.tsx +39 -0
  55. package/src/build-components/NavigationBarColor/NavigationBarColorProps.generated.ts +71 -0
  56. package/src/build-components/NavigationBarColor/pattern.json +34 -0
  57. package/src/build-components/OnboardButton/OnboardButton.tsx +19 -5
  58. package/src/build-components/OnboardButtons/OnboardButtons.tsx +8 -10
  59. package/src/build-components/OnboardDot/OnboardDot.tsx +12 -10
  60. package/src/build-components/OnboardFooter/OnboardFooter.tsx +15 -4
  61. package/src/build-components/OnboardImage/OnboardImage.tsx +1 -1
  62. package/src/build-components/OnboardImage/OnboardImageProps.generated.ts +1 -3
  63. package/src/build-components/OnboardProvider/OnboardProvider.tsx +3 -1
  64. package/src/build-components/RenderNode.generated.tsx +15 -0
  65. package/src/build-components/Separator/Separator.tsx +41 -0
  66. package/src/build-components/Separator/SeparatorProps.generated.ts +26 -0
  67. package/src/build-components/Separator/pattern.json +59 -0
  68. package/src/build-components/StatusBarColor/StatusBarColor.tsx +39 -0
  69. package/src/build-components/StatusBarColor/StatusBarColorProps.generated.ts +71 -0
  70. package/src/build-components/StatusBarColor/pattern.json +34 -0
  71. package/src/build-components/Text/pattern.json +45 -38
  72. package/src/build-components/index.ts +15 -0
  73. package/src/build-components/patterns.generated.ts +2153 -1272
  74. package/src/build-components/useNode.ts +24 -25
  75. package/src/components/AttributesEditorPanel.tsx +4 -5
  76. package/src/components/Builder.tsx +1 -2
  77. package/src/components/BuilderProvider.tsx +43 -6
  78. package/src/components/JsonTextEditor.tsx +2 -2
  79. package/src/components/LoadingComponent.tsx +1 -1
  80. package/src/components/RenderErrorBoundary.tsx +1 -3
  81. package/src/index.ts +3 -0
  82. package/src/migrations/migrations/1.1.2_extract_component_attributes_from_style.ts +3 -3
  83. package/src/modals/BenefitPresetsModal.tsx +1 -1
  84. package/src/modals/ProductPresetsModal.tsx +1 -1
  85. package/src/pages/DebugJsonPage.tsx +7 -4
  86. package/src/pages/ProjectDebug.tsx +1 -1
  87. package/src/pages/ProjectPage.tsx +31 -32
  88. package/src/pages/ProjectValidationPage.tsx +2 -2
  89. package/src/store.ts +13 -0
  90. package/src/styles/layout/_builder.scss +6 -0
  91. package/src/utils/__special_exceptions.ts +5 -5
  92. package/src/utils/analyseNode.ts +2 -2
  93. package/src/utils/analyseNodeByPatterns.ts +10 -9
  94. package/src/utils/analyseNodeStructural.ts +1 -1
  95. package/src/utils/attributeStyle.ts +104 -0
  96. package/src/utils/extractImageStyle.ts +17 -13
  97. package/src/utils/extractTextStyle/extractTextStyle.ts +7 -7
  98. package/src/utils/extractTextStyle/extractTextStyleNative.ts +10 -10
  99. package/src/utils/extractViewStyle/extractViewStyle.ts +8 -11
  100. package/src/utils/extractViewStyle/extractViewStyleNative.ts +19 -19
  101. package/src/utils/loadFontFamily.ts +14 -19
  102. package/src/utils/logRenderStore.ts +5 -4
  103. package/src/utils/nodeTree.ts +1 -1
  104. package/src/utils/patterns.ts +26 -31
  105. package/src/utils/repairNodeKeys.ts +5 -7
  106. package/src/utils/wrapNodeInMain.ts +3 -3
@@ -82,9 +82,34 @@
82
82
  "attributes": {
83
83
  "useSafeAreaView": true,
84
84
  "description": "Ekranın ana kapsayıcısı. (#1)",
85
- "title": "Main 1"
85
+ "title": "Main 1",
86
+ "styles": {
87
+ "paddingBottom": 16
88
+ }
86
89
  },
87
90
  "children": [
91
+ {
92
+ "type": "StatusBarColor",
93
+ "attributes": {
94
+ "title": "Status Bar Color",
95
+ "description": "Status bar background color.",
96
+ "styles": {
97
+ "backgroundColor": "THEME_COLORS.BACKGROUND"
98
+ }
99
+ },
100
+ "children": null
101
+ },
102
+ {
103
+ "type": "NavigationBarColor",
104
+ "attributes": {
105
+ "title": "Navigation Bar Color",
106
+ "description": "Navigation bar background color.",
107
+ "styles": {
108
+ "backgroundColor": "THEME_COLORS.BACKGROUND"
109
+ }
110
+ },
111
+ "children": null
112
+ },
88
113
  {
89
114
  "type": "OnboardProvider",
90
115
  "children": [
@@ -101,7 +126,7 @@
101
126
  "description": "Sayfa başlığı. (#1)",
102
127
  "title": "OnboardTitle 1",
103
128
  "styles": {
104
- "color": "#FDFDFD",
129
+ "color": "THEME_COLORS.ONBOARD_TITLE",
105
130
  "textAlign": "center",
106
131
  "marginTop": 40
107
132
  }
@@ -124,7 +149,7 @@
124
149
  "description": "Sayfa alt başlığı. (#1)",
125
150
  "title": "OnboardSubtitle 1",
126
151
  "styles": {
127
- "color": "#C7C7C7",
152
+ "color": "THEME_COLORS.ONBOARD_SUBTITLE",
128
153
  "fontSize": 16,
129
154
  "textAlign": "center"
130
155
  }
@@ -147,7 +172,7 @@
147
172
  "description": "Sayfa başlığı. (#2)",
148
173
  "title": "OnboardTitle 2",
149
174
  "styles": {
150
- "color": "#FDFDFD",
175
+ "color": "THEME_COLORS.ONBOARD_TITLE",
151
176
  "textAlign": "center",
152
177
  "marginTop": 40
153
178
  }
@@ -160,7 +185,7 @@
160
185
  "description": "Sayfa alt başlığı. (#2)",
161
186
  "title": "OnboardSubtitle 2",
162
187
  "styles": {
163
- "color": "#C7C7C7",
188
+ "color": "THEME_COLORS.ONBOARD_SUBTITLE",
164
189
  "fontSize": 16,
165
190
  "textAlign": "center"
166
191
  }
@@ -183,7 +208,7 @@
183
208
  "description": "Sayfa başlığı. (#3)",
184
209
  "title": "OnboardTitle 3",
185
210
  "styles": {
186
- "color": "#FDFDFD",
211
+ "color": "THEME_COLORS.ONBOARD_TITLE",
187
212
  "textAlign": "center",
188
213
  "marginTop": 40
189
214
  }
@@ -196,7 +221,7 @@
196
221
  "description": "Sayfa alt başlığı. (#3)",
197
222
  "title": "OnboardSubtitle 3",
198
223
  "styles": {
199
- "color": "#C7C7C7",
224
+ "color": "THEME_COLORS.ONBOARD_SUBTITLE",
200
225
  "fontSize": 16,
201
226
  "textAlign": "center"
202
227
  }
@@ -219,7 +244,7 @@
219
244
  "description": "Sayfa başlığı. (#4)",
220
245
  "title": "OnboardTitle 4",
221
246
  "styles": {
222
- "color": "#FDFDFD",
247
+ "color": "THEME_COLORS.ONBOARD_TITLE",
223
248
  "textAlign": "center",
224
249
  "marginTop": 40
225
250
  }
@@ -232,7 +257,7 @@
232
257
  "description": "Sayfa alt başlığı. (#4)",
233
258
  "title": "OnboardSubtitle 4",
234
259
  "styles": {
235
- "color": "#C7C7C7",
260
+ "color": "THEME_COLORS.ONBOARD_SUBTITLE",
236
261
  "fontSize": 16,
237
262
  "textAlign": "center"
238
263
  }
@@ -248,7 +273,10 @@
248
273
  ],
249
274
  "attributes": {
250
275
  "description": "Onboarding ana yapısı. (#1)",
251
- "title": "Onboard 1"
276
+ "title": "Onboard 1",
277
+ "styles": {
278
+ "flex": 1
279
+ }
252
280
  }
253
281
  },
254
282
  {
@@ -257,10 +285,22 @@
257
285
  "dotType": "expanding_dot",
258
286
  "dot_thickness": 20,
259
287
  "inactive_dot_opacity": 0.3,
260
- "inactive_dot_color": "#E4E5E7",
261
- "active_dot_color": "#007AFF",
288
+ "inactive_dot_color": "STATIC_COLORS.ONBOARD_DOT_INACTIVE",
289
+ "active_dot_color": "STATIC_COLORS.ONBOARD_DOT_ACTIVE",
290
+ "styles": {
291
+ "paddingVertical": 12
292
+ }
293
+ }
294
+ },
295
+ {
296
+ "type": "Separator",
297
+ "attributes": {
298
+ "title": "Separator",
299
+ "description": "Horizontal separator line",
262
300
  "styles": {
263
- "flex": 2
301
+ "width": "100%",
302
+ "height": 2,
303
+ "backgroundColor": "STATIC_COLORS.SEPARATOR_COLOR"
264
304
  }
265
305
  }
266
306
  },
@@ -273,8 +313,9 @@
273
313
  "description": "Sayfa buton grubu. (#1)",
274
314
  "title": "OnboardButtons 1",
275
315
  "styles": {
276
- "flex": 2,
277
- "justifyContent": "flex-end"
316
+ "height": 40,
317
+ "marginVertical": 12,
318
+ "flexShrink": 0
278
319
  }
279
320
  },
280
321
  "children": [
@@ -282,8 +323,8 @@
282
323
  "type": "OnboardButton",
283
324
  "attributes": {
284
325
  "labelKey": "onboard.skip.one-page",
285
- "button_text_color": "#A9AAAC",
286
- "button_background_color": "#ffffff00",
326
+ "button_text_color": "THEME_COLORS.BUTTON_SECONDARY_TEXT",
327
+ "button_background_color": "STATIC_COLORS.TRANSPARENT",
287
328
  "events": [
288
329
  {
289
330
  "type": "Navigate",
@@ -300,8 +341,8 @@
300
341
  "type": "OnboardButton",
301
342
  "attributes": {
302
343
  "labelKey": "onboard.next.one-page",
303
- "button_text_color": "#FFFFFF",
304
- "button_background_color": "#0066FF",
344
+ "button_text_color": "STATIC_COLORS.BUTTON_PRIMARY_TEXT",
345
+ "button_background_color": "STATIC_COLORS.BUTTON_PRIMARY_BACKGROUND",
305
346
  "events": [
306
347
  {
307
348
  "type": "Navigate",
@@ -325,8 +366,9 @@
325
366
  "description": "Sayfa buton grubu. (#2)",
326
367
  "title": "OnboardButtons 2",
327
368
  "styles": {
328
- "flex": 2,
329
- "justifyContent": "flex-end"
369
+ "height": 40,
370
+ "marginVertical": 12,
371
+ "flexShrink": 0
330
372
  }
331
373
  },
332
374
  "children": [
@@ -334,8 +376,8 @@
334
376
  "type": "OnboardButton",
335
377
  "attributes": {
336
378
  "labelKey": "onboard.skip.two-page",
337
- "button_text_color": "#A9AAAC",
338
- "button_background_color": "#ffffff00",
379
+ "button_text_color": "THEME_COLORS.BUTTON_SECONDARY_TEXT",
380
+ "button_background_color": "STATIC_COLORS.TRANSPARENT",
339
381
  "events": [
340
382
  {
341
383
  "type": "Permission",
@@ -356,8 +398,8 @@
356
398
  "type": "OnboardButton",
357
399
  "attributes": {
358
400
  "labelKey": "onboard.next.two-page",
359
- "button_text_color": "#FFFFFF",
360
- "button_background_color": "#0066FF",
401
+ "button_text_color": "STATIC_COLORS.BUTTON_PRIMARY_TEXT",
402
+ "button_background_color": "STATIC_COLORS.BUTTON_PRIMARY_BACKGROUND",
361
403
  "events": [
362
404
  {
363
405
  "type": "Permission",
@@ -385,8 +427,9 @@
385
427
  "description": "Sayfa buton grubu. (#3)",
386
428
  "title": "OnboardButtons 3",
387
429
  "styles": {
388
- "flex": 2,
389
- "justifyContent": "flex-end"
430
+ "height": 40,
431
+ "marginVertical": 12,
432
+ "flexShrink": 0
390
433
  }
391
434
  },
392
435
  "children": [
@@ -394,8 +437,8 @@
394
437
  "type": "OnboardButton",
395
438
  "attributes": {
396
439
  "labelKey": "onboard.skip.three-page",
397
- "button_text_color": "#A9AAAC",
398
- "button_background_color": "#ffffff00",
440
+ "button_text_color": "THEME_COLORS.BUTTON_SECONDARY_TEXT",
441
+ "button_background_color": "STATIC_COLORS.TRANSPARENT",
399
442
  "events": [
400
443
  {
401
444
  "type": "Navigate",
@@ -412,8 +455,8 @@
412
455
  "type": "OnboardButton",
413
456
  "attributes": {
414
457
  "labelKey": "onboard.next.three-page",
415
- "button_text_color": "#FFFFFF",
416
- "button_background_color": "#0066FF",
458
+ "button_text_color": "STATIC_COLORS.BUTTON_PRIMARY_TEXT",
459
+ "button_background_color": "STATIC_COLORS.BUTTON_PRIMARY_BACKGROUND",
417
460
  "events": [
418
461
  {
419
462
  "type": "Permission",
@@ -441,8 +484,9 @@
441
484
  "description": "Sayfa buton grubu. (#4)",
442
485
  "title": "OnboardButtons 4",
443
486
  "styles": {
444
- "flex": 2,
445
- "justifyContent": "flex-end"
487
+ "height": 40,
488
+ "marginVertical": 12,
489
+ "flexShrink": 0
446
490
  }
447
491
  },
448
492
  "children": [
@@ -450,8 +494,8 @@
450
494
  "type": "OnboardButton",
451
495
  "attributes": {
452
496
  "labelKey": "onboard.allow.four-page",
453
- "button_text_color": "#FFFFFF",
454
- "button_background_color": "#0066FF",
497
+ "button_text_color": "STATIC_COLORS.BUTTON_PRIMARY_TEXT",
498
+ "button_background_color": "STATIC_COLORS.BUTTON_PRIMARY_BACKGROUND",
455
499
  "events": [
456
500
  {
457
501
  "type": "Permission",
@@ -475,7 +519,8 @@
475
519
  "title": "Onboard Footer Wrap",
476
520
  "description": "Wrapper for OnboardFooter component",
477
521
  "styles": {
478
- "flex": 2
522
+ "marginHorizontal": 25,
523
+ "flexShrink": 0
479
524
  }
480
525
  },
481
526
  "children": [
@@ -484,14 +529,14 @@
484
529
  "attributes": {
485
530
  "textLocalizationKey": "view.onboarding.footer.description",
486
531
  "linkedWordFirstLocalizationKey": "view.onboarding.btnPrivacy",
487
- "linkedWordFirstColor": "#81838F",
532
+ "linkedWordFirstColor": "STATIC_COLORS.LINK_COLOR",
488
533
  "linkedWordFirstPage": "privacy",
489
534
  "linkedWordSecondLocalizationKey": "view.onboarding.btnTerms",
490
- "linkedWordSecondColor": "#81838F",
535
+ "linkedWordSecondColor": "STATIC_COLORS.LINK_COLOR",
491
536
  "linkedWordSecondPage": "terms",
492
537
  "styles": {
493
538
  "gap": 8,
494
- "color": "#81838F"
539
+ "color": "THEME_COLORS.FOOTER_TEXT"
495
540
  }
496
541
  }
497
542
  }