@developer_tribe/react-builder 1.2.38 → 1.2.40

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 (134) hide show
  1. package/dist/build-components/BIcon/BIconProps.generated.d.ts +1 -1
  2. package/dist/build-components/CountDown/CountDownProps.generated.d.ts +1 -1
  3. package/dist/build-components/Image/ImageProps.generated.d.ts +2 -0
  4. package/dist/build-components/NavigationBarColor/NavigationBarColorProps.generated.d.ts +1 -40
  5. package/dist/build-components/OnboardFooter/OnboardFooterProps.generated.d.ts +1 -1
  6. package/dist/build-components/OnboardImage/OnboardImageProps.generated.d.ts +3 -1
  7. package/dist/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.d.ts +1 -1
  8. package/dist/build-components/OnboardTitle/OnboardTitleProps.generated.d.ts +1 -1
  9. package/dist/build-components/PaywallBackground/PaywallBackgroundProps.generated.d.ts +1 -1
  10. package/dist/build-components/PaywallCloseButton/PaywallCloseButtonProps.generated.d.ts +1 -1
  11. package/dist/build-components/PaywallSubscribeButton/PaywallSubscribeButtonProps.generated.d.ts +1 -1
  12. package/dist/build-components/PriceTag/PriceTagProps.generated.d.ts +1 -1
  13. package/dist/build-components/Pricing/PricingProps.generated.d.ts +1 -1
  14. package/dist/build-components/Promo/PromoProps.generated.d.ts +1 -1
  15. package/dist/build-components/StatusBarColor/StatusBarColorProps.generated.d.ts +1 -1
  16. package/dist/build-components/patterns.generated.d.ts +51 -356
  17. package/dist/components/BuilderProvider.d.ts +1 -0
  18. package/dist/components/DeviceButton.d.ts +4 -1
  19. package/dist/index.cjs.js +1 -1
  20. package/dist/index.cjs.js.map +1 -1
  21. package/dist/index.esm.js +1 -1
  22. package/dist/index.esm.js.map +1 -1
  23. package/dist/index.web.cjs.js +4 -4
  24. package/dist/index.web.cjs.js.map +1 -1
  25. package/dist/index.web.esm.js +4 -4
  26. package/dist/index.web.esm.js.map +1 -1
  27. package/dist/mockOS/context/MockOSContext.d.ts +3 -1
  28. package/dist/size-matters/index.d.ts +1 -1
  29. package/dist/store.d.ts +6 -0
  30. package/dist/styles.css +1 -1
  31. package/dist/types/Device.d.ts +5 -0
  32. package/dist/utils/extractTextStyle/extractTextStyle.d.ts +1 -0
  33. package/dist/utils/extractViewStyle/extractViewStyle.d.ts +1 -0
  34. package/package.json +1 -1
  35. package/scripts/prebuild/assets/prompt_scheme.md +7 -0
  36. package/src/DeviceMockFrame.tsx +8 -0
  37. package/src/RenderPage.tsx +3 -0
  38. package/src/assets/devices.json +747 -183
  39. package/src/assets/meta.json +1 -1
  40. package/src/assets/prompt-scheme-onboard.generated.ts +1 -1
  41. package/src/assets/prompt-scheme-paywall.generated.ts +1 -1
  42. package/src/assets/samples/carousel-sample.json +30 -26
  43. package/src/assets/samples/paywall-1.json +30 -30
  44. package/src/assets/samples/paywall-2.json +26 -26
  45. package/src/assets/samples/paywall-app-delete-offer.json +27 -27
  46. package/src/assets/samples/paywall-app-open-offer.json +27 -27
  47. package/src/assets/samples/paywall-back-offer.json +27 -27
  48. package/src/assets/samples/paywall-notification-offer.json +27 -27
  49. package/src/assets/samples/simple-1.json +4 -4
  50. package/src/assets/samples/simple-2.json +25 -25
  51. package/src/assets/samples/unmigrated-builder-1.1.1.json +7 -7
  52. package/src/assets/samples/unmigrated-builder1.json +4 -4
  53. package/src/assets/samples/unvalidated-builder1.json +4 -4
  54. package/src/assets/samples/unvalidated-crash1.json +2 -2
  55. package/src/assets/samples/unvalidated-crashcomponent1.json +2 -2
  56. package/src/assets/samples/vpn-onboard-1.json +34 -30
  57. package/src/assets/samples/vpn-onboard-2.json +34 -30
  58. package/src/assets/samples/vpn-onboard-3.json +28 -27
  59. package/src/assets/samples/vpn-onboard-4.json +28 -27
  60. package/src/assets/samples/vpn-onboard-5.json +46 -40
  61. package/src/assets/samples/vpn-onboard-6.json +34 -30
  62. package/src/assets/samples/vpn-onboard-7.json +33 -29
  63. package/src/attribute-analyser/style/web/useExtractImageStyle.ts +8 -3
  64. package/src/attribute-analyser/style/web/useExtractViewStyle.ts +8 -3
  65. package/src/build-components/BIcon/BIconProps.generated.ts +1 -1
  66. package/src/build-components/BIcon/pattern.json +1 -2
  67. package/src/build-components/BackgroundImage/pattern.json +1 -2
  68. package/src/build-components/Button/pattern.json +1 -2
  69. package/src/build-components/Carousel/pattern.json +1 -2
  70. package/src/build-components/CarouselButtons/pattern.json +1 -2
  71. package/src/build-components/CarouselDots/CarouselDots.tsx +8 -3
  72. package/src/build-components/CarouselDots/pattern.json +1 -2
  73. package/src/build-components/CarouselItem/pattern.json +1 -4
  74. package/src/build-components/CarouselProvider/pattern.json +0 -3
  75. package/src/build-components/CountDown/CountDownProps.generated.ts +1 -1
  76. package/src/build-components/CountDown/pattern.json +1 -2
  77. package/src/build-components/Image/ImageProps.generated.ts +6 -0
  78. package/src/build-components/Image/pattern.json +10 -2
  79. package/src/build-components/Main/Main.tsx +3 -1
  80. package/src/build-components/Main/pattern.json +1 -2
  81. package/src/build-components/NavigationBarColor/NavigationBarColor.tsx +15 -1
  82. package/src/build-components/NavigationBarColor/NavigationBarColorProps.generated.ts +1 -52
  83. package/src/build-components/NavigationBarColor/pattern.json +10 -2
  84. package/src/build-components/Onboard/pattern.json +1 -4
  85. package/src/build-components/OnboardButtons/pattern.json +1 -2
  86. package/src/build-components/OnboardDot/OnboardDot.tsx +3 -2
  87. package/src/build-components/OnboardDot/pattern.json +1 -2
  88. package/src/build-components/OnboardFooter/OnboardFooterProps.generated.ts +1 -1
  89. package/src/build-components/OnboardFooter/pattern.json +1 -2
  90. package/src/build-components/OnboardImage/OnboardImageProps.generated.ts +7 -1
  91. package/src/build-components/OnboardImage/pattern.json +1 -2
  92. package/src/build-components/OnboardItem/pattern.json +1 -2
  93. package/src/build-components/OnboardProvider/pattern.json +1 -2
  94. package/src/build-components/OnboardSubtitle/OnboardSubtitleProps.generated.ts +1 -1
  95. package/src/build-components/OnboardSubtitle/pattern.json +1 -4
  96. package/src/build-components/OnboardTitle/OnboardTitleProps.generated.ts +1 -1
  97. package/src/build-components/OnboardTitle/pattern.json +1 -4
  98. package/src/build-components/PaywallBackground/PaywallBackgroundProps.generated.ts +1 -1
  99. package/src/build-components/PaywallBackground/pattern.json +0 -3
  100. package/src/build-components/PaywallCloseButton/PaywallCloseButtonProps.generated.ts +1 -1
  101. package/src/build-components/PaywallCloseButton/pattern.json +2 -4
  102. package/src/build-components/PaywallOptions/pattern.json +1 -4
  103. package/src/build-components/PaywallProvider/pattern.json +1 -2
  104. package/src/build-components/PaywallSubscribeButton/PaywallSubscribeButtonProps.generated.ts +1 -1
  105. package/src/build-components/PaywallSubscribeButton/pattern.json +1 -4
  106. package/src/build-components/PriceTag/PriceTagProps.generated.ts +1 -1
  107. package/src/build-components/PriceTag/pattern.json +1 -2
  108. package/src/build-components/Pricing/PricingProps.generated.ts +1 -1
  109. package/src/build-components/Pricing/pattern.json +1 -4
  110. package/src/build-components/Promo/PromoProps.generated.ts +1 -1
  111. package/src/build-components/Promo/pattern.json +1 -4
  112. package/src/build-components/RadioButton/pattern.json +1 -2
  113. package/src/build-components/StatusBarColor/StatusBarColor.tsx +15 -1
  114. package/src/build-components/StatusBarColor/StatusBarColorProps.generated.ts +1 -1
  115. package/src/build-components/StatusBarColor/pattern.json +10 -1
  116. package/src/build-components/Text/pattern.json +1 -2
  117. package/src/build-components/patterns.generated.ts +57 -376
  118. package/src/components/BuilderProvider.tsx +1 -0
  119. package/src/components/DeviceButton.tsx +35 -0
  120. package/src/components/EditorHeader.tsx +16 -1
  121. package/src/hooks/useSafeAreaViewStyle.ts +24 -4
  122. package/src/mockOS/context/MockOSContext.tsx +41 -13
  123. package/src/modals/DeviceSelectorModal.tsx +94 -10
  124. package/src/product-base/extractAndroidParams.ts +38 -8
  125. package/src/size-matters/index.ts +15 -9
  126. package/src/store.ts +27 -0
  127. package/src/styles/modals/_product-edit-modal.scss +2 -2
  128. package/src/types/Device.ts +5 -0
  129. package/src/utils/analyseNodeByPatterns.ts +6 -2
  130. package/src/utils/extractTextStyle/extractTextStyle.ts +3 -1
  131. package/src/utils/extractTextStyle/extractTextStyleNative.ts +1 -1
  132. package/src/utils/extractViewStyle/extractViewStyle.ts +19 -5
  133. package/src/utils/extractViewStyle/extractViewStyleNative.ts +5 -1
  134. package/src/utils/replaceLocalizationParams.ts +5 -7
