@ordergroove/offers 2.27.23-alpha-PR-677-14.38 → 2.28.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 +29 -0
- package/dist/bundle-report.html +2 -2
- package/dist/examples.js +47 -43
- package/dist/examples.js.map +1 -1
- package/dist/offers.js +2 -2
- package/dist/offers.js.map +1 -1
- package/package.json +3 -3
- package/src/core/utils.ts +1 -1
- package/src/shopify/shopifyReducer.js +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,35 @@
|
|
|
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.28.0](https://github.com/ordergroove/plush-toys/compare/@ordergroove/offers@2.27.23...@ordergroove/offers@2.28.0) (2022-10-07)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **offers:** Buttons only template should dispatch the selling plan on click ([69be723](https://github.com/ordergroove/plush-toys/commit/69be723ce07cfb296bebb5c8941a20d4ca31945c))
|
|
12
|
+
* **offers:** Buttons only template should use attribute as first option ([2c72b61](https://github.com/ordergroove/plush-toys/commit/2c72b6172880ab019f78e22c711a05154468176b))
|
|
13
|
+
* **offers:** elements with name=id not in form do not enter getOrCreateHidden ([0e59df5](https://github.com/ordergroove/plush-toys/commit/0e59df559733990ca4051162353c4e92555e59cf))
|
|
14
|
+
* **offers:** Reflect selling plan as default frequency ([82fdf2a](https://github.com/ordergroove/plush-toys/commit/82fdf2af9ea427c4191bd230c17710a8ccc45d29))
|
|
15
|
+
* **offers:** Set psdf on optins upon receive offer in shopify reducer ([6c2cfac](https://github.com/ordergroove/plush-toys/commit/6c2cfac3780933394de4ab5d9fe066a1d241c2af))
|
|
16
|
+
* **offers:** update offer element to convert default frequency to selling plan if selling plans ([542b64c](https://github.com/ordergroove/plush-toys/commit/542b64c85b13acd4cb26baad90d6aa30d62d4b6d))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Features
|
|
20
|
+
|
|
21
|
+
* **offers:** Local auto initialization now pulls configs from s-o-s ([15be9fb](https://github.com/ordergroove/plush-toys/commit/15be9fbf029ed52523d446775e710f9cbada70b8))
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## [2.27.23](https://github.com/ordergroove/plush-toys/compare/@ordergroove/offers@2.27.22...@ordergroove/offers@2.27.23) (2022-10-05)
|
|
28
|
+
|
|
29
|
+
**Note:** Version bump only for package @ordergroove/offers
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
6
35
|
## [2.27.22](https://github.com/ordergroove/plush-toys/compare/@ordergroove/offers@2.27.21...@ordergroove/offers@2.27.22) (2022-09-28)
|
|
7
36
|
|
|
8
37
|
**Note:** Version bump only for package @ordergroove/offers
|
package/dist/bundle-report.html
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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
|
|
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))+`">
|