@bestcheckout/dynamic-component-cli 0.1.10 → 0.1.12

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bestcheckout/dynamic-component-cli",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "description": "CLI and starter project generator for BestCheckout dynamic components",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "cli_version": "0.1.1",
3
- "runtime_types_sha256": "89c9ca94713203dbfd08ec5cd0b0ab065632453a5c3d74c43afde46e804a3be3",
3
+ "runtime_types_sha256": "a7c3002fbb392932ea99689c73d366d28fecb3b11b0bfd633f85c5e1e7a59212",
4
4
  "schema_version": 1,
5
5
  "profiles": [
6
6
  {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "cli_version": "0.1.1",
3
- "runtime_types_sha256": "89c9ca94713203dbfd08ec5cd0b0ab065632453a5c3d74c43afde46e804a3be3",
3
+ "runtime_types_sha256": "a7c3002fbb392932ea99689c73d366d28fecb3b11b0bfd633f85c5e1e7a59212",
4
4
  "page_types": [
5
5
  "checkout",
6
6
  "thankyou",
@@ -151,6 +151,7 @@
151
151
  "afterOrderConfirmation",
152
152
  "afterProgress",
153
153
  "afterOffer",
154
+ "offerBeforePolicyLinks",
154
155
  "afterOfferPolicyLinks"
155
156
  ],
156
157
  "downsell": [
@@ -158,6 +159,7 @@
158
159
  "afterOrderConfirmation",
159
160
  "afterProgress",
160
161
  "afterOffer",
162
+ "offerBeforePolicyLinks",
161
163
  "afterOfferPolicyLinks"
162
164
  ]
163
165
  },
@@ -532,19 +534,29 @@
532
534
  "default_blocks": [],
533
535
  "allowed_slots": {
534
536
  "checkout": [
535
- "beforeExpressCheckout",
537
+ "headerAbove",
538
+ "afterAnnouncement",
539
+ "headerFullWidth",
536
540
  "headerBelow",
541
+ "beforeExpressCheckout",
542
+ "beforeContact",
537
543
  "afterContact",
544
+ "afterDelivery",
538
545
  "afterShippingMethod",
539
546
  "afterPayment",
540
547
  "afterCta",
541
- "afterOrderSummary"
548
+ "beforeOrderSummary",
549
+ "afterOrderSummary",
550
+ "afterPolicyLinks",
551
+ "footer",
552
+ "afterFooter"
542
553
  ],
543
554
  "upsell": [
544
555
  "offerHeaderAbove",
545
556
  "afterOrderConfirmation",
546
557
  "afterProgress",
547
558
  "afterOffer",
559
+ "offerBeforePolicyLinks",
548
560
  "afterOfferPolicyLinks"
549
561
  ],
550
562
  "downsell": [
@@ -552,6 +564,7 @@
552
564
  "afterOrderConfirmation",
553
565
  "afterProgress",
554
566
  "afterOffer",
567
+ "offerBeforePolicyLinks",
555
568
  "afterOfferPolicyLinks"
556
569
  ]
557
570
  },
@@ -736,31 +749,43 @@
736
749
  "allowed_slots": {
737
750
  "checkout": [
738
751
  "headerAbove",
752
+ "afterAnnouncement",
753
+ "headerFullWidth",
739
754
  "headerBelow",
740
755
  "beforeExpressCheckout",
756
+ "beforeContact",
741
757
  "afterContact",
758
+ "afterDelivery",
742
759
  "afterShippingMethod",
743
760
  "afterPayment",
744
761
  "afterCta",
762
+ "beforeOrderSummary",
745
763
  "afterOrderSummary",
746
764
  "afterPolicyLinks",
747
- "footer"
765
+ "footer",
766
+ "afterFooter"
748
767
  ],
749
768
  "thankyou": [
750
769
  "thankYouHeaderAbove",
770
+ "thankYouAfterAnnouncement",
771
+ "thankYouHeaderBelow",
751
772
  "thankYouBeforeOrderStatus",
752
773
  "thankYouAfterOrderStatus",
753
774
  "thankYouAfterOrderDetails",
754
775
  "thankYouAfterContactUs",
776
+ "thankYouBeforeOrderSummary",
755
777
  "thankYouAfterOrderSummary",
778
+ "thankYouBeforePolicyLinks",
756
779
  "thankYouAfterPolicyLinks",
757
- "thankYouFooter"
780
+ "thankYouFooter",
781
+ "thankYouAfterFooter"
758
782
  ],
759
783
  "upsell": [
760
784
  "offerHeaderAbove",
761
785
  "afterOrderConfirmation",
762
786
  "afterProgress",
763
787
  "afterOffer",
788
+ "offerBeforePolicyLinks",
764
789
  "afterOfferPolicyLinks"
765
790
  ],
766
791
  "downsell": [
@@ -768,6 +793,7 @@
768
793
  "afterOrderConfirmation",
769
794
  "afterProgress",
770
795
  "afterOffer",
796
+ "offerBeforePolicyLinks",
771
797
  "afterOfferPolicyLinks"
772
798
  ]
773
799
  },
@@ -885,24 +911,44 @@
885
911
  ],
