@ordergroove/offers 2.27.23-alpha-PR-672-4.2 → 2.27.23
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 +8 -0
- package/dist/bundle-report.html +9 -9
- package/dist/examples.js +47 -43
- package/dist/examples.js.map +1 -1
- package/dist/offers.js +24 -24
- package/dist/offers.js.map +2 -2
- package/package.json +3 -3
- package/src/shopify/__tests__/shopifyReducer.spec.js +137 -271
- package/src/shopify/shopifyMiddleware.ts +15 -7
- package/src/shopify/shopifyReducer.js +34 -107
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.23](https://github.com/ordergroove/plush-toys/compare/@ordergroove/offers@2.27.22...@ordergroove/offers@2.27.23) (2022-10-05)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @ordergroove/offers
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [2.27.22](https://github.com/ordergroove/plush-toys/compare/@ordergroove/offers@2.27.21...@ordergroove/offers@2.27.22) (2022-09-28)
|
|
7
15
|
|
|
8
16
|
**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 ────────────────────────
|
|
2
|
+
dist/examples.js ─────────────────────────────────────────── 258.5kb ─ 100.0%
|
|
3
|
+
├ ../offers-templates/dist/main.js ──────────────────────── 249.0kb ── 96.3%
|
|
4
4
|
│ └ examples/index.js
|
|
5
5
|
└ examples/index.js ───────────────────────────────────────── 8.5kb ─── 3.3%
|
|
6
6
|
|
|
7
|
-
dist/offers.js ───────────────────────────────────────────── 123.
|
|
7
|
+
dist/offers.js ───────────────────────────────────────────── 123.2kb ─ 100.0%
|
|
8
8
|
├ src/components/Offer.js ─────────────────────────────────── 8.1kb ─── 6.6%
|
|
9
9
|
│ └ src/make-api.js
|
|
10
10
|
│ └ src/index.js
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
│ └ src/components/Price.js
|
|
24
24
|
│ └ src/make-api.js
|
|
25
25
|
│ └ src/index.js
|
|
26
|
-
├ src/shopify/shopifyMiddleware.ts ────────────────────────── 5.1kb ─── 4.
|
|
26
|
+
├ src/shopify/shopifyMiddleware.ts ────────────────────────── 5.1kb ─── 4.2%
|
|
27
27
|
│ └ src/index.js
|
|
28
28
|
├ node_modules/lit-html/lib/parts.js ──────────────────────── 5.0kb ─── 4.0%
|
|
29
29
|
│ └ node_modules/lit-html/lit-html.js
|
|
@@ -31,14 +31,14 @@
|
|
|
31
31
|
│ └ src/components/Price.js
|
|
32
32
|
│ └ src/make-api.js
|
|
33
33
|
│ └ src/index.js
|
|
34
|
-
├ src/shopify/shopifyReducer.js ───────────────────────────── 4.8kb ─── 3.8%
|
|
35
|
-
│ └ src/index.js
|
|
36
34
|
├ src/components/Modal.js ─────────────────────────────────── 4.7kb ─── 3.8%
|
|
37
35
|
│ └ src/make-api.js
|
|
38
36
|
│ └ src/index.js
|
|
39
37
|
├ src/components/Tooltip.js ───────────────────────────────── 4.4kb ─── 3.5%
|
|
40
38
|
│ └ src/make-api.js
|
|
41
39
|
│ └ src/index.js
|
|
40
|
+
├ src/shopify/shopifyReducer.js ───────────────────────────── 4.2kb ─── 3.4%
|
|
41
|
+
│ └ src/index.js
|
|
42
42
|
├ node_modules/lodash.memoize/index.js ────────────────────── 4.0kb ─── 3.2%
|
|
43
43
|
│ └ src/shopify/shopifyMiddleware.ts
|
|
44
44
|
│ └ src/index.js
|
|
@@ -149,7 +149,7 @@
|
|
|
149
149
|
│ └ src/components/Price.js
|
|
150
150
|
│ └ src/make-api.js
|
|
151
151
|
│ └ src/index.js
|
|
152
|
-
├ src/core/middleware.js ────────────────────────────────────
|
|
152
|
+
├ src/core/middleware.js ──────────────────────────────────── 951b ──── 0.8%
|
|
153
153
|
│ └ src/core/store.js
|
|
154
154
|
│ └ src/index.js
|
|
155
155
|
├ ../offers-live-editor/dist/offers-live-editor.js ────────── 921b ──── 0.7%
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
├ src/components/Text.js ──────────────────────────────────── 862b ──── 0.7%
|
|
165
165
|
│ └ src/make-api.js
|
|
166
166
|
│ └ src/index.js
|
|
167
|
-
├ src/core/localStorage.js ──────────────────────────────────
|
|
167
|
+
├ src/core/localStorage.js ────────────────────────────────── 810b ──── 0.6%
|
|
168
168
|
│ └ src/make-api.js
|
|
169
169
|
│ └ src/index.js
|
|
170
170
|
├ src/core/connect.js ─────────────────────────────────────── 794b ──── 0.6%
|
|
@@ -184,7 +184,7 @@
|
|
|
184
184
|
│ └ src/components/When.js
|
|
185
185
|
│ └ src/make-api.js
|
|
186
186
|
│ └ src/index.js
|
|
187
|
-
├ src/components/When.js ────────────────────────────────────
|
|
187
|
+
├ src/components/When.js ──────────────────────────────────── 564b ──── 0.4%
|
|
188
188
|
│ └ src/make-api.js
|
|
189
189
|
│ └ src/index.js
|
|
190
190
|
├ src/core/adapters.js ────────────────────────────────────── 555b ──── 0.4%
|
package/dist/examples.js
CHANGED
|
@@ -278,95 +278,99 @@ og-optin-button {
|
|
|
278
278
|
align-items: flex-start;
|
|
279
279
|
}
|
|
280
280
|
`}),Bl=x((l,r)=>{r.exports=`* {
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
281
|
+
--og-radio-width: 22px;
|
|
282
|
+
--og-radio-height: 22px;
|
|
283
|
+
--og-radio-margin: 0 5px 0 0;
|
|
284
|
+
--og-select-padding: 0.4em 2.8em 0.4em 0.5em;
|
|
285
|
+
--og-select-bg-color: transparent;
|
|
286
|
+
--og-select-border: 1px solid #090909;
|
|
287
|
+
--og-select-font-size: 12px;
|
|
288
|
+
--og-tooltip-family: Roboto, Helvetica, sans-serif;
|
|
289
|
+
--og-tooltip-size: 12px;
|
|
290
|
+
--og-tooltip-color: #090909;
|
|
291
|
+
--og-tooltip-background: #ffffff;
|
|
292
|
+
--og-tooltip-border: 1px solid #cdcdcd;
|
|
293
|
+
--og-tooltip-border-radius: 5px;
|
|
294
|
+
--og-tooltip-padding: 1em;
|
|
295
|
+
--og-tooltip-text-align: center;
|
|
296
|
+
--og-tooltip-placement: bottom;
|
|
297
|
+
--og-tooltip-box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
|
|
298
298
|
}
|
|
299
299
|
|
|
300
300
|
og-optout-button,
|
|
301
301
|
og-optin-button {
|
|
302
|
-
|
|
303
|
-
|
|
302
|
+
font-family: Roboto, Helvetica, sans-serif;
|
|
303
|
+
font-size: 16px;
|
|
304
304
|
}
|
|
305
305
|
|
|
306
306
|
og-optin-button {
|
|
307
|
-
|
|
307
|
+
font-weight: 700;
|
|
308
308
|
}
|
|
309
309
|
|
|
310
310
|
og-optin-button .btn,
|
|
311
311
|
og-optin-button button {
|
|
312
|
-
|
|
312
|
+
transform: scale(2);
|
|
313
313
|
}
|
|
314
314
|
|
|
315
315
|
og-tooltip {
|
|
316
|
-
|
|
316
|
+
vertical-align: middle;
|
|
317
317
|
}
|
|
318
318
|
|
|
319
319
|
.og-offer-incentive {
|
|
320
|
-
|
|
320
|
+
font-size: var(--og-secondary-font-size, 12px);
|
|
321
321
|
}
|
|
322
322
|
|
|
323
323
|
.og-offer-incentive svg {
|
|
324
|
-
|
|
324
|
+
transform: translateY(0.125em);
|
|
325
325
|
}
|
|
326
326
|
|
|
327
|
-
og-text[key=
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
327
|
+
og-text[key='offerEveryLabel'] {
|
|
328
|
+
font-weight: 700;
|
|
329
|
+
font-family: var(--og-global-family, Roboto, sans-serif);
|
|
330
|
+
color: var(--og-global-color, #090909);
|
|
331
|
+
font-size: var(--og-select-font-size, 12px);
|
|
332
|
+
margin: 1em 0 0.3em;
|
|
333
|
+
display: block;
|
|
334
334
|
}
|
|
335
335
|
|
|
336
336
|
og-optin-button {
|
|
337
|
-
|
|
337
|
+
font-weight: 700;
|
|
338
338
|
}
|
|
339
339
|
|
|
340
340
|
og-select-frequency {
|
|
341
|
-
|
|
341
|
+
border-radius: 0;
|
|
342
342
|
}
|
|
343
343
|
|
|
344
344
|
og-price {
|
|
345
|
-
|
|
345
|
+
display: inline-flex;
|
|
346
346
|
}
|
|
347
347
|
|
|
348
348
|
og-price[regular] {
|
|
349
|
-
|
|
350
|
-
|
|
349
|
+
font-size: 14px;
|
|
350
|
+
opacity: 67.5%;
|
|
351
351
|
}
|
|
352
352
|
|
|
353
353
|
og-price[subscription] {
|
|
354
|
-
|
|
355
|
-
|
|
354
|
+
color: var(--og-global-color, #090909);
|
|
355
|
+
font-weight: 700;
|
|
356
356
|
}
|
|
357
357
|
|
|
358
358
|
.italic {
|
|
359
|
-
|
|
359
|
+
font-style: italic;
|
|
360
360
|
}
|
|
361
361
|
|
|
362
362
|
.line-through {
|
|
363
|
-
|
|
363
|
+
text-decoration: line-through;
|
|
364
364
|
}
|
|
365
365
|
|
|
366
366
|
.og-regular-offer-content {
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
367
|
+
display: flex;
|
|
368
|
+
flex-direction: column;
|
|
369
|
+
gap: 1em;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
.og-regular-offer-content > div {
|
|
373
|
+
line-height: 1em;
|
|
370
374
|
}
|
|
371
375
|
`}),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
376
|
<og-optin-button default-frequency="`+u(i(r!=null?v(r,"every"):r,r))+"_"+u(i(r!=null?v(r,"period"):r,r))+`">
|