@ordergroove/offers 2.27.12-alpha-PR-650-6.3 → 2.27.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/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.27.12](https://github.com/ordergroove/plush-toys/compare/@ordergroove/offers@2.27.11...@ordergroove/offers@2.27.12) (2022-08-31)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **offers:** SOUR-3479 Shopify app Regression: Offer appearing on ineligible, out of stock variants ([647b5a6](https://github.com/ordergroove/plush-toys/commit/647b5a6d8eb2c3d2ceb1196b2ca16533a9ae158e))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [2.27.11](https://github.com/ordergroove/plush-toys/compare/@ordergroove/offers@2.27.10...@ordergroove/offers@2.27.11) (2022-08-25)
7
18
 
8
19
 
@@ -1,6 +1,6 @@
1
1
  <pre id="esbuild-metadata">
2
- dist/examples.js ─────────────────────────────────────────── 258.3kb ─ 100.0%
3
- ├ ../offers-templates/dist/main.js ──────────────────────── 248.9kb ── 96.4%
2
+ dist/examples.js ─────────────────────────────────────────── 258.1kb ─ 100.0%
3
+ ├ ../offers-templates/dist/main.js ──────────────────────── 248.7kb ── 96.3%
4
4
  │ └ examples/index.js
5
5
  └ examples/index.js ───────────────────────────────────────── 8.4kb ─── 3.3%
6
6
 
@@ -29,7 +29,7 @@
29
29
  │ └ src/components/Price.js
30
30
  │ └ src/make-api.js
31
31
  │ └ src/index.js
32
- ├ src/shopify/shopifyMiddleware.ts ────────────────────────── 4.8kb ─── 4.0%
32
+ ├ src/shopify/shopifyMiddleware.ts ────────────────────────── 4.9kb ─── 4.0%
33
33
  │ └ src/index.js
34
34
  ├ src/components/Modal.js ─────────────────────────────────── 4.7kb ─── 3.9%
35
35
  │ └ src/make-api.js
package/dist/examples.js CHANGED
@@ -250,7 +250,6 @@ button {
250
250
  }
251
251
  .og-regular-offer-content {
252
252
  display: flex;
253
- flex-direction: row;
254
253
  gap: 1.5em;
255
254
  }
256
255
  .og-select-frequency,
@@ -265,6 +264,7 @@ og-tooltip svg {
265
264
  og-optin-button,
266
265
  og-optout-button {
267
266
  display: flex;
267
+ align-items: center;
268
268
  gap: 5px;
269
269
  }
270
270
 
@@ -334,6 +334,7 @@ og-text[key="offerEveryLabel"] {
334
334
  }
335
335
 
336
336
  og-optin-button {
337
+ margin-top: 1em;
337
338
  font-weight: 700;
338
339
  }
339
340
 
@@ -361,14 +362,7 @@ og-price[subscription] {
361
362
 
362
363
  .line-through {
363
364
  text-decoration: line-through;
364
- }
365
-
366
- .og-regular-offer-content {
367
- display: flex;
368
- flex-direction: column;
369
- gap: 1em;
370
- }
371
- `}),Ta={};ro(Ta,{availableTemplates:()=>Wl,getMarkup:()=>La,getStyles:()=>Jl});var ue=ir(Qr());ue.default.registerHelper("case",bo()),ue.default.registerHelper("default",xo()),ue.default.registerHelper("frequencyText",Po()),ue.default.registerHelper("ifEqual",wo()),ue.default.registerHelper("switch",Eo()),ue.default.registerHelper("withIncentives",_o()),ue.default.registerPartial("buttons",ue.default.template({"1":function(l,r,e,o,a,t,n){var s,i=l.lambda,u=l.escapeExpression,f=r??(l.nullContext||{}),h=l.hooks.helperMissing,v=l.lookupProperty||function(b,y){if(Object.prototype.hasOwnProperty.call(b,y))return b[y]};return` <div class="og-optin-button-item">
365
+ }`}),Ta={};ro(Ta,{availableTemplates:()=>Wl,getMarkup:()=>La,getStyles:()=>Jl});var ue=ir(Qr());ue.default.registerHelper("case",bo()),ue.default.registerHelper("default",xo()),ue.default.registerHelper("frequencyText",Po()),ue.default.registerHelper("ifEqual",wo()),ue.default.registerHelper("switch",Eo()),ue.default.registerHelper("withIncentives",_o()),ue.default.registerPartial("buttons",ue.default.template({"1":function(l,r,e,o,a,t,n){var s,i=l.lambda,u=l.escapeExpression,f=r??(l.nullContext||{}),h=l.hooks.helperMissing,v=l.lookupProperty||function(b,y){if(Object.prototype.hasOwnProperty.call(b,y))return b[y]};return` <div class="og-optin-button-item">
372
366
  <og-optin-button default-frequency="`+u(i(r!=null?v(r,"every"):r,r))+"_"+u(i(r!=null?v(r,"period"):r,r))+`">
373
367
  <span slot='default'>
374
368
  `+u((v(e,"frequencyText")||r&&v(r,"frequencyText")||h).call(f,r,{name:"frequencyText",hash:{},data:a,loc:{start:{line:23,column:20},end:{line:23,column:42}}}))+`
@@ -474,24 +468,23 @@ og-price[subscription] {
474
468
  `+l.escapeExpression((n(e,"withIncentives")||r&&n(r,"withIncentives")||l.hooks.helperMissing).call(r??(l.nullContext||{}),(t=r!=null?n(r,"textCopy"):r)!=null?n(t,"offerOptInLabel"):t,{name:"withIncentives",hash:{},data:a,loc:{start:{line:2,column:4},end:{line:2,column:47}}}))+`
475
469
  </og-optin-button>`},useData:!0})),ue.default.registerPartial("optoutButton",ue.default.template({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`<og-optout-button>
476
470
  `+l.escapeExpression((n(e,"withIncentives")||r&&n(r,"withIncentives")||l.hooks.helperMissing).call(r??(l.nullContext||{}),(t=r!=null?n(r,"textCopy"):r)!=null?n(t,"offerOptOutLabel"):t,{name:"withIncentives",hash:{},data:a,loc:{start:{line:2,column:4},end:{line:2,column:48}}}))+`
477
- </og-optout-button>`},useData:!0})),ue.default.registerPartial("radio",ue.default.template({"1":function(l,r,e,o,a){var t,n=r??(l.nullContext||{}),s=l.lookupProperty||function(i,u){if(Object.prototype.hasOwnProperty.call(i,u))return i[u]};return" <og-tooltip "+((t=s(e,"if").call(n,(t=r!=null?s(r,"styles"):r)!=null?s(t,"tooltipPlacement"):t,{name:"if",hash:{},fn:l.program(2,a,0),inverse:l.noop,data:a,loc:{start:{line:13,column:24},end:{line:13,column:102}}}))!=null?t:"")+`>
478
- <span slot="trigger">`+((t=l.invokePartial(s(o,"tooltipSvg"),r,{name:"tooltipSvg",data:a,helpers:e,partials:o,decorators:l.decorators}))!=null?t:"")+`</span>
479
- <span slot="content">`+l.escapeExpression((s(e,"withIncentives")||r&&s(r,"withIncentives")||l.hooks.helperMissing).call(n,(t=r!=null?s(r,"textCopy"):r)!=null?s(t,"offerTooltipContent"):t,{name:"withIncentives",hash:{},data:a,loc:{start:{line:15,column:37},end:{line:15,column:84}}}))+`</span>
480
- </og-tooltip>
471
+ </og-optout-button>`},useData:!0})),ue.default.registerPartial("radio",ue.default.template({"1":function(l,r,e,o,a){var t,n=r??(l.nullContext||{}),s=l.lookupProperty||function(i,u){if(Object.prototype.hasOwnProperty.call(i,u))return i[u]};return" <og-tooltip "+((t=s(e,"if").call(n,(t=r!=null?s(r,"styles"):r)!=null?s(t,"tooltipPlacement"):t,{name:"if",hash:{},fn:l.program(2,a,0),inverse:l.noop,data:a,loc:{start:{line:12,column:20},end:{line:12,column:98}}}))!=null?t:"")+`>
472
+ <span slot="trigger">`+((t=l.invokePartial(s(o,"tooltipSvg"),r,{name:"tooltipSvg",data:a,helpers:e,partials:o,decorators:l.decorators}))!=null?t:"")+`</span>
473
+ <span slot="content">`+l.escapeExpression((s(e,"withIncentives")||r&&s(r,"withIncentives")||l.hooks.helperMissing).call(n,(t=r!=null?s(r,"textCopy"):r)!=null?s(t,"offerTooltipContent"):t,{name:"withIncentives",hash:{},data:a,loc:{start:{line:14,column:33},end:{line:14,column:80}}}))+`</span>
474
+ </og-tooltip>
481
475
  `},"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'placement="'+l.escapeExpression(l.lambda((t=r!=null?n(r,"styles"):r)!=null?n(t,"tooltipPlacement"):t,r))+'" '},compiler:[8,">= 4.3.0"],main:function(l,r,e,o,a){var t,n=r??(l.nullContext||{}),s=l.lookupProperty||function(i,u){if(Object.prototype.hasOwnProperty.call(i,u))return i[u]};return`<og-when test="regularEligible">
482
- <div class="og-regular-offer-content">
483
- <div>
484
- `+((t=l.invokePartial(s(o,"optoutButton"),r,{name:"optoutButton",data:a,indent:" ",helpers:e,partials:o,decorators:l.decorators}))!=null?t:"")+` <og-price regular></og-price>
485
- </div>
486
- <div>
487
- `+((t=l.invokePartial(s(o,"optinButton"),r,{name:"optinButton",data:a,indent:" ",helpers:e,partials:o,decorators:l.decorators}))!=null?t:"")+` <og-price regular class="italic line-through"></og-price>
488
- <og-price subscription></og-price>
489
-
490
- `+((t=s(e,"if").call(n,(t=r!=null?s(r,"textCopy"):r)!=null?s(t,"showTooltip"):t,{name:"if",hash:{},fn:l.program(1,a,0),inverse:l.noop,data:a,loc:{start:{line:12,column:12},end:{line:17,column:19}}}))!=null?t:"")+` </div>
476
+ <div>
477
+ `+((t=l.invokePartial(s(o,"optoutButton"),r,{name:"optoutButton",data:a,indent:" ",helpers:e,partials:o,decorators:l.decorators}))!=null?t:"")+` <og-price regular></og-price>
478
+ </div>
479
+ <div>
480
+ `+((t=l.invokePartial(s(o,"optinButton"),r,{name:"optinButton",data:a,indent:" ",helpers:e,partials:o,decorators:l.decorators}))!=null?t:"")+` <og-price regular class="italic line-through"></og-price>
481
+ <og-price subscription></og-price>
482
+
483
+ `+((t=s(e,"if").call(n,(t=r!=null?s(r,"textCopy"):r)!=null?s(t,"showTooltip"):t,{name:"if",hash:{},fn:l.program(1,a,0),inverse:l.noop,data:a,loc:{start:{line:11,column:8},end:{line:16,column:15}}}))!=null?t:"")+`
491
484
  </div>
492
485
  <div style="margin-left: 2.2em">
493
486
  `+((t=l.invokePartial(s(o,"offerIncentive"),r,{name:"offerIncentive",data:a,indent:" ",helpers:e,partials:o,decorators:l.decorators}))!=null?t:"")+` <og-text key="offerEveryLabel">
494
- `+l.escapeExpression((s(e,"withIncentives")||r&&s(r,"withIncentives")||l.hooks.helperMissing).call(n,(t=r!=null?s(r,"textCopy"):r)!=null?s(t,"offerEveryLabel"):t,{name:"withIncentives",hash:{},data:a,loc:{start:{line:23,column:12},end:{line:23,column:55}}}))+`
487
+ `+l.escapeExpression((s(e,"withIncentives")||r&&s(r,"withIncentives")||l.hooks.helperMissing).call(n,(t=r!=null?s(r,"textCopy"):r)!=null?s(t,"offerEveryLabel"):t,{name:"withIncentives",hash:{},data:a,loc:{start:{line:22,column:12},end:{line:22,column:55}}}))+`
495
488
  </og-text>
496
489
  `+((t=l.invokePartial(s(o,"selectFrequency"),r,{name:"selectFrequency",data:a,indent:" ",helpers:e,partials:o,decorators:l.decorators}))!=null?t:"")+` </div>
497
490
  </og-when>
@@ -516,7 +509,7 @@ og-price[subscription] {
516
509
  `},compiler:[8,">= 4.3.0"],main:function(l,r,e,o,a,t,n){var s,i=l.lookupProperty||function(u,f){if(Object.prototype.hasOwnProperty.call(u,f))return u[f]};return'<og-select-frequency default-text="'+l.escapeExpression(l.lambda((s=r!=null?i(r,"textCopy"):r)!=null?i(s,"defaultFrequencyCopy"):s,r))+`">
517
510
  `+((s=i(e,"each").call(r??(l.nullContext||{}),(s=r!=null?i(r,"settings"):r)!=null?i(s,"frequencies"):s,{name:"each",hash:{},fn:l.program(1,a,0,t,n),inverse:l.noop,data:a,loc:{start:{line:2,column:2},end:{line:7,column:11}}}))!=null?s:"")+`</og-select-frequency>
518
511
  `},useData:!0,useDepths:!0})),ue.default.registerPartial("side-by-side",ue.default.template({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`<og-when test="regularEligible">
519
- <div class="og-regular-offer-content" >
512
+ <div class="og-regular-offer-content">
520
513
  <div class="og-optout-buttons">`+((t=l.invokePartial(n(o,"optoutButton"),r,{name:"optoutButton",data:a,helpers:e,partials:o,decorators:l.decorators}))!=null?t:"")+`</div>
521
514
  <div class="og-optin-buttons">
522
515
  <div class="og-optin-button-item">