886
912
  "allowed_slots": {
887
913
  "checkout": [
888
- "beforeExpressCheckout",
914
+ "headerAbove",
915
+ "afterAnnouncement",
916
+ "headerFullWidth",
889
917
  "headerBelow",
918
+ "beforeExpressCheckout",
919
+ "beforeContact",
890
920
  "afterContact",
921
+ "afterDelivery",
891
922
  "afterShippingMethod",
892
923
  "afterPayment",
893
924
  "afterCta",
894
- "afterOrderSummary"
925
+ "beforeOrderSummary",
926
+ "afterOrderSummary",
927
+ "afterPolicyLinks",
928
+ "footer",
929
+ "afterFooter"
895
930
  ],
896
931
  "thankyou": [
932
+ "thankYouHeaderAbove",
933
+ "thankYouAfterAnnouncement",
934
+ "thankYouHeaderBelow",
935
+ "thankYouBeforeOrderStatus",
936
+ "thankYouAfterOrderStatus",
897
937
  "thankYouAfterOrderDetails",
898
938
  "thankYouAfterContactUs",
899
- "thankYouAfterOrderSummary"
939
+ "thankYouBeforeOrderSummary",
940
+ "thankYouAfterOrderSummary",
941
+ "thankYouBeforePolicyLinks",
942
+ "thankYouAfterPolicyLinks",
943
+ "thankYouFooter",
944
+ "thankYouAfterFooter"
900
945
  ],
901
946
  "upsell": [
902
947
  "offerHeaderAbove",
903
948
  "afterOrderConfirmation",
904
949
  "afterProgress",
905
950
  "afterOffer",
951
+ "offerBeforePolicyLinks",
906
952
  "afterOfferPolicyLinks"
907
953
  ],
908
954
  "downsell": [
@@ -910,6 +956,7 @@
910
956
  "afterOrderConfirmation",
911
957
  "afterProgress",
912
958
  "afterOffer",
959
+ "offerBeforePolicyLinks",
913
960
  "afterOfferPolicyLinks"
914
961
  ]
915
962
  },
@@ -2991,24 +3038,44 @@
2991
3038
  ],
