@primer-io/primer-js 1.0.0 → 1.0.1
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 +6 -0
- package/dist/custom-elements.json +279 -279
- package/dist/jsx/index.d.ts +31 -31
- package/dist/primer-loader.js +3 -3
- package/dist/vscode.html-custom-data.json +26 -26
- package/dist/web-types.json +67 -67
- package/package.json +1 -1
package/dist/jsx/index.d.ts
CHANGED
|
@@ -630,18 +630,6 @@ export type PaymentMethodContentComponentProps = {
|
|
|
630
630
|
assetConfig?: AssetConfig | null;
|
|
631
631
|
};
|
|
632
632
|
|
|
633
|
-
export type VaultCvvInputComponentProps = {
|
|
634
|
-
/** */
|
|
635
|
-
computedStyles?: CSSStyleDeclaration | null;
|
|
636
|
-
/** */
|
|
637
|
-
paymentMethod?: PaymentCardVaultedMethod | null;
|
|
638
|
-
/** Form context for checking form dirty state */
|
|
639
|
-
vaultManagerFormContext?: VaultManagerContextType;
|
|
640
|
-
/** CVV-specific context for dedicated CVV handling
|
|
641
|
-
Separated to minimize re-renders on frequent CVV input changes */
|
|
642
|
-
vaultManagerCvvContext?: VaultItemContextType;
|
|
643
|
-
};
|
|
644
|
-
|
|
645
633
|
export type VaultDeleteConfirmationComponentProps = {
|
|
646
634
|
/** Whether a delete operation is in progress */
|
|
647
635
|
isDeleting?: boolean;
|
|
@@ -665,11 +653,25 @@ export type VaultDeleteConfirmationComponentProps = {
|
|
|
665
653
|
vaultManager?: VaultManagerContextType;
|
|
666
654
|
};
|
|
667
655
|
|
|
656
|
+
export type VaultCvvInputComponentProps = {
|
|
657
|
+
/** */
|
|
658
|
+
computedStyles?: CSSStyleDeclaration | null;
|
|
659
|
+
/** */
|
|
660
|
+
paymentMethod?: PaymentCardVaultedMethod | null;
|
|
661
|
+
/** Form context for checking form dirty state */
|
|
662
|
+
vaultManagerFormContext?: VaultManagerContextType;
|
|
663
|
+
/** CVV-specific context for dedicated CVV handling
|
|
664
|
+
Separated to minimize re-renders on frequent CVV input changes */
|
|
665
|
+
vaultManagerCvvContext?: VaultItemContextType;
|
|
666
|
+
};
|
|
667
|
+
|
|
668
668
|
export type VaultEmptyStateComponentProps = {};
|
|
669
669
|
|
|
670
|
-
export type
|
|
671
|
-
/**
|
|
672
|
-
|
|
670
|
+
export type VaultManagerHeaderComponentProps = {
|
|
671
|
+
/** Whether we're in edit mode */
|
|
672
|
+
isEditMode?: boolean;
|
|
673
|
+
/** Whether we have payment methods to edit */
|
|
674
|
+
hasPaymentMethods?: boolean;
|
|
673
675
|
/** Strongly typed event declarations */
|
|
674
676
|
addEventListener?: <K extends keyof VaultManagerEventMap>(
|
|
675
677
|
type: K,
|
|
@@ -684,11 +686,9 @@ export type VaultErrorMessageComponentProps = {
|
|
|
684
686
|
) => void;
|
|
685
687
|
};
|
|
686
688
|
|
|
687
|
-
export type
|
|
688
|
-
/**
|
|
689
|
-
|
|
690
|
-
/** Whether we have payment methods to edit */
|
|
691
|
-
hasPaymentMethods?: boolean;
|
|
689
|
+
export type VaultErrorMessageComponentProps = {
|
|
690
|
+
/** The error message to display */
|
|
691
|
+
errorMessage?: string;
|
|
692
692
|
/** Strongly typed event declarations */
|
|
693
693
|
addEventListener?: <K extends keyof VaultManagerEventMap>(
|
|
694
694
|
type: K,
|
|
@@ -1225,6 +1225,13 @@ export type CustomElements = {
|
|
|
1225
1225
|
*/
|
|
1226
1226
|
"primer-payment-method-content": Partial<PaymentMethodContentComponentProps & BaseProps & BaseEvents>;
|
|
1227
1227
|
|
|
1228
|
+
/**
|
|
1229
|
+
* VaultDeleteConfirmationComponent - displays confirmation UI for deleting a payment method
|
|
1230
|
+
* ---
|
|
1231
|
+
*
|
|
1232
|
+
*/
|
|
1233
|
+
"primer-vault-delete-confirmation": Partial<VaultDeleteConfirmationComponentProps & BaseProps & BaseEvents>;
|
|
1234
|
+
|
|
1228
1235
|
/**
|
|
1229
1236
|
* CVV Input component for vault payment methods
|
|
1230
1237
|
* Renders a secure iframe for CVV input when required by the selected payment method
|
|
@@ -1237,13 +1244,6 @@ export type CustomElements = {
|
|
|
1237
1244
|
*/
|
|
1238
1245
|
"primer-vault-cvv-input": Partial<VaultCvvInputComponentProps & BaseProps & BaseEvents>;
|
|
1239
1246
|
|
|
1240
|
-
/**
|
|
1241
|
-
* VaultDeleteConfirmationComponent - displays confirmation UI for deleting a payment method
|
|
1242
|
-
* ---
|
|
1243
|
-
*
|
|
1244
|
-
*/
|
|
1245
|
-
"primer-vault-delete-confirmation": Partial<VaultDeleteConfirmationComponentProps & BaseProps & BaseEvents>;
|
|
1246
|
-
|
|
1247
1247
|
/**
|
|
1248
1248
|
* VaultEmptyStateComponent - displays when no payment methods are available
|
|
1249
1249
|
* ---
|
|
@@ -1252,18 +1252,18 @@ export type CustomElements = {
|
|
|
1252
1252
|
"primer-vault-empty-state": Partial<VaultEmptyStateComponentProps & BaseProps & BaseEvents>;
|
|
1253
1253
|
|
|
1254
1254
|
/**
|
|
1255
|
-
*
|
|
1255
|
+
* VaultManagerHeaderComponent - displays the header for the vault manager
|
|
1256
1256
|
* ---
|
|
1257
1257
|
*
|
|
1258
1258
|
*/
|
|
1259
|
-
"primer-vault-
|
|
1259
|
+
"primer-vault-manager-header": Partial<VaultManagerHeaderComponentProps & BaseProps & BaseEvents>;
|
|
1260
1260
|
|
|
1261
1261
|
/**
|
|
1262
|
-
*
|
|
1262
|
+
* VaultErrorMessageComponent - displays error messages with improved visuals
|
|
1263
1263
|
* ---
|
|
1264
1264
|
*
|
|
1265
1265
|
*/
|
|
1266
|
-
"primer-vault-
|
|
1266
|
+
"primer-vault-error-message": Partial<VaultErrorMessageComponentProps & BaseProps & BaseEvents>;
|
|
1267
1267
|
|
|
1268
1268
|
/**
|
|
1269
1269
|
* VaultPaymentMethodItemComponent - displays a single payment method
|