@primer-io/primer-js 0.3.8 → 0.3.10
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 +12 -0
- package/dist/custom-elements.json +176 -120
- package/dist/jsx/index.d.ts +14 -14
- package/dist/primer-loader.d.ts +7 -4
- package/dist/primer-loader.js +9 -9
- 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,11 +539,6 @@ 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
|
-
|
|
547
542
|
export type VaultCvvInputComponentProps = {
|
|
548
543
|
/** */
|
|
549
544
|
computedStyles?: CSSStyleDeclaration | null;
|
|
@@ -556,6 +551,11 @@ Separated to minimize re-renders on frequent CVV input changes */
|
|
|
556
551
|
vaultManagerCvvContext?: VaultItemContextType;
|
|
557
552
|
};
|
|
558
553
|
|
|
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,15 +1035,6 @@ 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
|
-
|
|
1047
1038
|
/**
|
|
1048
1039
|
* CVV Input component for vault payment methods
|
|
1049
1040
|
* Renders a secure iframe for CVV input when required by the selected payment method
|
|
@@ -1056,6 +1047,15 @@ export type CustomElements = {
|
|
|
1056
1047
|
*/
|
|
1057
1048
|
"primer-vault-cvv-input": Partial<VaultCvvInputComponentProps & BaseProps & BaseEvents>;
|
|
1058
1049
|
|
|
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
|
@@ -3052,7 +3052,7 @@ declare class HostedInputController<T extends HostedInputHost> implements Reacti
|
|
|
3052
3052
|
/**
|
|
3053
3053
|
* Registers this controller with the card form context for centralized management
|
|
3054
3054
|
*/
|
|
3055
|
-
|
|
3055
|
+
registerWithContext(): void;
|
|
3056
3056
|
/**
|
|
3057
3057
|
* Unregisters this controller from the card form context
|
|
3058
3058
|
*/
|
|
@@ -3121,7 +3121,9 @@ export interface InputComponentConfig {
|
|
|
3121
3121
|
onInput?: (value: string) => void;
|
|
3122
3122
|
}
|
|
3123
3123
|
declare abstract class AbstractCardInputComponent extends LitElement implements HostedInputHost {
|
|
3124
|
-
|
|
3124
|
+
private _cardFormContext;
|
|
3125
|
+
get cardFormContext(): CardFormContext | null;
|
|
3126
|
+
set cardFormContext(value: CardFormContext | null);
|
|
3125
3127
|
computedStyles: CSSStyleDeclaration | null;
|
|
3126
3128
|
/** Tracks which properties were explicitly set by the user */
|
|
3127
3129
|
protected readonly _userAssignedProps: Set<string>;
|
|
@@ -3448,8 +3450,9 @@ declare class NativePaymentComponent extends LitElement {
|
|
|
3448
3450
|
constructor();
|
|
3449
3451
|
attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
|
|
3450
3452
|
/**
|
|
3451
|
-
* Calculates the button height
|
|
3452
|
-
*
|
|
3453
|
+
* Calculates the button height by reading the computed height from the element.
|
|
3454
|
+
* The CSS already calculates the correct height using CSS variables,
|
|
3455
|
+
* so we just read the browser's computed value (which handles rem/em/% conversions).
|
|
3453
3456
|
*/
|
|
3454
3457
|
private calculateButtonHeight;
|
|
3455
3458
|
/**
|