@primer-io/primer-js 0.3.9 → 0.3.11

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.
@@ -768,6 +768,7 @@ export interface PrimerHeadlessCheckout {
768
768
  getAssetsManager(): IAssetsManager;
769
769
  start: () => Promise<void>;
770
770
  refreshClientSession(): Promise<boolean>;
771
+ teardown?: () => void;
771
772
  }
772
773
  export interface HeadlessUniversalCheckoutOptions {
773
774
  style?: CheckoutStyle;
@@ -3450,8 +3451,9 @@ declare class NativePaymentComponent extends LitElement {
3450
3451
  constructor();
3451
3452
  attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
3452
3453
  /**
3453
- * Calculates the button height based on CSS variables
3454
- * Mirrors the calculation used in the host styles
3454
+ * Calculates the button height by reading the computed height from the element.
3455
+ * The CSS already calculates the correct height using CSS variables,
3456
+ * so we just read the browser's computed value (which handles rem/em/% conversions).
3455
3457
  */
3456
3458
  private calculateButtonHeight;
3457
3459
  /**