@primer-io/primer-js 0.3.10 → 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.
- package/CHANGELOG.md +7 -0
- package/dist/custom-elements.json +903 -903
- package/dist/jsx/index.d.ts +14 -14
- package/dist/primer-loader.d.ts +1 -0
- package/dist/primer-loader.js +11 -11
- package/dist/vscode.html-custom-data.json +6 -6
- package/dist/web-types.json +18 -18
- package/package.json +1 -1
package/dist/jsx/index.d.ts
CHANGED
|
@@ -539,6 +539,11 @@ Falls back to localized default if not explicitly set. */
|
|
|
539
539
|
cardFormContext?: CardFormContext | null;
|
|
540
540
|
};
|
|
541
541
|
|
|
542
|
+
export type PaymentMethodContentComponentProps = {
|
|
543
|
+
/** The asset configuration containing icon and display data */
|
|
544
|
+
assetConfig?: AssetConfig | null;
|
|
545
|
+
};
|
|
546
|
+
|
|
542
547
|
export type VaultCvvInputComponentProps = {
|
|
543
548
|
/** */
|
|
544
549
|
computedStyles?: CSSStyleDeclaration | null;
|
|
@@ -551,11 +556,6 @@ Separated to minimize re-renders on frequent CVV input changes */
|
|
|
551
556
|
vaultManagerCvvContext?: VaultItemContextType;
|
|
552
557
|
};
|
|
553
558
|
|
|
554
|
-
export type PaymentMethodContentComponentProps = {
|
|
555
|
-
/** The asset configuration containing icon and display data */
|
|
556
|
-
assetConfig?: AssetConfig | null;
|
|
557
|
-
};
|
|
558
|
-
|
|
559
559
|
export type VaultDeleteConfirmationComponentProps = {
|
|
560
560
|
/** Whether a delete operation is in progress */
|
|
561
561
|
isDeleting?: boolean;
|
|
@@ -1035,6 +1035,15 @@ export type CustomElements = {
|
|
|
1035
1035
|
*/
|
|
1036
1036
|
"primer-input-cvv": Partial<InputCvvComponentProps & BaseProps & BaseEvents>;
|
|
1037
1037
|
|
|
1038
|
+
/**
|
|
1039
|
+
* PaymentMethodContentComponent - renders payment method information with icon and details
|
|
1040
|
+
* This component encapsulates the display logic and styles for payment method content
|
|
1041
|
+
* so it can be reused across different containers without style conflicts
|
|
1042
|
+
* ---
|
|
1043
|
+
*
|
|
1044
|
+
*/
|
|
1045
|
+
"primer-payment-method-content": Partial<PaymentMethodContentComponentProps & BaseProps & BaseEvents>;
|
|
1046
|
+
|
|
1038
1047
|
/**
|
|
1039
1048
|
* CVV Input component for vault payment methods
|
|
1040
1049
|
* Renders a secure iframe for CVV input when required by the selected payment method
|
|
@@ -1047,15 +1056,6 @@ export type CustomElements = {
|
|
|
1047
1056
|
*/
|
|
1048
1057
|
"primer-vault-cvv-input": Partial<VaultCvvInputComponentProps & BaseProps & BaseEvents>;
|
|
1049
1058
|
|
|
1050
|
-
/**
|
|
1051
|
-
* PaymentMethodContentComponent - renders payment method information with icon and details
|
|
1052
|
-
* This component encapsulates the display logic and styles for payment method content
|
|
1053
|
-
* so it can be reused across different containers without style conflicts
|
|
1054
|
-
* ---
|
|
1055
|
-
*
|
|
1056
|
-
*/
|
|
1057
|
-
"primer-payment-method-content": Partial<PaymentMethodContentComponentProps & BaseProps & BaseEvents>;
|
|
1058
|
-
|
|
1059
1059
|
/**
|
|
1060
1060
|
* VaultDeleteConfirmationComponent - displays confirmation UI for deleting a payment method
|
|
1061
1061
|
* ---
|
package/dist/primer-loader.d.ts
CHANGED
|
@@ -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;
|