@ordergroove/offers 2.30.8 → 2.30.9-alpha-PR-723-5.41
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/README.md +10 -10
- package/dist/bundle-report.html +5 -5
- package/dist/examples.js +1 -1
- package/dist/examples.js.map +1 -1
- package/dist/offers.js +28 -28
- package/dist/offers.js.map +2 -2
- package/package.json +3 -3
- package/src/core/__tests__/descriptors.spec.js +20 -0
- package/src/core/descriptors.js +8 -1
package/README.md
CHANGED
|
@@ -551,6 +551,7 @@ Element that renders it children when test condition matches
|
|
|
551
551
|
| regularEligible | this is similar to subscriptionEligible but it also checks that is not upsellEligible | `<og-when test="regularEligible">` |
|
|
552
552
|
| prepaidEligible | Product is eligible for creating a prepaid subscription. Can be set on rc3 product config | `<og-when test="prepaidEligible">` |
|
|
553
553
|
| prepaidSubscribed | If the customer optedIn into a prepaid subscription | `<og-when test="prepaidSubscribed">` |
|
|
554
|
+
| hasPrepaidOptions | If prepaid subscription options are available | `<og-when test="hasPrepaidOptions">` |
|
|
554
555
|
|
|
555
556
|
#### Combine descriptors
|
|
556
557
|
|
|
@@ -618,13 +619,12 @@ Display information from the prepaid plan selected when merchant and product is
|
|
|
618
619
|
<og-prepaid-data total-price></og-prepaid-data>
|
|
619
620
|
```
|
|
620
621
|
|
|
621
|
-
|
|
622
|
-
|
|
|
623
|
-
|
|
|
624
|
-
|
|
|
625
|
-
|
|
|
626
|
-
|
|
|
627
|
-
|
|
|
628
|
-
| percentage-savings
|
|
629
|
-
|
|
|
630
|
-
| number-of-shipments | Number of shipments that is selected on the prepaid box | `<og-prepaid-data number-of-shipments></og-prepaid-data>` |
|
|
622
|
+
| PROPERTY | SUMMARY | Example |
|
|
623
|
+
| ------------------------ | ------------------------------------------------------------------------------------- | -------------------------------------------------------------- |
|
|
624
|
+
| total-price | Total price of the prepaid subscription that will be billed on checkout | `<og-prepaid-data total-price></og-prepaid-data>` |
|
|
625
|
+
| per-delivery-price | The price of each product being delivered | `<og-prepaid-data per-delivery-price></og-prepaid-data>` |
|
|
626
|
+
| total-savings | Total savings in money (\$0.00) format compared with product price | `<og-prepaid-data total-savings></og-prepaid-data>` |
|
|
627
|
+
| per-delivery-savings | Savings per product in money (\$0.00) format compared with the product price | `<og-prepaid-data per-delivery-savings></og-prepaid-data>` |
|
|
628
|
+
| percentage-savings | Percentage of the total being saved when opting-in into a prepaid subscription | `<og-prepaid-data percentage-savings></og-prepaid-data>` |
|
|
629
|
+
| extra-percentage-savings | Percentage of what is being saved compared to the pay as you go (normal) subscription | `<og-prepaid-data extra-percentage-savings></og-prepaid-data>` |
|
|
630
|
+
| number-of-shipments | Number of shipments that is selected on the prepaid box | `<og-prepaid-data number-of-shipments></og-prepaid-data>` |
|
package/dist/bundle-report.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
│ └ examples/index.js
|
|
5
5
|
└ examples/index.js ───────────────────────────────────────── 8.9kb ─── 3.3%
|
|
6
6
|
|
|
7
|
-
dist/offers.js ─────────────────────────────────────────────
|
|
7
|
+
dist/offers.js ───────────────────────────────────────────── 139.0kb ─ 100.0%
|
|
8
8
|
├ src/components/Offer.js ─────────────────────────────────── 8.2kb ─── 5.9%
|
|
9
9
|
│ └ src/make-api.js
|
|
10
10
|
│ └ src/index.js
|
|
@@ -101,13 +101,13 @@
|
|
|
101
101
|
├ src/components/FrequencyStatus.js ───────────────────────── 1.6kb ─── 1.1%
|
|
102
102
|
│ └ src/make-api.js
|
|
103
103
|
│ └ src/index.js
|
|
104
|
-
├ src/
|
|
105
|
-
│ └ src/make-api.js
|
|
106
|
-
│ └ src/index.js
|
|
107
|
-
├ src/core/descriptors.js ─────────────────────────────────── 1.4kb ─── 1.0%
|
|
104
|
+
├ src/core/descriptors.js ─────────────────────────────────── 1.5kb ─── 1.1%
|
|
108
105
|
│ └ src/components/When.js
|
|
109
106
|
│ └ src/make-api.js
|
|
110
107
|
│ └ src/index.js
|
|
108
|
+
├ src/components/OptinToggle.js ───────────────────────────── 1.5kb ─── 1.1%
|
|
109
|
+
│ └ src/make-api.js
|
|
110
|
+
│ └ src/index.js
|
|
111
111
|
├ src/components/OptinSelect.js ───────────────────────────── 1.4kb ─── 1.0%
|
|
112
112
|
│ └ src/make-api.js
|
|
113
113
|
│ └ src/index.js
|
package/dist/examples.js
CHANGED
|
@@ -652,7 +652,7 @@ og-prepaid-toggle {
|
|
|
652
652
|
</og-text>
|
|
653
653
|
`+((e=l.invokePartial(i(o,"selectFrequency"),r,{name:"selectFrequency",data:a,indent:" ",helpers:t,partials:o,decorators:l.decorators}))!=null?e:"")+` </og-when>
|
|
654
654
|
</div>
|
|
655
|
-
<og-when test="subscribed&prepaidEligible">
|
|
655
|
+
<og-when test="subscribed&prepaidEligible&hasPrepaidOptions">
|
|
656
656
|
<div class="og-prepaid">
|
|
657
657
|
<og-prepaid-toggle>
|
|
658
658
|
<span slot="append">and save <b><og-prepaid-data percentage-savings></og-prepaid-data></b>, delivered monthly.</span>
|