@ordergroove/offers 2.24.2-alpha-PR-571-9.1 → 2.24.2

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/examples/index.js CHANGED
@@ -31,11 +31,10 @@ const settings = {
31
31
 
32
32
  const textCopy = {
33
33
  showTooltip: true,
34
- offerOptInLabel: 'Subscribe and Save',
35
- offerIncentiveText: 'Save {{ogIncentive DiscountPercent}} when you subscribe',
36
- offerOptOutLabel: 'Deliver one-time only',
37
- offerEveryLabel: 'Deliver every',
38
- offerTooltipTrigger: '[?]',
34
+ offerOptInLabel: 'Subscribe and SAVE {{ogIncentive DiscountAmount 10}}',
35
+ offerOptOutLabel: 'Purchase one time',
36
+ offerEveryLabel: 'Ships Every:',
37
+ offerTooltipTrigger: 'Hover for additional info',
39
38
  offerTooltipContent: 'Seems this is a great subscription offering. Many fun details about this program exist.',
40
39
  optinButtonLabel: '•',
41
40
  optoutButtonLabel: '•',
@@ -326,11 +325,7 @@ Add item to order on
326
325
  {
327
326
  name: 'Tooltip',
328
327
  selector: 'og-offer[location="tooltip-placement"]',
329
- markup: [
330
- ['top-left', 'top', 'top-right'],
331
- ['left', '', 'right'],
332
- ['bottom-left', 'bottom', 'bottom-right']
333
- ]
328
+ markup: [['top-left', 'top', 'top-right'], ['left', '', 'right'], ['bottom-left', 'bottom', 'bottom-right']]
334
329
  .map(options =>
335
330
  options
336
331
  .map(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ordergroove/offers",
3
- "version": "2.24.2-alpha-PR-571-9.1+939a329d",
3
+ "version": "2.24.2",
4
4
  "description": "offer state component",
5
5
  "author": "Eugenio Lattanzio <eugenio63@gmail.com>",
6
6
  "homepage": "https://github.com/ordergroove/plush-toys#readme",
@@ -43,7 +43,7 @@
43
43
  "throttle-debounce": "^2.1.0"
44
44
  },
45
45
  "devDependencies": {
46
- "@ordergroove/offers-templates": "^0.4.2-alpha-PR-571-9.1+939a329d"
46
+ "@ordergroove/offers-templates": "^0.4.2"
47
47
  },
48
- "gitHead": "939a329dfcb2c6047bfdce2d9aee5769d3dbd555"
48
+ "gitHead": "15d044be78de0e47b82dd310d3d1c4d06fecc98f"
49
49
  }
package/schema.json CHANGED
@@ -274,32 +274,27 @@
274
274
  "properties": {
275
275
  "defaultFrequencyCopy": {
276
276
  "type": "string",
277
- "default": "(Most Popular)",
277
+ "default": "Recommended",
278
278
  "title": "Default frequency copy"
279
279
  },
280
280
  "offerOptInLabel": {
281
281
  "type": "string",
282
- "default": "Subscribe and Save",
283
- "title": "Subscription copy"
284
- },
285
- "offerIncentiveText": {
286
- "type": "string",
287
- "default": "Save {{ogIncentive DiscountPercent}} when you subscribe",
288
- "title": "Subscription sub copy"
282
+ "default": "Subscribe and get 20% off",
283
+ "title": "Subscribe option copy"
289
284
  },
290
285
  "offerEveryLabel": {
291
286
  "type": "string",
292
- "default": "Deliver Every",
287
+ "default": "Ships Every: ",
293
288
  "title": "Subscribe frequency label"
294
289
  },
295
290
  "offerOptOutLabel": {
296
291
  "type": "string",
297
- "default": "Deliver one-time only",
292
+ "default": "One-time",
298
293
  "title": "One-time option copy"
299
294
  },
300
295
  "showTooltip": {
301
296
  "type": "boolean",
302
- "default": true,
297
+ "default": false,
303
298
  "title": "Add a tool tip"
304
299
  }
305
300
  },
@@ -369,7 +364,7 @@
369
364
  },
370
365
  "tooltipPlacement": {
371
366
  "type": "string",
372
- "default": "bottom",
367
+ "default": "top",
373
368
  "enum": ["top", "top-left", "top-right", "bottom", "bottom-left", "bottom-right", "right", "left"]
374
369
  }
375
370
  }
@@ -446,12 +441,11 @@
446
441
  "offerType": "radio"
447
442
  },