2992
3039
  "allowed_slots": {
2993
3040
  "checkout": [
2994
- "beforeExpressCheckout",
3041
+ "headerAbove",
3042
+ "afterAnnouncement",
3043
+ "headerFullWidth",
2995
3044
  "headerBelow",
3045
+ "beforeExpressCheckout",
3046
+ "beforeContact",
2996
3047
  "afterContact",
3048
+ "afterDelivery",
2997
3049
  "afterShippingMethod",
2998
3050
  "afterPayment",
2999
3051
  "afterCta",
3000
- "afterOrderSummary"
3052
+ "beforeOrderSummary",
3053
+ "afterOrderSummary",
3054
+ "afterPolicyLinks",
3055
+ "footer",
3056
+ "afterFooter"
3001
3057
  ],
3002
3058
  "thankyou": [
3059
+ "thankYouHeaderAbove",
3060
+ "thankYouAfterAnnouncement",
3061
+ "thankYouHeaderBelow",
3062
+ "thankYouBeforeOrderStatus",
3063
+ "thankYouAfterOrderStatus",
3003
3064
  "thankYouAfterOrderDetails",
3004
3065
  "thankYouAfterContactUs",
3005
- "thankYouAfterOrderSummary"
3066
+ "thankYouBeforeOrderSummary",
3067
+ "thankYouAfterOrderSummary",
3068
+ "thankYouBeforePolicyLinks",
3069
+ "thankYouAfterPolicyLinks",
3070
+ "thankYouFooter",
3071
+ "thankYouAfterFooter"
3006
3072
  ],
3007
3073
  "upsell": [
3008
3074
  "offerHeaderAbove",
3009
3075
  "afterOrderConfirmation",
3010
3076
  "afterProgress",
3011
3077
  "afterOffer",
3078
+ "offerBeforePolicyLinks",
3012
3079
  "afterOfferPolicyLinks"
3013
3080
  ],
3014
3081
  "downsell": [
@@ -3016,6 +3083,7 @@
3016
3083
  "afterOrderConfirmation",
3017
3084
  "afterProgress",
3018
3085
  "afterOffer",
3086
+ "offerBeforePolicyLinks",
3019
3087
  "afterOfferPolicyLinks"
3020
3088
  ]
3021
3089
  },
@@ -3613,24 +3681,44 @@
3613
3681
  ],
3614
3682
  "allowed_slots": {
3615
3683
  "checkout": [
3616
- "beforeExpressCheckout",
3684
+ "headerAbove",
3685
+ "afterAnnouncement",
3686
+ "headerFullWidth",
3617
3687
  "headerBelow",
3688
+ "beforeExpressCheckout",
3689
+ "beforeContact",
3618
3690
  "afterContact",
3691
+ "afterDelivery",
3619
3692
  "afterShippingMethod",
3620
3693
  "afterPayment",
3621
3694
  "afterCta",
3622
- "afterOrderSummary"
3695
+ "beforeOrderSummary",
3696
+ "afterOrderSummary",
3697
+ "afterPolicyLinks",
3698
+ "footer",
3699
+ "afterFooter"
3623
3700
  ],
3624
3701
  "thankyou": [
3702
+ "thankYouHeaderAbove",
3703
+ "thankYouAfterAnnouncement",
3704
+ "thankYouHeaderBelow",
3705
+ "thankYouBeforeOrderStatus",
3706
+ "thankYouAfterOrderStatus",
3625
3707
  "thankYouAfterOrderDetails",
3626
3708
  "thankYouAfterContactUs",
3627
- "thankYouAfterOrderSummary"
3709
+ "thankYouBeforeOrderSummary",
3710
+ "thankYouAfterOrderSummary",
3711
+ "thankYouBeforePolicyLinks",
3712
+ "thankYouAfterPolicyLinks",
3713
+ "thankYouFooter",
3714
+ "thankYouAfterFooter"
3628
3715
  ],
3629
3716
  "upsell": [
3630
3717
  "offerHeaderAbove",
3631
3718
  "afterOrderConfirmation",
3632
3719
  "afterProgress",
3633
3720
  "afterOffer",
3721
+ "offerBeforePolicyLinks",
3634
3722
  "afterOfferPolicyLinks"
3635
3723
  ],
3636
3724
  "downsell": [
@@ -3638,6 +3726,7 @@
3638
3726
  "afterOrderConfirmation",
3639
3727
  "afterProgress",
3640
3728
  "afterOffer",
3729
+ "offerBeforePolicyLinks",
3641
3730
  "afterOfferPolicyLinks"
3642
3731
  ]
3643
3732
  },
@@ -4052,26 +4141,44 @@
4052
4141
  "default_blocks": [],
