@ordergroove/offers 2.27.12-alpha-PR-650-5.2 → 2.27.13-alpha-PR-652-2.0
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/dist/bundle-report.html +8 -8
- package/dist/examples.js +16 -23
- package/dist/examples.js.map +2 -2
- package/dist/offers.js +2 -3
- package/dist/offers.js.map +2 -2
- package/package.json +2 -2
- package/src/components/OptinStatus.js +0 -1
- package/src/components/SelectFrequency.js +8 -1
- package/src/shopify/shopifyMiddleware.ts +29 -9
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
|
|
package/dist/bundle-report.html
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
<pre id="esbuild-metadata">
|
|
2
|
-
dist/examples.js ─────────────────────────────────────────── 258.
|
|
3
|
-
├ ../offers-templates/dist/main.js ──────────────────────── 248.
|
|
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
|
|
|
7
|
-
dist/offers.js ───────────────────────────────────────────── 121.
|
|
8
|
-
├ src/components/Offer.js ─────────────────────────────────── 8.1kb ─── 6.
|
|
7
|
+
dist/offers.js ───────────────────────────────────────────── 121.8kb ─ 100.0%
|
|
8
|
+
├ src/components/Offer.js ─────────────────────────────────── 8.1kb ─── 6.6%
|
|
9
9
|
│ └ src/make-api.js
|
|
10
10
|
│ └ src/index.js
|
|
11
11
|
├ node_modules/redux/es/redux.js ──────────────────────────── 6.7kb ─── 5.5%
|
|
@@ -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.
|
|
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
|
|
@@ -74,13 +74,13 @@
|
|
|
74
74
|
│ └ src/components/Price.js
|
|
75
75
|
│ └ src/make-api.js
|
|
76
76
|
│ └ src/index.js
|
|
77
|
+
├ src/components/SelectFrequency.js ───────────────────────── 1.8kb ─── 1.5%
|
|
78
|
+
│ └ src/make-api.js
|
|
79
|
+
│ └ src/index.js
|
|
77
80
|
├ node_modules/lit-element/lit-element.js ─────────────────── 1.8kb ─── 1.5%
|
|
78
81
|
│ └ src/components/Price.js
|
|
79
82
|
│ └ src/make-api.js
|
|
80
83
|
│ └ src/index.js
|
|
81
|
-
├ src/components/SelectFrequency.js ───────────────────────── 1.7kb ─── 1.4%
|
|
82
|
-
│ └ src/make-api.js
|
|
83
|
-
│ └ src/index.js
|
|
84
84
|
├ src/components/Select.js ────────────────────────────────── 1.6kb ─── 1.3%
|
|
85
85
|
│ └ src/make-api.js
|
|
86
86
|
│ └ src/index.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"
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
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
|
|
483
|
-
<
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
<
|
|
487
|
-
|
|
488
|
-
|
|
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:
|
|
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>
|