@paypercut/checkout-js 1.4.2 → 1.4.3

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/README.md CHANGED
@@ -1743,7 +1743,7 @@ Tip: Prefer subscribing with the SdkEvent enum for stronger typing.
1743
1743
  <body>
1744
1744
  <div id="checkout"></div>
1745
1745
 
1746
- <script src="https://cdn.jsdelivr.net/npm/@paypercut/checkout-js@1.4.2/dist/paypercut-checkout.iife.min.js"></script>
1746
+ <script src="https://cdn.jsdelivr.net/npm/@paypercut/checkout-js@1.4.3/dist/paypercut-checkout.iife.min.js"></script>
1747
1747
  <script>
1748
1748
  const checkout = PaypercutCheckout({
1749
1749
  id: '01KB23M9EC960C50G3AH14FTTT',
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
4
- const SDK_VERSION = "1.4.2";
4
+ const SDK_VERSION = "1.4.3";
5
5
 
6
6
  const ELEMENTS_APPEARANCE_VARIABLE_NAMES = [
7
7
  'colorPrimary',
@@ -1,4 +1,4 @@
1
- const SDK_VERSION = "1.4.2";
1
+ const SDK_VERSION = "1.4.3";
2
2
 
3
3
  const ELEMENTS_APPEARANCE_VARIABLE_NAMES = [
4
4
  'colorPrimary',
package/dist/index.cjs CHANGED
@@ -105,7 +105,7 @@ class Emitter {
105
105
  }
106
106
  }
107
107
 
108
- const SDK_VERSION = "1.4.2";
108
+ const SDK_VERSION = "1.4.3";
109
109
 
110
110
  /**
111
111
  * Build-time configuration
@@ -4820,7 +4820,9 @@ class CardElementImpl {
4820
4820
  border: '0',
4821
4821
  display: 'block',
4822
4822
  overflow: 'hidden',
4823
- colorScheme: 'light dark',
4823
+ // Hosted Elements uses a normal document color scheme. A mismatch makes
4824
+ // browsers paint an opaque canvas even with transparent html/body styles.
4825
+ colorScheme: 'normal',
4824
4826
  transition: 'height 350ms ease-in-out, opacity 400ms ease-in-out 100ms',
4825
4827
  willChange: 'height, opacity',
4826
4828
  });