448
443
  "textCopy": {
449
- "defaultFrequencyCopy": "(Most Popular)",
450
- "offerOptInLabel": "Subscribe and Save",
451
- "offerIncentiveText": "Save {{ogIncentive DiscountPercent}} when you subscribe",
444
+ "defaultFrequencyCopy": "Recommended",
445
+ "offerOptInLabel": "Subscribe and get 20% off",
452
446
  "offerEveryLabel": "Ships Every: ",
453
447
  "offerOptOutLabel": "One-time",
454
- "showTooltip": true,
448
+ "showTooltip": false,
455
449
  "upsellButtonLabel": "Add to upcoming subscription order and receive 20% off",
456
450
  "upsellButtonContent": "Add to Next Order on ",
457
451
  "upsellModalContent": "Subscribe to this product and have it conveniently delivered to you at the frequency you choose! Read the FAQ here. Promotion subject to change.",
@@ -142,7 +142,7 @@ export class Offer extends TemplateElement {
142
142
  <og-optin-button>
143
143
  <og-text key="offerOptInLabel"></og-text>
144
144
  </og-optin-button>
145
- <og-tooltip placement="bottom">
145
+ <og-tooltip placement="top-right">
146
146
  <div slot="trigger">
147
147
  <og-text key="offerTooltipTrigger"></og-text>
148
148
  </div>
@@ -151,7 +151,7 @@ export class Offer extends TemplateElement {
151
151
  </div>
152
152
  </og-tooltip>
153
153
  </div>
154
- <div style="margin-left: 2.2em">
154
+ <div style="margin-left: 1.5em">
155
155
  <og-text key="offerEveryLabel"></og-text>
156
156
  <og-select-frequency>
157
157
  <option value="3_1" selected>3 Days</option>
@@ -31,9 +31,9 @@ export class OptinStatus extends withProduct(TemplateElement) {
31
31
 
32
32
  .btn {
33
33
  position: relative;
34
- width: var(--og-radio-width, 1.4em);
35
- height: var(--og-radio-height, 1.4em);
36
- margin: var(--og-radio-margin, 0);
34
+ width: 1.4em;
35
+ height: 1.4em;
36
+ margin: 0;
37
37
  padding: 0;
38
38
  border: 1px solid var(--og-primary-color, black);
39
39
  background: #fff;
@@ -54,7 +54,7 @@ export class Select extends LitElement {
54
54
  color: inherit;
55
55
  fill: white;
56
56
  pointer-events: none;
57
- right: 0.3em;
57
+ right: 0.4em;
58
58
  top: 50%;
59
59
  z-index: 1;
60
60
  font-size: 1em;
@@ -3,7 +3,7 @@ import { LitElement, html, css } from 'lit-element';
3
3
  export class Tooltip extends LitElement {
4
4
  static get properties() {
5
5
  return {
6
- placement: { type: String, default: 'bottom' }
6
+ placement: { type: String, default: 'top' }
7
7
  };
8
8
  }
9
9
 
@@ -33,14 +33,12 @@ export class Tooltip extends LitElement {
33
33
  display: block;
34
34
  width: 200px;
35
35
  opacity: 0;
36
- padding: var(--og-tooltip-padding, 0.5em);
37
- text-align: var(--og-tooltip-text-align, left);
36
+ padding: 0.5em;
38
37
  pointer-events: none;
39
38
  position: absolute;
40
39
  transform: translateY(10px);
41
40
  transition: transform 0.25s ease-out;
42
41
  z-index: 99999;
43
- border-radius: var(--og-tooltip-border-radius, 0);
44
42
  }
45
43
 
46
44
  .content:after {
@@ -191,7 +189,7 @@ export class Tooltip extends LitElement {
191
189
  ${this.trigger}
192
190
  </slot>
193
191
  </span>
194
- <div class="content ${this.placement || 'bottom'}">
192
+ <div class="content ${this.placement || 'top'}">
195
193
  <slot name="content">
196
194
  ${this.content}
197
195
  </slot>
@@ -332,11 +332,10 @@ export const environment = (state = {}, action) => {
332
332
 
333
333
  export const locale = (
334
334
  state = {
335
- offerOptInLabel: 'Subscribe and Save',
336
- offerIncentiveText: 'Save {{ogIncentive DiscountPercent}} when you subscribe',
337
- offerOptOutLabel: 'Deliver one-time only',
338
- offerEveryLabel: 'Delivery Every',
339
- offerTooltipTrigger: '[?]',
335
+ offerOptInLabel: 'Subscribe',
336
+ offerOptOutLabel: 'Purchase one time',
337
+ offerEveryLabel: 'Every',
338
+ offerTooltipTrigger: 'Hover for additional info',
340
339
  offerTooltipContent: 'Seems this is a great subscription offering. Many fun details about this program exist.',
341
340
  optinButtonLabel: '•',
342
341
  optoutButtonLabel: '•',
@@ -351,7 +350,7 @@ export const locale = (
351
350
  upsellModalTitle: 'Impulse Upsell',
352
351
  upsellModalConfirmLabel: 'Ok',
353
352
  upsellModalCancelLabel: 'Cancel',
354
- defaultFrequencyCopy: '(Most Popular)',
353
+ defaultFrequencyCopy: '(Recommended)',
355
354
  frequencyPeriods: {
356
355
  '1': 'day',
357
356
  '2': 'week',