@ordergroove/offers 2.26.0 → 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 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! Read the FAQ here. Promotion subject to change. |
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! Read the FAQ here. Promotion subject to change.",
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! Read the FAQ here. Promotion subject to change.",
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/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 and 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:`
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>