@ordergroove/offers 2.27.8-alpha-PR-645-10.27 → 2.27.8
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 +12 -12
- package/dist/examples.js +8 -7
- package/dist/examples.js.map +2 -2
- package/dist/offers.js +45 -49
- package/dist/offers.js.map +2 -2
- package/package.json +3 -3
- package/src/components/OptinSelect.js +2 -15
- package/src/shopify/__tests__/shopifyReducer.spec.js +22 -19
- package/src/shopify/shopifyMiddleware.ts +3 -21
- package/src/shopify/shopifyReducer.js +7 -10
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.8](https://github.com/ordergroove/plush-toys/compare/@ordergroove/offers@2.27.7...@ordergroove/offers@2.27.8) (2022-08-22)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **offers:** Update OptinSelect to use optedOut option from template ([04c5bf2](https://github.com/ordergroove/plush-toys/commit/04c5bf2ba12350b718a9e3617c39dd07c0f2fd69))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [2.27.7](https://github.com/ordergroove/plush-toys/compare/@ordergroove/offers@2.27.6...@ordergroove/offers@2.27.7) (2022-08-15)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @ordergroove/offers
|
package/dist/bundle-report.html
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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.
|
|
7
|
+
dist/offers.js ───────────────────────────────────────────── 121.1kb ─ 100.0%
|
|
8
8
|
├ src/components/Offer.js ─────────────────────────────────── 8.1kb ─── 6.7%
|
|
9
9
|
│ └ src/make-api.js
|
|
10
10
|
│ └ src/index.js
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
├ src/components/Modal.js ─────────────────────────────────── 4.7kb ─── 3.9%
|
|
33
33
|
│ └ src/make-api.js
|
|
34
34
|
│ └ src/index.js
|
|
35
|
-
├ src/shopify/shopifyMiddleware.ts ────────────────────────── 4.
|
|
35
|
+
├ src/shopify/shopifyMiddleware.ts ────────────────────────── 4.6kb ─── 3.8%
|
|
36
36
|
│ └ src/index.js
|
|
37
37
|
├ src/components/Tooltip.js ───────────────────────────────── 4.4kb ─── 3.6%
|
|
38
38
|
│ └ src/make-api.js
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
├ src/core/actions.js ─────────────────────────────────────── 3.7kb ─── 3.1%
|
|
44
44
|
│ └ src/shopify/shopifyBootstrap.ts
|
|
45
45
|
│ └ src/index.js
|
|
46
|
-
├ src/shopify/shopifyReducer.js ───────────────────────────── 3.
|
|
46
|
+
├ src/shopify/shopifyReducer.js ───────────────────────────── 3.4kb ─── 2.8%
|
|
47
47
|
│ └ src/index.js
|
|
48
|
-
├ src/make-api.js ─────────────────────────────────────────── 2.6kb ─── 2.
|
|
48
|
+
├ src/make-api.js ─────────────────────────────────────────── 2.6kb ─── 2.2%
|
|
49
49
|
│ └ src/index.js
|
|
50
50
|
├ src/core/api.js ─────────────────────────────────────────── 2.5kb ─── 2.1%
|
|
51
51
|
│ └ src/core/reducer.js
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
│ └ src/components/Offer.js
|
|
61
61
|
│ └ src/make-api.js
|
|
62
62
|
│ └ src/index.js
|
|
63
|
-
├ node_modules/lit-html/lib/shady-render.js ───────────────── 2.1kb ─── 1.
|
|
63
|
+
├ node_modules/lit-html/lib/shady-render.js ───────────────── 2.1kb ─── 1.8%
|
|
64
64
|
│ └ node_modules/lit-element/lit-element.js
|
|
65
65
|
│ └ src/components/Price.js
|
|
66
66
|
│ └ src/make-api.js
|
|
@@ -84,15 +84,15 @@
|
|
|
84
84
|
├ src/components/Select.js ────────────────────────────────── 1.6kb ─── 1.3%
|
|
85
85
|
│ └ src/make-api.js
|
|
86
86
|
│ └ src/index.js
|
|
87
|
-
├ src/components/OptinSelect.js ───────────────────────────── 1.5kb ─── 1.3%
|
|
88
|
-
│ └ src/make-api.js
|
|
89
|
-
│ └ src/index.js
|
|
90
87
|
├ src/components/FrequencyStatus.js ───────────────────────── 1.5kb ─── 1.3%
|
|
91
88
|
│ └ src/make-api.js
|
|
92
89
|
│ └ src/index.js
|
|
93
90
|
├ src/components/OptinToggle.js ───────────────────────────── 1.5kb ─── 1.2%
|
|
94
91
|
│ └ src/make-api.js
|
|
95
92
|
│ └ src/index.js
|
|
93
|
+
├ src/components/OptinSelect.js ───────────────────────────── 1.4kb ─── 1.1%
|
|
94
|
+
│ └ src/make-api.js
|
|
95
|
+
│ └ src/index.js
|
|
96
96
|
├ src/core/selectors.js ───────────────────────────────────── 1.3kb ─── 1.1%
|
|
97
97
|
│ └ src/shopify/shopifyMiddleware.ts
|
|
98
98
|
│ └ src/index.js
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
│ └ src/core/selectors.js
|
|
101
101
|
│ └ src/shopify/shopifyMiddleware.ts
|
|
102
102
|
│ └ src/index.js
|
|
103
|
-
├ src/core/resolveProperties.js ───────────────────────────── 1.3kb ─── 1.
|
|
103
|
+
├ src/core/resolveProperties.js ───────────────────────────── 1.3kb ─── 1.1%
|
|
104
104
|
│ └ src/components/Price.js
|
|
105
105
|
│ └ src/make-api.js
|
|
106
106
|
│ └ src/index.js
|
|
@@ -217,7 +217,7 @@
|
|
|
217
217
|
│ └ src/components/FrequencyStatus.js
|
|
218
218
|
│ └ src/make-api.js
|
|
219
219
|
│ └ src/index.js
|
|
220
|
-
├ node_modules/lit-html/lib/default-template-processor.js ─── 311b ──── 0.
|
|
220
|
+
├ node_modules/lit-html/lib/default-template-processor.js ─── 311b ──── 0.3%
|
|
221
221
|
│ └ node_modules/lit-html/lit-html.js
|
|
222
222
|
│ └ node_modules/lit-element/lit-element.js
|
|
223
223
|
│ └ src/components/Price.js
|
package/dist/examples.js
CHANGED
|
@@ -491,17 +491,18 @@ og-price[subscription] {
|
|
|
491
491
|
`+((t=l.invokePartial(s(o,"iuTemplate"),r,{name:"iuTemplate",data:a,helpers:e,partials:o,decorators:l.decorators}))!=null?t:"")},usePartial:!0,useData:!0})),ue.default.registerPartial("read-only",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="subscribed">
|
|
492
492
|
`+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,"offerEveryLabel"):t,{name:"withIncentives",hash:{},data:a,loc:{start:{line:2,column:4},end:{line:2,column:47}}}))+`
|
|
493
493
|
<og-frequency-status></og-frequency-status>
|
|
494
|
-
</og-when>`},useData:!0})),ue.default.registerPartial("select",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' <option value="'+u(i(r!=null?v(r,"every"):r,r))+"_"+u(i(r!=null?v(r,"period"):r,r))+'" '+((s=(v(e,"ifEqual")||r&&v(r,"ifEqual")||h).call(f,r,(s=n[1]!=null?v(n[1],"settings"):n[1])!=null?v(s,"defaultFrequency"):s,{name:"ifEqual",hash:{},fn:l.program(2,a,0,t,n),inverse:l.noop,data:a,loc:{start:{line:
|
|
495
|
-
`+u((v(e,"frequencyText")||r&&v(r,"frequencyText")||h).call(f,r,{name:"frequencyText",hash:{},data:a,loc:{start:{line:
|
|
494
|
+
</og-when>`},useData:!0})),ue.default.registerPartial("select",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' <option value="'+u(i(r!=null?v(r,"every"):r,r))+"_"+u(i(r!=null?v(r,"period"):r,r))+'" '+((s=(v(e,"ifEqual")||r&&v(r,"ifEqual")||h).call(f,r,(s=n[1]!=null?v(n[1],"settings"):n[1])!=null?v(s,"defaultFrequency"):s,{name:"ifEqual",hash:{},fn:l.program(2,a,0,t,n),inverse:l.noop,data:a,loc:{start:{line:6,column:55},end:{line:7,column:24}}}))!=null?s:"")+`>
|
|
495
|
+
`+u((v(e,"frequencyText")||r&&v(r,"frequencyText")||h).call(f,r,{name:"frequencyText",hash:{},data:a,loc:{start:{line:8,column:12},end:{line:8,column:34}}}))+((s=(v(e,"ifEqual")||r&&v(r,"ifEqual")||h).call(f,r,(s=n[1]!=null?v(n[1],"settings"):n[1])!=null?v(s,"defaultFrequency"):s,{name:"ifEqual",hash:{},fn:l.program(4,a,0,t,n),inverse:l.noop,data:a,loc:{start:{line:8,column:34},end:{line:9,column:60}}}))!=null?s:"")+`
|
|
496
496
|
</option>
|
|
497
497
|
`},"2":function(l,r,e,o,a){return`selected="selected"
|
|
498
498
|
`},"4":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`
|
|
499
|
-
`+l.escapeExpression(l.lambda((s=n[1]!=null?i(n[1],"textCopy"):n[1])!=null?i(s,"defaultFrequencyCopy"):s,r))},compiler:[8,">= 4.3.0"],main:function(l,r,e,o,a,t,n){var s,i=r??(l.nullContext||{}),u=l.lookupProperty||function(
|
|
500
|
-
`+
|
|
499
|
+
`+l.escapeExpression(l.lambda((s=n[1]!=null?i(n[1],"textCopy"):n[1])!=null?i(s,"defaultFrequencyCopy"):s,r))},compiler:[8,">= 4.3.0"],main:function(l,r,e,o,a,t,n){var s,i=r??(l.nullContext||{}),u=l.escapeExpression,f=l.lookupProperty||function(h,v){if(Object.prototype.hasOwnProperty.call(h,v))return h[v]};return`<og-when test="regularEligible">
|
|
500
|
+
`+u((f(e,"withIncentives")||r&&f(r,"withIncentives")||l.hooks.helperMissing).call(i,(s=r!=null?f(r,"textCopy"):r)!=null?f(s,"offerEveryLabel"):s,{name:"withIncentives",hash:{},data:a,loc:{start:{line:2,column:4},end:{line:2,column:47}}}))+`
|
|
501
501
|
<og-optin-select>
|
|
502
|
-
|
|
503
|
-
`+((s=
|
|
504
|
-
`+((s=l.invokePartial(
|
|
502
|
+
<option value="optedOut">`+u(l.lambda((s=r!=null?f(r,"textCopy"):r)!=null?f(s,"offerOptOutLabel"):s,r))+`</option>
|
|
503
|
+
`+((s=f(e,"each").call(i,(s=r!=null?f(r,"settings"):r)!=null?f(s,"frequencies"):s,{name:"each",hash:{},fn:l.program(1,a,0,t,n),inverse:l.noop,data:a,loc:{start:{line:5,column:8},end:{line:11,column:17}}}))!=null?s:"")+` </og-optin-select>
|
|
504
|
+
`+((s=l.invokePartial(f(o,"tooltip"),r,{name:"tooltip",data:a,indent:" ",helpers:e,partials:o,decorators:l.decorators}))!=null?s:"")+`</og-when>
|
|
505
|
+
`+((s=l.invokePartial(f(o,"iuTemplate"),r,{name:"iuTemplate",data:a,helpers:e,partials:o,decorators:l.decorators}))!=null?s:"")},usePartial:!0,useData:!0,useDepths:!0})),ue.default.registerPartial("selectFrequency",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' <option value="'+u(i(r!=null?v(r,"every"):r,r))+"_"+u(i(r!=null?v(r,"period"):r,r))+'" '+((s=(v(e,"ifEqual")||r&&v(r,"ifEqual")||h).call(f,r,(s=n[1]!=null?v(n[1],"settings"):n[1])!=null?v(s,"defaultFrequency"):s,{name:"ifEqual",hash:{},fn:l.program(2,a,0,t,n),inverse:l.noop,data:a,loc:{start:{line:3,column:49},end:{line:4,column:16}}}))!=null?s:"")+`>
|
|
505
506
|
`+u((v(e,"frequencyText")||r&&v(r,"frequencyText")||h).call(f,r,{name:"frequencyText",hash:{},data:a,loc:{start:{line:5,column:4},end:{line:5,column:26}}}))+`
|
|
506
507
|
</option>
|
|
507
508
|
`},"2":function(l,r,e,o,a){return`selected="selected"
|