4053
4142
  "allowed_slots": {
4054
4143
  "checkout": [
4055
- "beforeExpressCheckout",
4144
+ "headerAbove",
4145
+ "afterAnnouncement",
4146
+ "headerFullWidth",
4056
4147
  "headerBelow",
4148
+ "beforeExpressCheckout",
4149
+ "beforeContact",
4057
4150
  "afterContact",
4151
+ "afterDelivery",
4058
4152
  "afterShippingMethod",
4059
4153
  "afterPayment",
4060
4154
  "afterCta",
4061
- "afterOrderSummary"
4155
+ "beforeOrderSummary",
4156
+ "afterOrderSummary",
4157
+ "afterPolicyLinks",
4158
+ "footer",
4159
+ "afterFooter"
4062
4160
  ],
4063
4161
  "thankyou": [
4162
+ "thankYouHeaderAbove",
4163
+ "thankYouAfterAnnouncement",
4164
+ "thankYouHeaderBelow",
4064
4165
  "thankYouBeforeOrderStatus",
4065
4166
  "thankYouAfterOrderStatus",
4066
4167
  "thankYouAfterOrderDetails",
4067
4168
  "thankYouAfterContactUs",
4068
- "thankYouAfterOrderSummary"
4169
+ "thankYouBeforeOrderSummary",
4170
+ "thankYouAfterOrderSummary",
4171
+ "thankYouBeforePolicyLinks",
4172
+ "thankYouAfterPolicyLinks",
4173
+ "thankYouFooter",
4174
+ "thankYouAfterFooter"
4069
4175
  ],
4070
4176
  "upsell": [
4071
4177
  "offerHeaderAbove",
4072
4178
  "afterOrderConfirmation",
4073
4179
  "afterProgress",
4074
4180
  "afterOffer",
4181
+ "offerBeforePolicyLinks",
4075
4182
  "afterOfferPolicyLinks"
4076
4183
  ],
4077
4184
  "downsell": [
@@ -4079,6 +4186,7 @@
4079
4186
  "afterOrderConfirmation",
4080
4187
  "afterProgress",
4081
4188
  "afterOffer",
4189
+ "offerBeforePolicyLinks",
4082
4190
  "afterOfferPolicyLinks"
4083
4191
  ]
4084
4192
  },
@@ -4214,16 +4322,44 @@
4214
4322
  ],
4215
4323
  "allowed_slots": {
4216
4324
  "checkout": [
4217
- "afterPolicyLinks"
4325
+ "headerAbove",
4326
+ "afterAnnouncement",
4327
+ "headerFullWidth",
4328
+ "headerBelow",
4329
+ "beforeExpressCheckout",
4330
+ "beforeContact",
4331
+ "afterContact",
4332
+ "afterDelivery",
4333
+ "afterShippingMethod",
4334
+ "afterPayment",
4335
+ "afterCta",
4336
+ "beforeOrderSummary",
4337
+ "afterOrderSummary",
4338
+ "afterPolicyLinks",
4339
+ "footer",
4340
+ "afterFooter"
4218
4341
  ],
4219
4342
  "thankyou": [
4220
- "thankYouAfterPolicyLinks"
4343
+ "thankYouHeaderAbove",
4344
+ "thankYouAfterAnnouncement",
4345
+ "thankYouHeaderBelow",
4346
+ "thankYouBeforeOrderStatus",
4347
+ "thankYouAfterOrderStatus",
4348
+ "thankYouAfterOrderDetails",
4349
+ "thankYouAfterContactUs",
4350
+ "thankYouBeforeOrderSummary",
4351
+ "thankYouAfterOrderSummary",
4352
+ "thankYouBeforePolicyLinks",
4353
+ "thankYouAfterPolicyLinks",
4354
+ "thankYouFooter",
4355
+ "thankYouAfterFooter"
4221
4356
  ],
4222
4357
  "upsell": [
4223
4358
  "offerHeaderAbove",
4224
4359
  "afterOrderConfirmation",
4225
4360
  "afterProgress",
4226
4361
  "afterOffer",
4362
+ "offerBeforePolicyLinks",
4227
4363
  "afterOfferPolicyLinks"
4228
4364
  ],
4229
4365
  "downsell": [
@@ -4231,6 +4367,7 @@
4231
4367
  "afterOrderConfirmation",
4232
4368
  "afterProgress",
4233
4369
  "afterOffer",
4370
+ "offerBeforePolicyLinks",
4234
4371
  "afterOfferPolicyLinks"
4235
4372
  ]
4236
4373
  },
