tf-checkout-react 1.6.6-beta.16 → 1.6.6-beta.17

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/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.6.6-beta.16",
2
+ "version": "1.6.6-beta.17",
3
3
  "license": "MIT",
4
4
  "main": "dist/index.js",
5
5
  "typings": "dist/index.d.ts",
@@ -45,7 +45,7 @@ export interface IAddonContainterProps {
45
45
  onCountdownFinish?: () => void;
46
46
  onPendingVerification?: () => void;
47
47
  samePage?: boolean;
48
- descriptionTrigger?: "click" | "hover";
48
+ descriptionTrigger?: "click" | "hover" | "always";
49
49
  }
50
50
 
51
51
  export interface ObjectLiteral {
@@ -369,7 +369,7 @@ export const AddonsContainter = ({
369
369
  <div className={`${classNamePrefix}_product_info_block`}>
370
370
  <div className={`${classNamePrefix}_product_title`}>
371
371
  {addon.name}
372
- {addon.description && (
372
+ {addon.description && descriptionTrigger !== 'always' && (
373
373
  <>
374
374
  <span
375
375
  aria-hidden
@@ -405,7 +405,7 @@ export const AddonsContainter = ({
405
405
  {CONFIGS.FEES_STYLE === FEES_STYLES.TRADITIONAL ? addonNormalizedPrice : addOnNormalizedCost}
406
406
  {!isAddonFree && CONFIGS.FEES_STYLE === FEES_STYLES.TRADITIONAL && (
407
407
  <span className={`${classNamePrefix}_product_fee`}>
408
- {`(${addonNormalizedPrice} with fees)`}
408
+ {addon.feeIncluded ? '(incl. Fees)' : '(excl. Fees)'}
409
409
  </span>
410
410
  )}
411
411
  {!isAddonFree && CONFIGS.FEES_STYLE === FEES_STYLES.DISPLAY_BOTH && (
@@ -417,7 +417,7 @@ export const AddonsContainter = ({
417
417
  )}
418
418
  </div>
419
419
  </div>
420
- {visibleDescription === addon.id && (
420
+ {(visibleDescription === addon.id || descriptionTrigger === 'always' ) && (
421
421
  <div
422
422
  className={`${classNamePrefix}_product_desc`}
423
423
  dangerouslySetInnerHTML={createMarkup(addon.description)}
@@ -372,7 +372,7 @@ export const PaymentContainer = ({
372
372
  id: 'add_ons',
373
373
  },
374
374
  {
375
- label: 'Total (2.5% merchant processing fee)',
375
+ label: 'Total (incl. fees, card processing and taxes)',
376
376
  id: 'total',
377
377
  normalizer: (value: string, currency: string) =>
378
378
  currencyNormalizerCreator(