@ordergroove/offers 2.26.1-alpha-PR-582-2.15 → 2.26.1
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/CHANGELOG.md +11 -0
- package/README.md +3 -3
- package/dist/bundle-report.html +4 -4
- package/dist/examples.js +1 -1
- package/dist/examples.js.map +2 -2
- package/dist/offers.js +2 -2
- package/dist/offers.js.map +2 -2
- package/examples/index.js +1 -1
- package/package.json +3 -3
- package/schema.json +5 -5
- package/src/core/base.js +3 -0
- package/src/core/reducer.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [2.26.1](https://github.com/ordergroove/plush-toys/compare/@ordergroove/offers@2.26.0...@ordergroove/offers@2.26.1) (2022-03-24)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **offers:** Update default offer copy to "Subscribe to save" ([8cb4060](https://github.com/ordergroove/plush-toys/commit/8cb4060176ae2c0d64c787c4e2fd0b7e66b3785d))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [2.26.0](https://github.com/ordergroove/plush-toys/compare/@ordergroove/offers@2.25.2...@ordergroove/offers@2.26.0) (2022-02-21)
|
|
7
18
|
|
|
8
19
|
|
package/README.md
CHANGED
|
@@ -200,7 +200,7 @@ Configures the library locale text copies
|
|
|
200
200
|
| **offerEveryLabel** *string* | Subscribe frequency label | Ships Every: |
|
|
201
201
|
| **offerOptInLabel** *string* | Subscribe option copy | Subscribe and get 20% off |
|
|
202
202
|
| **offerOptOutLabel** *string* | One-time option copy | One-time |
|
|
203
|
-
| **offerTooltipContent** *string* | Tool tip copy | Subscribe to this product and have it conveniently delivered to you at the frequency you choose
|
|
203
|
+
| **offerTooltipContent** *string* | Tool tip copy | Subscribe to this product and have it conveniently delivered to you at the frequency you choose. Promotion subject to change. |
|
|
204
204
|
| **offerTooltipTrigger** *string* | Tool tip link copy | More info |
|
|
205
205
|
| **showTooltip** *boolean* | Add a tool tip | false |
|
|
206
206
|
| **frequencyPeriods** *object* | defines the frequency period names | `{1:"days",2:"weeks",3:"months"}` |
|
|
@@ -221,10 +221,10 @@ setLocale({
|
|
|
221
221
|
offerOptOutLabel: "Don't save money",
|
|
222
222
|
showTooltip: !0,
|
|
223
223
|
offerTooltipTrigger: "More info",
|
|
224
|
-
offerTooltipContent: "Subscribe to this product and have it conveniently delivered to you at the frequency you choose
|
|
224
|
+
offerTooltipContent: "Subscribe to this product and have it conveniently delivered to you at the frequency you choose. Promotion subject to change.",
|
|
225
225
|
upsellButtonLabel: "Add to upcoming subscription order and receive 20% off",
|
|
226
226
|
upsellButtonContent: "Add to Next Order on ",
|
|
227
|
-
upsellModalContent: "Subscribe to this product and have it conveniently delivered to you at the frequency you choose
|
|
227
|
+
upsellModalContent: "Subscribe to this product and have it conveniently delivered to you at the frequency you choose. Promotion subject to change.",
|
|
228
228
|
upsellModalOptOutLabel: "Get one-time",
|
|
229
229
|
upsellModalOptInLabel: "Subscribe and get 10% off on every order",
|
|
230
230
|
upsellModalConfirmLabel: "Add",
|
package/dist/bundle-report.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
│ └ examples/index.js
|
|
5
5
|
└ examples/index.js ───────────────────────────────────────── 8.3kb ─── 3.3%
|
|
6
6
|
|
|
7
|
-
dist/offers.js ───────────────────────────────────────────── 108.
|
|
7
|
+
dist/offers.js ───────────────────────────────────────────── 108.4kb ─ 100.0%
|
|
8
8
|
├ src/components/Offer.js ─────────────────────────────────── 7.9kb ─── 7.3%
|
|
9
9
|
│ └ src/index.js
|
|
10
10
|
├ node_modules/redux/es/redux.js ──────────────────────────── 6.7kb ─── 6.2%
|
|
@@ -93,6 +93,9 @@
|
|
|
93
93
|
├ ../auth/dist/auth.js ───────────────────────────────────── 1021b ──── 0.9%
|
|
94
94
|
│ └ src/core/actions.js
|
|
95
95
|
│ └ src/index.js
|
|
96
|
+
├ src/core/base.js ───────────────────────────────────────── 1011b ──── 0.9%
|
|
97
|
+
│ └ src/components/Price.js
|
|
98
|
+
│ └ src/index.js
|
|
96
99
|
├ node_modules/lit-html/lib/template-instance.js ─────────── 1004b ──── 0.9%
|
|
97
100
|
│ └ node_modules/lit-html/lit-html.js
|
|
98
101
|
│ └ node_modules/lit-element/lit-element.js
|
|
@@ -104,9 +107,6 @@
|
|
|
104
107
|
│ └ src/index.js
|
|
105
108
|
├ src/core/constants.js ───────────────────────────────────── 967b ──── 0.9%
|
|
106
109
|
│ └ src/index.js
|
|
107
|
-
├ src/core/base.js ────────────────────────────────────────── 903b ──── 0.8%
|
|
108
|
-
│ └ src/components/Price.js
|
|
109
|
-
│ └ src/index.js
|
|
110
110
|
├ node_modules/throttle-debounce/index.umd.js ─────────────── 880b ──── 0.8%
|
|
111
111
|
│ └ src/core/localStorage.js
|
|
112
112
|
│ └ src/index.js
|
package/dist/examples.js
CHANGED
|
@@ -386,7 +386,7 @@ og-price[subscription] {
|
|
|
386
386
|
`+((t=(i(e,"case")||r&&i(r,"case")||s).call(n,"buttons",{name:"case",hash:{},fn:l.program(12,a,0),inverse:l.noop,data:a,loc:{start:{line:7,column:4},end:{line:7,column:46}}}))!=null?t:"")+`
|
|
387
387
|
`+((t=(i(e,"default")||r&&i(r,"default")||s).call(n,"<!-- No offer configured --> ",{name:"default",hash:{},fn:l.program(14,a,0),inverse:l.noop,data:a,loc:{start:{line:8,column:4},end:{line:8,column:61}}}))!=null?t:"")+`
|
|
388
388
|
`},"2":function(l,r,e,o,a){var t,n=l.lookupProperty||function(s,i){if(Object.prototype.hasOwnProperty.call(s,i))return s[i]};return" "+((t=l.invokePartial(n(o,"radio"),r,{name:"radio",data:a,helpers:e,partials:o,decorators:l.decorators}))!=null?t:"")+" "},"4":function(l,r,e,o,a){var t,n=l.lookupProperty||function(s,i){if(Object.prototype.hasOwnProperty.call(s,i))return s[i]};return" "+((t=l.invokePartial(n(o,"select"),r,{name:"select",data:a,helpers:e,partials:o,decorators:l.decorators}))!=null?t:"")+" "},"6":function(l,r,e,o,a){var t,n=l.lookupProperty||function(s,i){if(Object.prototype.hasOwnProperty.call(s,i))return s[i]};return" "+((t=l.invokePartial(n(o,"toggle"),r,{name:"toggle",data:a,helpers:e,partials:o,decorators:l.decorators}))!=null?t:"")+" "},"8":function(l,r,e,o,a){var t,n=l.lookupProperty||function(s,i){if(Object.prototype.hasOwnProperty.call(s,i))return s[i]};return" "+((t=l.invokePartial(n(o,"side-by-side"),r,{name:"side-by-side",data:a,helpers:e,partials:o,decorators:l.decorators}))!=null?t:"")+" "},"10":function(l,r,e,o,a){var t,n=l.lookupProperty||function(s,i){if(Object.prototype.hasOwnProperty.call(s,i))return s[i]};return" "+((t=l.invokePartial(n(o,"read-only"),r,{name:"read-only",data:a,helpers:e,partials:o,decorators:l.decorators}))!=null?t:"")+" "},"12":function(l,r,e,o,a){var t,n=l.lookupProperty||function(s,i){if(Object.prototype.hasOwnProperty.call(s,i))return s[i]};return" "+((t=l.invokePartial(n(o,"buttons"),r,{name:"buttons",data:a,helpers:e,partials:o,decorators:l.decorators}))!=null?t:"")+" "},"14":function(l,r,e,o,a){return""},compiler:[8,">= 4.3.0"],main:function(l,r,e,o,a){var t,n=l.lookupProperty||function(s,i){if(Object.prototype.hasOwnProperty.call(s,i))return s[i]};return(t=(n(e,"switch")||r&&n(r,"switch")||l.hooks.helperMissing).call(r??(l.nullContext||{}),(t=r!=null?n(r,"settings"):r)!=null?n(t,"offerType"):t,{name:"switch",hash:{},fn:l.program(1,a,0),inverse:l.noop,data:a,loc:{start:{line:1,column:0},end:{line:9,column:11}}}))!=null?t:""},usePartial:!0,useData:!0});function La(l){return Bl(l).trim()}d(La,"to"),c(La,"getMarkup");var Vl=ir(Yi()),$r=ir(Nl()),Ql={buttons:zl(),"side-by-side":Ul(),radio:Hl()},Kl=c(l=>(0,$r.default)(Ql,(0,$r.default)(l,"settings.offerType",""),""),"getStylesheet"),Zl=c(l=>[Kl(l),"* {",...(0,Vl.mapStyles)((0,$r.default)(l,"styles",{})).map(r=>`${r.join(": ")};`),"}"].filter(r=>r).join(`
|
|
389
|
-
`),"getStyles"),Wl={radio:{isAdvanced:!1,name:"radio"},toggle:{isAdvanced:!1,name:"toggle"},select:{isAdvanced:!1,name:"select"},"side-by-side":{isAdvanced:!1,name:"side-by-side"},buttons:{isAdvanced:!0,name:"buttons"},"read-only":{isAdvanced:!0,name:"read-only",defaultPreviewMode:"subscribed"}};return Ta})();return oe})});var sr=wu(Za());window.og_settings={product_discounts:{UD729:{"3_1":["30.00","10%","$27.00"],"1_2":["30.00","20%","$24.00"]}}};var Wa=[{every:1,period:1},{every:1,period:2},{every:1,period:3},{every:2,period:3}],et={defaultFrequency:Wa[2],frequencies:[...Wa]},tt={showTooltip:!0,offerOptInLabel:"Subscribe
|
|
389
|
+
`),"getStyles"),Wl={radio:{isAdvanced:!1,name:"radio"},toggle:{isAdvanced:!1,name:"toggle"},select:{isAdvanced:!1,name:"select"},"side-by-side":{isAdvanced:!1,name:"side-by-side"},buttons:{isAdvanced:!0,name:"buttons"},"read-only":{isAdvanced:!0,name:"read-only",defaultPreviewMode:"subscribed"}};return Ta})();return oe})});var sr=wu(Za());window.og_settings={product_discounts:{UD729:{"3_1":["30.00","10%","$27.00"],"1_2":["30.00","20%","$24.00"]}}};var Wa=[{every:1,period:1},{every:1,period:2},{every:1,period:3},{every:2,period:3}],et={defaultFrequency:Wa[2],frequencies:[...Wa]},tt={showTooltip:!0,offerOptInLabel:"Subscribe to save",offerIncentiveText:"Save {{ogIncentive DiscountPercent}} when you subscribe",offerOptOutLabel:"Deliver one-time only",offerEveryLabel:"Deliver every",offerTooltipTrigger:"[?]",offerTooltipContent:"Seems this is a great subscription offering. Many fun details about this program exist.",optinButtonLabel:"\u2022",optoutButtonLabel:"\u2022",optinStatusOptedInLabel:"You're opted in!",optinStatusOptedOutLabel:"You're not opted in.",optinToggleLabel:"\u2022",upsellButtonLabel:"Add item to order on ",upsellButtonPrefix:"",upsellModalContent:"Some upsell modal content",upsellModalOptInLabel:"Subscribe",upsellModalOptOutLabel:"Purchase one time",upsellModalTitle:"Impulse Upsell",upsellModalConfirmLabel:"Ok",upsellModalCancelLabel:"Cancel",defaultFrequencyCopy:"(Recommended)"},Eu=[["Offers example",{name:"empty",selector:"og-offer:not([location])"},{name:"built-in",selector:'og-offer[location="initial"]',config:{settings:{...et,offerType:"radio"},textCopy:{...tt}}},{name:"checkbox",selector:'og-offer[location="initial-checkbox"]',config:{settings:{...et,offerType:"toggle"},textCopy:{...tt}}},{name:"select",selector:'og-offer[location="initial-select"]',config:{settings:{...et,offerType:"select"},textCopy:{...tt}}},{name:"side-by-side",selector:'og-offer[location="side-by-side"]',config:{settings:{...et,offerType:"side-by-side"},textCopy:{...tt},styles:{primaryColor:"navy",defaultColor:"pink"}}},{name:"read-only",selector:'og-offer[location="read-only"]',defaultPreviewMode:"subscribed",config:{settings:{...et,offerType:"read-only"},textCopy:{...tt},styles:{primaryColor:"navy",defaultColor:"pink"}}},{name:"buttons",selector:'og-offer[location="buttons"]',config:{settings:{...et,offerType:"buttons"},textCopy:{...tt},styles:{primaryColor:"navy",defaultColor:"pink"}}},{name:"first-test",selector:'og-offer[location="first-test"]',config:{settings:{...et,offerType:"toggle"},textCopy:{...tt,offerOptOutLabel:"1st offerOptOutLabel"}}},{name:"second-test no tooltip",selector:'og-offer[location="second-test"]',config:{settings:{...et,offerType:"radio"},textCopy:{...tt,showTooltip:!1,offerOptOutLabel:"2st offerOptOutLabel"}}},{name:"Select mode",selector:'og-offer[location="select1"]',markup:`
|
|
390
390
|
<og-optin-select>
|
|
391
391
|
<option value="optedOut">Buy one time</option>
|
|
392
392
|
<option value="2w" selected>2 weeks (recomended)</option>
|