@@ -4593,24 +4730,44 @@
4593
4730
  ],
4594
4731
  "allowed_slots": {
4595
4732
  "checkout": [
4596
- "beforeExpressCheckout",
4733
+ "headerAbove",
4734
+ "afterAnnouncement",
4735
+ "headerFullWidth",
4597
4736
  "headerBelow",
4737
+ "beforeExpressCheckout",
4738
+ "beforeContact",
4598
4739
  "afterContact",
4740
+ "afterDelivery",
4599
4741
  "afterShippingMethod",
4600
4742
  "afterPayment",
4601
4743
  "afterCta",
4602
- "afterOrderSummary"
4744
+ "beforeOrderSummary",
4745
+ "afterOrderSummary",
4746
+ "afterPolicyLinks",
4747
+ "footer",
4748
+ "afterFooter"
4603
4749
  ],
4604
4750
  "thankyou": [
4751
+ "thankYouHeaderAbove",
4752
+ "thankYouAfterAnnouncement",
4753
+ "thankYouHeaderBelow",
4754
+ "thankYouBeforeOrderStatus",
4755
+ "thankYouAfterOrderStatus",
4605
4756
  "thankYouAfterOrderDetails",
4606
4757
  "thankYouAfterContactUs",
4607
- "thankYouAfterOrderSummary"
4758
+ "thankYouBeforeOrderSummary",
4759
+ "thankYouAfterOrderSummary",
4760
+ "thankYouBeforePolicyLinks",
4761
+ "thankYouAfterPolicyLinks",
4762
+ "thankYouFooter",
4763
+ "thankYouAfterFooter"
4608
4764
  ],
4609
4765
  "upsell": [
4610
4766
  "offerHeaderAbove",
4611
4767
  "afterOrderConfirmation",
4612
4768
  "afterProgress",
4613
4769
  "afterOffer",
4770
+ "offerBeforePolicyLinks",
4614
4771
  "afterOfferPolicyLinks"
4615
4772
  ],
4616
4773
  "downsell": [
@@ -4618,6 +4775,7 @@
4618
4775
  "afterOrderConfirmation",
4619
4776
  "afterProgress",
4620
4777
  "afterOffer",
4778
+ "offerBeforePolicyLinks",
4621
4779
  "afterOfferPolicyLinks"
4622
4780
  ]
4623
4781
  },
@@ -4791,24 +4949,44 @@
4791
4949
  ],
