@ordergroove/offers 2.27.13-alpha-PR-652-3.1 → 2.27.13

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.13](https://github.com/ordergroove/plush-toys/compare/@ordergroove/offers@2.27.12...@ordergroove/offers@2.27.13) (2022-09-08)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **offers:** prevent radios from shrinking ([41cc197](https://github.com/ordergroove/plush-toys/commit/41cc1975a18a6e0131c9e9b96dc7a1ea80cdd1c0))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [2.27.12](https://github.com/ordergroove/plush-toys/compare/@ordergroove/offers@2.27.11...@ordergroove/offers@2.27.12) (2022-08-31)
7
18
 
8
19
 
@@ -1,11 +1,11 @@
1
1
  <pre id="esbuild-metadata">
2
- dist/examples.js ─────────────────────────────────────────── 258.1kb ─ 100.0%
3
- ├ ../offers-templates/dist/main.js ──────────────────────── 248.7kb ── 96.3%
2
+ dist/examples.js ─────────────────────────────────────────── 258.3kb ─ 100.0%
3
+ ├ ../offers-templates/dist/main.js ──────────────────────── 248.9kb ── 96.4%
4
4
  │ └ examples/index.js
5
5
  └ examples/index.js ───────────────────────────────────────── 8.4kb ─── 3.3%
6
6
 
7
- dist/offers.js ───────────────────────────────────────────── 122.3kb ─ 100.0%
8
- ├ src/components/Offer.js ─────────────────────────────────── 8.1kb ─── 6.6%
7
+ dist/offers.js ───────────────────────────────────────────── 121.7kb ─ 100.0%
8
+ ├ src/components/Offer.js ─────────────────────────────────── 8.1kb ─── 6.7%
9
9
  │ └ src/make-api.js
10
10
  │ └ src/index.js
11
11
  ├ node_modules/redux/es/redux.js ──────────────────────────── 6.7kb ─── 5.5%
@@ -23,7 +23,7 @@
23
23
  │ └ src/components/Price.js
24
24
  │ └ src/make-api.js
25
25
  │ └ src/index.js
26
- ├ node_modules/lit-html/lib/parts.js ──────────────────────── 5.0kb ─── 4.0%
26
+ ├ node_modules/lit-html/lib/parts.js ──────────────────────── 5.0kb ─── 4.1%
27
27
  │ └ node_modules/lit-html/lit-html.js
28
28
  │ └ node_modules/lit-element/lit-element.js
29
29
  │ └ src/components/Price.js
@@ -37,12 +37,12 @@
37
37
  ├ src/components/Tooltip.js ───────────────────────────────── 4.4kb ─── 3.6%
38
38
  │ └ src/make-api.js
39
39
  │ └ src/index.js
40
- ├ src/shopify/shopifyReducer.js ───────────────────────────── 4.0kb ─── 3.3%
41
- │ └ src/index.js
42
40
  ├ node_modules/lodash.memoize/index.js ────────────────────── 4.0kb ─── 3.3%
43
41
  │ └ src/shopify/shopifyMiddleware.ts
44
42
  │ └ src/index.js
45
- ├ src/core/actions.js ─────────────────────────────────────── 3.7kb ─── 3.0%
43
+ ├ src/shopify/shopifyReducer.js ───────────────────────────── 3.7kb ─── 3.1%
44
+ │ └ src/index.js
45
+ ├ src/core/actions.js ─────────────────────────────────────── 3.7kb ─── 3.1%
46
46
  │ └ src/shopify/shopifyBootstrap.ts
47
47
  │ └ src/index.js
48
48
  ├ src/make-api.js ─────────────────────────────────────────── 2.6kb ─── 2.1%
@@ -53,7 +53,7 @@
53
53
  ├ src/components/UpsellModal.js ───────────────────────────── 2.4kb ─── 2.0%
54
54
  │ └ src/make-api.js
55
55
  │ └ src/index.js
56
- ├ src/components/OptinStatus.js ───────────────────────────── 2.4kb ─── 1.9%
56
+ ├ src/components/OptinStatus.js ───────────────────────────── 2.4kb ─── 2.0%
57
57
  │ └ src/make-api.js
58
58
  │ └ src/index.js
59
59
  ├ src/core/actions-preview.js ─────────────────────────────── 2.2kb ─── 1.8%
@@ -68,23 +68,23 @@
68
68
  ├ src/components/IncentiveText.js ─────────────────────────── 2.0kb ─── 1.6%
69
69
  │ └ src/make-api.js
70
70
  │ └ src/index.js
71
- ├ src/components/SelectFrequency.js ───────────────────────── 1.9kb ─── 1.6%
72
- │ └ src/make-api.js
73
- │ └ src/index.js
74
71
  ├ node_modules/lit-html/lib/template.js ───────────────────── 1.8kb ─── 1.5%
75
72
  │ └ node_modules/lit-html/lit-html.js
76
73
  │ └ node_modules/lit-element/lit-element.js
77
74
  │ └ src/components/Price.js
78
75
  │ └ src/make-api.js
79
76
  │ └ src/index.js
80
- ├ node_modules/lit-element/lit-element.js ─────────────────── 1.8kb ─── 1.4%
77
+ ├ node_modules/lit-element/lit-element.js ─────────────────── 1.8kb ─── 1.5%
81
78
  │ └ src/components/Price.js
82
79
  │ └ src/make-api.js
83
80
  │ └ 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
87
- ├ src/components/FrequencyStatus.js ───────────────────────── 1.6kb ─── 1.3%
87
+ ├ src/components/FrequencyStatus.js ───────────────────────── 1.5kb ─── 1.3%
88
88
  │ └ src/make-api.js
89
89
  │ └ src/index.js
90
90
  ├ src/components/OptinToggle.js ───────────────────────────── 1.5kb ─── 1.2%
@@ -170,7 +170,7 @@
170
170
  ├ src/core/connect.js ─────────────────────────────────────── 794b ──── 0.6%
171
171
  │ └ src/make-api.js
172
172
  │ └ src/index.js
173
- ├ src/components/OptinButton.js ───────────────────────────── 690b ──── 0.6%
173
+ ├ src/components/OptinButton.js ───────────────────────────── 651b ──── 0.5%
174
174
  │ └ src/make-api.js
175
175
  │ └ src/index.js
176
176
  ├ node_modules/lit-html/lib/template-result.js ────────────── 639b ──── 0.5%
package/dist/examples.js CHANGED
@@ -250,6 +250,7 @@ button {
250
250
  }
251
251
  .og-regular-offer-content {
252
252
  display: flex;
253
+ flex-direction: row;
253
254
  gap: 1.5em;
254
255
  }
255
256
  .og-select-frequency,
@@ -264,7 +265,6 @@ og-tooltip svg {
264
265
  og-optin-button,
265
266
  og-optout-button {
266
267
  display: flex;
267
- align-items: center;
268
268
  gap: 5px;
269
269
  }
270
270
 
@@ -334,7 +334,6 @@ og-text[key="offerEveryLabel"] {
334
334
  }
335
335
 
336
336
  og-optin-button {
337
- margin-top: 1em;
338
337
  font-weight: 700;
339
338
  }
340
339
 
@@ -362,7 +361,14 @@ og-price[subscription] {
362
361
 
363
362
  .line-through {
364
363
  text-decoration: line-through;
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">
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">
366
372
  <og-optin-button default-frequency="`+u(i(r!=null?v(r,"every"):r,r))+"_"+u(i(r!=null?v(r,"period"):r,r))+`">
367
373
  <span slot='default'>
368
374
  `+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}}}))+`
@@ -468,23 +474,24 @@ og-price[subscription] {
468
474
  `+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}}}))+`
469
475
  </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>
470
476
  `+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}}}))+`
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>
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>
475
481
  `},"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">
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:"")+`
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>
484
491
  </div>
485
492
  <div style="margin-left: 2.2em">
486
493
  `+((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">
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}}}))+`
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}}}))+`
488
495
  </og-text>
489
496
  `+((t=l.invokePartial(s(o,"selectFrequency"),r,{name:"selectFrequency",data:a,indent:" ",helpers:e,partials:o,decorators:l.decorators}))!=null?t:"")+` </div>
490
497
  </og-when>
@@ -509,7 +516,7 @@ og-price[subscription] {
509
516
  `},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))+`">
510
517
  `+((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>
511
518
  `},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">
512
- <div class="og-regular-offer-content">
519
+ <div class="og-regular-offer-content" >
513
520
  <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>
514
521
  <div class="og-optin-buttons">
515
522
  <div class="og-optin-button-item">