@@ -50,8 +50,8 @@ export declare const patterns: readonly [{
50
50
  readonly right: "size";
51
51
  readonly zIndex: "number";
52
52
  };
53
- readonly testID: "string";
54
53
  readonly scrollable: "boolean";
54
+ readonly testID: "string";
55
55
  readonly iconType: "iconType";
56
56
  readonly size: "number";
57
57
  readonly strokeWidth: "number";
@@ -3158,8 +3158,8 @@ export declare const patterns: readonly [{
3158
3158
  readonly right: "size";
3159
3159
  readonly zIndex: "number";
3160
3160
  };
3161
- readonly testID: "string";
3162
3161
  readonly scrollable: "boolean";
3162
+ readonly testID: "string";
3163
3163
  readonly count: "number";
3164
3164
  };
3165
3165
  };
@@ -3591,6 +3591,7 @@ export declare const patterns: readonly [{
3591
3591
  };
3592
3592
  readonly testID: "string";
3593
3593
  readonly src: "string";
3594
+ readonly fetchStrategy: readonly ["highIfItsAppLaunch", "normal", "lazy", "none"];
3594
3595
  };
3595
3596
  };
3596
3597
  readonly meta: {
@@ -3904,6 +3905,13 @@ export declare const patterns: readonly [{
3904
3905
  readonly specialCategory: null;
3905
3906
  readonly sort: 1;
3906
3907
  };
3908
+ readonly fetchStrategy: {
3909
+ readonly label: "Fetch Strategy";
3910
+ readonly description: "highIfItsAppLaunch ilk başta yükleniyor eğer app_launch placeholder'i ile gelirse\nnormal sonra bütün hepsi toplanıp prefetch ediniyor\nlazy builder açılır açılmaz\nnone ise os'a bırakıldı";
3911
+ readonly category: "other";
3912
+ readonly specialCategory: null;
3913
+ readonly sort: 2;
3914
+ };
3907
3915
  };
3908
3916
  readonly styles: {
3909
3917
  readonly resizeMode: {
@@ -3925,6 +3933,7 @@ export declare const patterns: readonly [{
3925
3933
  readonly flexShrink: 0;
3926
3934
  readonly resizeMode: "contain";
3927
3935
  };
3936
+ readonly fetchStrategy: "normal";
3928
3937
  };
3929
3938
  readonly types: {};
3930
3939
  }, {
@@ -4315,351 +4324,16 @@ export declare const patterns: readonly [{
4315
4324
  readonly description: "description";
4316
4325
  readonly children: "never";
4317
4326
  readonly attributes: {
4318
- readonly scrollable: "boolean";
4319
4327
  readonly styles: {
4320
- readonly flexDirection: readonly ["row", "column"];
4321
- readonly flexWrap: readonly ["nowrap", "wrap", "wrap-reverse"];
4322
- readonly alignItems: readonly ["flex-start", "center", "flex-end", "stretch", "baseline"];
4323
- readonly justifyContent: readonly ["flex-start", "center", "flex-end", "space-between", "space-around", "space-evenly"];
4324
- readonly gap: "size";
4325
- readonly padding: "size";
4326
- readonly paddingHorizontal: "size";
4327
- readonly paddingVertical: "size";
4328
- readonly paddingTop: "size";
4329
- readonly paddingBottom: "size";
4330
- readonly paddingLeft: "size";
4331
- readonly paddingRight: "size";
4332
- readonly margin: "size";
4333
- readonly marginHorizontal: "size";
4334
- readonly marginVertical: "size";
4335
- readonly marginTop: "size";
4336
- readonly marginBottom: "size";
4337
- readonly marginLeft: "size";
4338
- readonly marginRight: "size";
4339
4328
  readonly backgroundColor: "color";
4340
- readonly borderRadius: "size";
4341
- readonly width: "size";
4342
- readonly minWidth: "size";
4343
- readonly maxWidth: "size";
4344
- readonly height: "size";
4345
- readonly minHeight: "size";
4346
- readonly maxHeight: "size";
4347
- readonly flex: "number";
4348
- readonly position: readonly ["relative", "absolute"];
4349
- readonly top: "size";
4350
- readonly bottom: "size";
4351
- readonly left: "size";
4352
- readonly right: "size";
4353
- readonly zIndex: "number";
4354
4329
  };
4355
- readonly testID: "string";
4330
+ readonly translucent: "boolean";
4356
4331
  };
4357
4332
  };
4358
4333
  readonly meta: {
4359
4334
  readonly desiredParent: readonly ["all"];
4360
4335
  readonly label: "Navigation Bar Color";
4361
4336
  readonly description: "Sets the OS navigation bar background color.";
4362
- readonly specialCategories: {
4363
- readonly padding: {
4364
- readonly label: "Padding";
4365
- readonly description: "Uniform padding on all sides.";
4366
- readonly category: "container";
4367
- readonly sort: 1;
4368
- };
4369
- readonly margin: {
4370
- readonly label: "Margin";
4371
- readonly description: "Uniform margin on all sides.";
4372
- readonly category: "container";
4373
- readonly sort: 2;
4374
- };
4375
- readonly size: {
4376
- readonly label: "Size";
4377
- readonly description: "Fixed dimensions.";
4378
- readonly category: "container";
4379
- readonly sort: 3;
4380
- };
4381
- readonly offset: {
4382
- readonly label: "Offset";
4383
- readonly description: "Absolute positioning offsets.";
4384
- readonly category: "container";
4385
- readonly sort: 4;
4386
- };
4387
- };
4388
- readonly attributes: {
4389
- readonly scrollable: {
4390
- readonly label: "Scrollable";
4391
- readonly description: "Turns scroll interaction on.";
4392
- readonly category: "container";
4393
- readonly specialCategory: null;
4394
- readonly sort: -1;
4395
- };
4396
- readonly styles: {
4397
- readonly backgroundColor: {
4398
- readonly label: "Background Color";
4399
- readonly description: "Background fill color.";
4400
- readonly category: "style";
4401
- readonly specialCategory: null;
4402
- readonly sort: 20;
4403
- };
4404
- readonly borderRadius: {
4405
- readonly label: "Border Radius";
4406
- readonly description: "Corner rounding amount.";
4407
- readonly category: "style";
4408
- readonly specialCategory: null;
4409
- readonly sort: 21;
4410
- readonly preferredScale: "s";
4411
- };
4412
- readonly flexDirection: {
4413
- readonly label: "Flex Direction";
4414
- readonly description: "Sets row or column layout.";
4415
- readonly category: "container";
4416
- readonly specialCategory: null;
4417
- readonly sort: 4;
4418
- };
4419
- readonly flexWrap: {
4420
- readonly label: "Flex Wrap";
4421
- readonly description: "Controls whether flex items wrap to multiple lines.";
4422
- readonly category: "container";
4423
- readonly specialCategory: null;
4424
- readonly sort: 4.5;
4425
- };
4426
- readonly alignItems: {
4427
- readonly label: "Align Items";
4428
- readonly description: "Controls cross-axis alignment.";
4429
- readonly category: "container";
4430
- readonly specialCategory: null;
4431
- readonly sort: 3;
4432
- };
4433
- readonly justifyContent: {
4434
- readonly label: "Justify Content";
4435
- readonly description: "Controls main-axis alignment.";
4436
- readonly category: "container";
4437
- readonly specialCategory: null;
4438
- readonly sort: 5;
4439
- };
4440
- readonly gap: {
4441
- readonly label: "Gap";
4442
- readonly description: "Space between children.";
4443
- readonly category: "container";
4444
- readonly specialCategory: null;
4445
- readonly sort: 10;
4446
- readonly preferredScale: "s";
4447
- };
4448
- readonly padding: {
4449
- readonly label: "Padding";
4450
- readonly description: "Uniform padding on all sides.";
4451
- readonly category: "container";
4452
- readonly specialCategory: "padding";
4453
- readonly sort: 6;
4454
- readonly preferredScale: "s";
4455
- };
4456
- readonly paddingHorizontal: {
4457
- readonly label: "Padding Horizontal";
4458
- readonly description: "Left and right padding.";
4459
- readonly category: "container";
4460
- readonly specialCategory: "padding";
4461
- readonly sort: 7;
4462
- readonly preferredScale: "s";
4463
- };
4464
- readonly paddingVertical: {
4465
- readonly label: "Padding Vertical";
4466
- readonly description: "Top and bottom padding.";
4467
- readonly category: "container";
4468
- readonly specialCategory: "padding";
4469
- readonly sort: 8;
4470
- readonly preferredScale: "vs";
4471
- };
4472
- readonly paddingTop: {
4473
- readonly label: "Padding Top";
4474
- readonly description: "Top padding only.";
4475
- readonly category: "container";
4476
- readonly specialCategory: "padding";
4477
- readonly sort: 9;
4478
- readonly preferredScale: "vs";
4479
- };
4480
- readonly paddingBottom: {
4481
- readonly label: "Padding Bottom";
4482
- readonly description: "Bottom padding only.";
4483
- readonly category: "container";
4484
- readonly specialCategory: "padding";
4485
- readonly sort: 10;
4486
- readonly preferredScale: "vs";
4487
- };
4488
- readonly paddingLeft: {
4489
- readonly label: "Padding Left";
4490
- readonly description: "Left padding only.";
4491
- readonly category: "container";
4492
- readonly specialCategory: "padding";
4493
- readonly sort: 11;
4494
- readonly preferredScale: "s";
4495
- };
4496
- readonly paddingRight: {
4497
- readonly label: "Padding Right";
4498
- readonly description: "Right padding only.";
4499
- readonly category: "container";
4500
- readonly specialCategory: "padding";
4501
- readonly sort: 12;
4502
- readonly preferredScale: "s";
4503
- };
4504
- readonly margin: {
4505
- readonly label: "Margin";
4506
- readonly description: "Uniform margin on all sides.";
4507
- readonly category: "container";
4508
- readonly specialCategory: "margin";
4509
- readonly sort: 13;
4510
- readonly preferredScale: "s";
4511
- };
4512
- readonly marginHorizontal: {
4513
- readonly label: "Margin Horizontal";
4514
- readonly description: "Left and right margin.";
4515
- readonly category: "container";
4516
- readonly specialCategory: "margin";
4517
- readonly sort: 14;
4518
- readonly preferredScale: "s";
4519
- };
4520
- readonly marginVertical: {
4521
- readonly label: "Margin Vertical";
4522
- readonly description: "Top and bottom margin.";
4523
- readonly category: "container";
4524
- readonly specialCategory: "margin";
4525
- readonly sort: 15;
4526
- readonly preferredScale: "vs";
4527
- };
4528
- readonly marginTop: {
4529
- readonly label: "Margin Top";
4530
- readonly description: "Top margin only.";
4531
- readonly category: "container";
4532
- readonly specialCategory: "margin";
4533
- readonly sort: 16;
4534
- readonly preferredScale: "vs";
4535
- };
4536
- readonly marginBottom: {
4537
- readonly label: "Margin Bottom";
4538
- readonly description: "Bottom margin only.";
4539
- readonly category: "container";
4540
- readonly specialCategory: "margin";
4541
- readonly sort: 17;
4542
- readonly preferredScale: "vs";
4543
- };
4544
- readonly marginLeft: {
4545
- readonly label: "Margin Left";
4546
- readonly description: "Left margin only.";
4547
- readonly category: "container";
4548
- readonly specialCategory: "margin";
4549
- readonly sort: 18;
4550
- readonly preferredScale: "s";
4551
- };
4552
- readonly marginRight: {
4553
- readonly label: "Margin Right";
4554
- readonly description: "Right margin only.";
4555
- readonly category: "container";
4556
- readonly specialCategory: "margin";
4557
- readonly sort: 19;
4558
- readonly preferredScale: "s";
4559
- };
4560
- readonly width: {
4561
- readonly label: "Width";
4562
- readonly description: "Fixed width value.";
4563
- readonly category: "container";
4564
- readonly specialCategory: "size";
4565
- readonly sort: 0;
4566
- readonly preferredScale: "s";
4567
- };
4568
- readonly minWidth: {
4569
- readonly label: "Min Width";
4570
- readonly description: "Minimum width constraint.";
4571
- readonly category: "container";
4572
- readonly specialCategory: "size";
4573
- readonly sort: 1;
4574
- readonly preferredScale: "s";
4575
- };
4576
- readonly maxWidth: {
4577
- readonly label: "Max Width";
4578
- readonly description: "Maximum width constraint.";
4579
- readonly category: "container";
4580
- readonly specialCategory: "size";
4581
- readonly sort: 2;
4582
- readonly preferredScale: "s";
4583
- };
4584
- readonly height: {
4585
- readonly label: "Height";
4586
- readonly description: "Fixed height value.";
4587
- readonly category: "container";
4588
- readonly specialCategory: "size";
4589
- readonly sort: 3;
4590
- readonly preferredScale: "vs";
4591
- };
4592
- readonly minHeight: {
4593
- readonly label: "Min Height";
4594
- readonly description: "Minimum height constraint.";
4595
- readonly category: "container";
4596
- readonly specialCategory: "size";
4597
- readonly sort: 4;
4598
- readonly preferredScale: "vs";
4599
- };
4600
- readonly maxHeight: {
4601
- readonly label: "Max Height";
4602
- readonly description: "Maximum height constraint.";
4603
- readonly category: "container";
4604
- readonly specialCategory: "size";
4605
- readonly sort: 5;
4606
- readonly preferredScale: "vs";
4607
- };
4608
- readonly flex: {
4609
- readonly label: "Flex";
4610
- readonly description: "Flex grow factor (e.g. 1 fills available space).";
4611
- readonly category: "container";
4612
- readonly specialCategory: "size";
4613
- readonly sort: 6;
4614
- };
4615
- readonly position: {
4616
- readonly label: "Position";
4617
- readonly description: "Sets layout positioning mode.";
4618
- readonly category: "container";
4619
- readonly specialCategory: null;
4620
- readonly sort: 3;
4621
- };
4622
- readonly top: {
4623
- readonly label: "Top";
4624
- readonly description: "Offset from the top edge.";
4625
- readonly category: "container";
4626
- readonly specialCategory: "offset";
4627
- readonly sort: 22;
4628
- readonly preferredScale: "vs";
4629
- };
4630
- readonly bottom: {
4631
- readonly label: "Bottom";
4632
- readonly description: "Offset from the bottom edge.";
4633
- readonly category: "container";
4634
- readonly specialCategory: "offset";
4635
- readonly sort: 23;
4636
- readonly preferredScale: "vs";
4637
- };
4638
- readonly left: {
4639
- readonly label: "Left";
4640
- readonly description: "Offset from the left edge.";
4641
- readonly category: "container";
4642
- readonly specialCategory: "offset";
4643
- readonly sort: 24;
4644
- readonly preferredScale: "s";
4645
- };
4646
- readonly right: {
4647
- readonly label: "Right";
4648
- readonly description: "Offset from the right edge.";
4649
- readonly category: "container";
4650
- readonly specialCategory: "offset";
4651
- readonly sort: 25;
4652
- readonly preferredScale: "s";
4653
- };
4654
- readonly zIndex: {
4655
- readonly label: "Z-Index";
4656
- readonly description: "Controls stacking order.";
4657
- readonly category: "container";
4658
- readonly specialCategory: null;
4659
- readonly sort: 26;
4660
- };
4661
- };
4662
- };
4663
4337
  readonly styles: {
4664
4338
  readonly backgroundColor: {
4665
4339
  readonly label: "Background Color";
@@ -4669,19 +4343,21 @@ export declare const patterns: readonly [{
4669
4343
  readonly sort: 1;
4670
4344
  };
4671
4345
  };
4346
+ readonly attributes: {
4347
+ readonly translucent: {
4348
+ readonly label: "Translucent";
4349
+ readonly description: "Sets the navigation bar to translucent.";
4350
+ readonly category: "style";
4351
+ readonly specialCategory: null;
4352
+ readonly sort: 2;
4353
+ };
4354
+ };
4672
4355
  };
4673
4356
  readonly defaults: {
4674
4357
  readonly styles: {
4675
- readonly flexDirection: "column";
4676
- readonly position: "relative";
4677
- readonly zIndex: 1;
4678
- readonly alignSelf: "flex-start";
4679
- readonly flexGrow: 0;
4680
- readonly flexShrink: 0;
4681
4358
  readonly backgroundColor: "THEME_COLORS.BACKGROUND";
4682
4359
  };
4683
4360
  };
4684
- readonly types: {};
4685
4361
  }, {
4686
4362
  readonly schemaVersion: 2;
4687
4363
  readonly pattern: {
@@ -6362,8 +6038,8 @@ export declare const patterns: readonly [{
6362
6038
  readonly right: "size";
6363
6039
  readonly zIndex: "number";
6364
6040
  };
6365
- readonly testID: "string";
6366
6041
  readonly scrollable: "boolean";
6042
+ readonly testID: "string";
6367
6043
  readonly textLocalizationKey: "string";
6368
6044
  readonly linkedWordFirstLocalizationKey: "string";
6369
6045
  readonly linkedWordFirstColor: "color";
@@ -6809,6 +6485,7 @@ export declare const patterns: readonly [{
6809
6485
  readonly children: "node";
6810
6486
  readonly attributes: {
6811
6487
  readonly src: "string";
6488
+ readonly fetchStrategy: readonly ["highIfItsAppLaunch", "normal", "lazy", "none"];
6812
6489
  readonly styles: {
6813
6490
  readonly resizeMode: readonly ["cover", "contain", "stretch", "center"];
6814
6491
  readonly flexDirection: readonly ["row", "column"];
@@ -6846,8 +6523,8 @@ export declare const patterns: readonly [{
6846
6523
  readonly right: "size";
6847
6524
  readonly zIndex: "number";
6848
6525
  };
6849
- readonly testID: "string";
6850
6526
  readonly scrollable: "boolean";
6527
+ readonly testID: "string";
6851
6528
  readonly video_url: "string";
6852
6529
  readonly lottie: "string";
6853
6530
  };
@@ -6873,6 +6550,13 @@ export declare const patterns: readonly [{
6873
6550
  readonly specialCategory: null;
6874
6551
  readonly sort: 1;
6875
6552
  };
6553
+ readonly fetchStrategy: {
6554
+ readonly label: "Fetch Strategy";
6555
+ readonly description: "highIfItsAppLaunch ilk başta yükleniyor eğer app_launch placeholder'i ile gelirse\nnormal sonra bütün hepsi toplanıp prefetch ediniyor\nlazy builder açılır açılmaz\nnone ise os'a bırakıldı";
6556
+ readonly category: "other";
6557
+ readonly specialCategory: null;
6558
+ readonly sort: 2;
6559
+ };
6876
6560
  readonly scrollable: {
6877
6561
  readonly label: "Scrollable";
6878
6562
  readonly description: "Turns scroll interaction on.";
@@ -7189,6 +6873,7 @@ export declare const patterns: readonly [{
7189
6873
  };
7190
6874
  };
7191
6875
  readonly defaults: {
6876
+ readonly fetchStrategy: "normal";
7192
6877
  readonly styles: {
7193
6878
  readonly resizeMode: "contain";
7194
6879
  readonly flexDirection: "column";
@@ -8000,8 +7685,8 @@ export declare const patterns: readonly [{
8000
7685
  readonly right: "size";
8001
7686
  readonly zIndex: "number";
8002
7687
  };
8003
- readonly testID: "string";
8004
7688
  readonly scrollable: "boolean";
7689
+ readonly testID: "string";
8005
7690
  };
8006
7691
  };
8007
7692
  readonly meta: {
@@ -8429,8 +8114,8 @@ export declare const patterns: readonly [{
8429
8114
  readonly right: "size";
8430
8115
  readonly zIndex: "number";
8431
8116
  };
8432
- readonly testID: "string";
8433
8117
  readonly scrollable: "boolean";
8118
+ readonly testID: "string";
8434
8119
  };
8435
8120
  };
8436
8121
  readonly meta: {
@@ -8817,7 +8502,6 @@ export declare const patterns: readonly [{
8817
8502
  readonly attributes: {
8818
8503
  readonly src: "string";
8819
8504
  readonly resizeMode: readonly ["cover", "contain", "stretch", "center"];
8820
- readonly testID: "string";
8821
8505
  readonly scrollable: "boolean";
8822
8506
  readonly styles: {
8823
8507
  readonly flexDirection: readonly ["row", "column"];
@@ -8855,6 +8539,7 @@ export declare const patterns: readonly [{
8855
8539
  readonly right: "size";
8856
8540
  readonly zIndex: "number";
8857
8541
  };
8542
+ readonly testID: "string";
8858
8543
  };
8859
8544
  };
8860
8545
  readonly meta: {
@@ -9207,7 +8892,6 @@ export declare const patterns: readonly [{
9207
8892
  readonly iconType: "iconType";
9208
8893
  readonly size: "number";
9209
8894
  readonly strokeWidth: "number";
9210
- readonly testID: "string";
9211
8895
  readonly adjustsFontSizeToFit: "boolean";
9212
8896
  readonly showEllipsis: "boolean";
9213
8897
  readonly translateCounter: "number";
@@ -9253,6 +8937,7 @@ export declare const patterns: readonly [{
9253
8937
  readonly zIndex: "number";
9254
8938
  };
9255
8939
  readonly scrollable: "boolean";
8940
+ readonly testID: "string";
9256
8941
  };
9257
8942
  };
9258
8943
  readonly meta: {
@@ -9653,6 +9338,7 @@ export declare const patterns: readonly [{
9653
9338
  readonly alignItems: "center";
9654
9339
  };
9655
9340
  readonly translateCounter: 1;
9341
+ readonly testID: "paywall-close-button";
9656
9342
  readonly size: 24;
9657
9343
  };
9658
9344
  readonly types: {};
@@ -10452,8 +10138,8 @@ export declare const patterns: readonly [{
10452
10138
  readonly right: "size";
10453
10139
  readonly zIndex: "number";
10454
10140
  };
10455
- readonly testID: "string";
10456
10141
  readonly scrollable: "boolean";
10142
+ readonly testID: "string";
10457
10143
  };
10458
10144
  };
10459
10145
  readonly meta: {
@@ -10859,8 +10545,8 @@ export declare const patterns: readonly [{
10859
10545
  readonly zIndex: "number";
10860
10546
  readonly textDecorationLine: readonly ["none", "underline", "line-through"];
10861
10547
  };
10862
- readonly testID: "string";
10863
10548
  readonly scrollable: "boolean";
10549
+ readonly testID: "string";
10864
10550
  readonly showOriginalPricePossible: "boolean";
10865
10551
  readonly hideIfItsNotDiscount: "boolean";
10866
10552
  };
@@ -11311,8 +10997,8 @@ export declare const patterns: readonly [{
11311
10997
  readonly right: "size";
11312
10998
  readonly zIndex: "number";
11313
10999
  };
11314
- readonly testID: "string";
11315
11000
  readonly scrollable: "boolean";
11001
+ readonly testID: "string";
11316
11002
  };
11317
11003
  };
11318
11004
  readonly meta: {
@@ -11741,8 +11427,8 @@ export declare const patterns: readonly [{
11741
11427
  readonly right: "size";
11742
11428
  readonly zIndex: "number";
11743
11429
  };
11744
- readonly testID: "string";
11745
11430
  readonly scrollable: "boolean";
11431
+ readonly testID: "string";
11746
11432
  };
11747
11433
  };
11748
11434
  readonly meta: {
@@ -12579,7 +12265,7 @@ export declare const patterns: readonly [{
12579
12265
  readonly styles: {
12580
12266
  readonly backgroundColor: "color";
12581
12267
  };
12582
- readonly testID: "string";
12268
+ readonly translucent: "boolean";
12583
12269
  };
12584
12270
  };
12585
12271
  readonly meta: {
@@ -12595,6 +12281,15 @@ export declare const patterns: readonly [{
12595
12281
  readonly sort: 1;
12596
12282
  };
12597
12283
  };
12284
+ readonly attributes: {
12285
+ readonly translucent: {
12286
+ readonly label: "Translucent";
12287
+ readonly description: "Sets the status bar to translucent.";
12288
+ readonly category: "style";
12289
+ readonly specialCategory: null;
12290
+ readonly sort: 2;
12291
+ };
12292
+ };
12598
12293
  };
12599
12294
  readonly defaults: {
12600
12295
  readonly styles: {
@@ -23,6 +23,7 @@ export type BuilderProviderParams = {
23
23
  fonts?: Fonts;
24
24
  previewMode?: boolean;
25
25
  selectedKey?: string;
26
+ device?: import('../types/Device').Device;
26
27
  };
27
28
  type BuilderProviderProps = {
28
29
  params: BuilderProviderParams;
@@ -1,8 +1,11 @@
1
+ import React from 'react';
1
2
  import { Device } from '../types/Device';
2
3
  type DeviceButtonProps = {
3
4
  device: Device;
4
5
  selectedDevice: Device | null;
5
6
  onSelect: (device: Device) => void;
7
+ isFavorite?: boolean;
8
+ onToggleFavorite?: (device: Device, e: React.MouseEvent) => void;
6
9
  };
7
- export declare function DeviceButton({ device, selectedDevice, onSelect, }: DeviceButtonProps): import("react/jsx-runtime").JSX.Element;
10
+ export declare function DeviceButton({ device, selectedDevice, onSelect, isFavorite, onToggleFavorite, }: DeviceButtonProps): import("react/jsx-runtime").JSX.Element;
8
11
  export default DeviceButton;