4792
4950
  "allowed_slots": {
4793
4951
  "checkout": [
4794
- "beforeExpressCheckout",
4952
+ "headerAbove",
4953
+ "afterAnnouncement",
4954
+ "headerFullWidth",
4795
4955
  "headerBelow",
4956
+ "beforeExpressCheckout",
4957
+ "beforeContact",
4796
4958
  "afterContact",
4959
+ "afterDelivery",
4797
4960
  "afterShippingMethod",
4798
4961
  "afterPayment",
4799
4962
  "afterCta",
4800
- "afterOrderSummary"
4963
+ "beforeOrderSummary",
4964
+ "afterOrderSummary",
4965
+ "afterPolicyLinks",
4966
+ "footer",
4967
+ "afterFooter"
4801
4968
  ],
4802
4969
  "thankyou": [
4970
+ "thankYouHeaderAbove",
4971
+ "thankYouAfterAnnouncement",
4972
+ "thankYouHeaderBelow",
4973
+ "thankYouBeforeOrderStatus",
4974
+ "thankYouAfterOrderStatus",
4803
4975
  "thankYouAfterOrderDetails",
4804
4976
  "thankYouAfterContactUs",
4805
- "thankYouAfterOrderSummary"
4977
+ "thankYouBeforeOrderSummary",
4978
+ "thankYouAfterOrderSummary",
4979
+ "thankYouBeforePolicyLinks",
4980
+ "thankYouAfterPolicyLinks",
4981
+ "thankYouFooter",
4982
+ "thankYouAfterFooter"
4806
4983
  ],
4807
4984
  "upsell": [
4808
4985
  "offerHeaderAbove",
4809
4986
  "afterOrderConfirmation",
4810
4987
  "afterProgress",
4811
4988
  "afterOffer",
4989
+ "offerBeforePolicyLinks",
4812
4990
  "afterOfferPolicyLinks"
4813
4991
  ],
4814
4992
  "downsell": [
@@ -4816,6 +4994,7 @@
4816
4994
  "afterOrderConfirmation",
4817
4995
  "afterProgress",
4818
4996
  "afterOffer",
4997
+ "offerBeforePolicyLinks",
4819
4998
  "afterOfferPolicyLinks"
4820
4999
  ]
4821
5000
  },
package/types/index.d.ts CHANGED
@@ -66,9 +66,9 @@ type OfferFixedComponentType = (typeof offerFixedComponentTypes)[number];
66
66
  type CheckoutCoreComponentType = CheckoutFixedComponentType | ThankYouFixedComponentType | OfferFixedComponentType;
67
67
  type CheckoutAddableComponentType = "dynamic" | "announcementBar" | "countdown" | "paymentIcons" | "trustBadges" | "trustpilotReview" | "reviewCard" | "testimonials" | "facebookComments" | "staticContent" | "footer" | "productUpsell" | "shippingInsurance" | "vipClub";
68
68
  type CheckoutComponentType = CheckoutCoreComponentType | CheckoutAddableComponentType;
69
- type CheckoutSlotKey = "headerAbove" | "headerBelow" | "beforeExpressCheckout" | "afterContact" | "afterShippingMethod" | "afterPayment" | "afterCta" | "afterOrderSummary" | "afterPolicyLinks" | "footer";
70
- type ThankYouSlotKey = "thankYouHeaderAbove" | "thankYouBeforeOrderStatus" | "thankYouAfterOrderStatus" | "thankYouAfterOrderDetails" | "thankYouAfterContactUs" | "thankYouAfterOrderSummary" | "thankYouAfterPolicyLinks" | "thankYouFooter";
71
- type OfferSlotKey = "offerHeaderAbove" | "afterOrderConfirmation" | "afterProgress" | "afterOffer" | "afterOfferPolicyLinks";
69
+ type CheckoutSlotKey = "headerAbove" | "afterAnnouncement" | "headerFullWidth" | "headerBelow" | "beforeExpressCheckout" | "beforeContact" | "afterContact" | "afterDelivery" | "afterShippingMethod" | "afterPayment" | "afterCta" | "beforeOrderSummary" | "afterOrderSummary" | "afterPolicyLinks" | "footer" | "afterFooter";
70
+ type ThankYouSlotKey = "thankYouHeaderAbove" | "thankYouAfterAnnouncement" | "thankYouHeaderBelow" | "thankYouBeforeOrderStatus" | "thankYouAfterOrderStatus" | "thankYouAfterOrderDetails" | "thankYouAfterContactUs" | "thankYouBeforeOrderSummary" | "thankYouAfterOrderSummary" | "thankYouBeforePolicyLinks" | "thankYouAfterPolicyLinks" | "thankYouFooter" | "thankYouAfterFooter";
71
+ type OfferSlotKey = "offerHeaderAbove" | "afterOrderConfirmation" | "afterProgress" | "afterOffer" | "offerBeforePolicyLinks" | "afterOfferPolicyLinks";
72
72
  type CheckoutAnySlotKey = CheckoutSlotKey | ThankYouSlotKey | OfferSlotKey;
73
73
  type CheckoutSectionInstance = {
74
74
  id: string;