@primer-io/primer-js 1.0.1 → 1.0.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.
Files changed (60) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/chunks/{ar.TR6QET27.js → ar.4ZFBST5B.js} +1 -1
  3. package/dist/chunks/{bg.EJ7QNYMP.js → bg.A6DFGUKU.js} +1 -1
  4. package/dist/chunks/{ca.7C2IYV2P.js → ca.3MVWILFG.js} +1 -1
  5. package/dist/chunks/chunk.QNO3CTH5.js +1 -0
  6. package/dist/chunks/{cs.JT4THDDV.js → cs.INYY7XZR.js} +1 -1
  7. package/dist/chunks/{da.EM7SEPAQ.js → da.Y5IIDRC3.js} +1 -1
  8. package/dist/chunks/{de.K6IE7XOI.js → de.JZT46DAB.js} +1 -1
  9. package/dist/chunks/{el.3CKRNQD5.js → el.FJQOSK4N.js} +1 -1
  10. package/dist/chunks/en-GB.TL522NMU.js +1 -0
  11. package/dist/chunks/en.JFPWSECQ.js +1 -0
  12. package/dist/chunks/{es-AR.ND7EGZHB.js → es-AR.GBZW2HPG.js} +1 -1
  13. package/dist/chunks/{es-MX.6QU35A6L.js → es-MX.NFJ7HXSV.js} +1 -1
  14. package/dist/chunks/{es.SMVRR5QO.js → es.FX4YBDVU.js} +1 -1
  15. package/dist/chunks/{et-EE.BRBL5QIG.js → et-EE.JZD334EI.js} +1 -1
  16. package/dist/chunks/{fi-FI.TPQGZ5V7.js → fi-FI.SHTM3UQK.js} +1 -1
  17. package/dist/chunks/{fr.WWOUUKQI.js → fr.MZYBSJWU.js} +1 -1
  18. package/dist/chunks/{he.OVEJBPUX.js → he.BQXGQQ4P.js} +1 -1
  19. package/dist/chunks/{hr.YPXJZUYV.js → hr.EK5WNO4N.js} +1 -1
  20. package/dist/chunks/{hu.7LEUFJ5J.js → hu.N2BVXVWY.js} +1 -1
  21. package/dist/chunks/{id.TFWG6VOU.js → id.IJ37WK5P.js} +1 -1
  22. package/dist/chunks/{it.3SV7XLRR.js → it.2ZUPJDRP.js} +1 -1
  23. package/dist/chunks/{ja.P6C656R7.js → ja.BNLF6BZT.js} +1 -1
  24. package/dist/chunks/{ko.VOUHNCJ7.js → ko.YJAZTBEF.js} +1 -1
  25. package/dist/chunks/{lt-LT.AFL7G4NO.js → lt-LT.GOVUI3KD.js} +1 -1
  26. package/dist/chunks/{lt.TRKH4J6L.js → lt.IPLRYI7A.js} +1 -1
  27. package/dist/chunks/{lv-LV.TGTBYQYP.js → lv-LV.EA76F4DL.js} +1 -1
  28. package/dist/chunks/{lv.HZTEA2Q2.js → lv.I7E6LMWA.js} +1 -1
  29. package/dist/chunks/{ms.QEKTVYHX.js → ms.6I2BVK63.js} +1 -1
  30. package/dist/chunks/{nb.HRDZEYXV.js → nb.BYMLE7EQ.js} +1 -1
  31. package/dist/chunks/{nl.2R7WVAV3.js → nl.QOSIJQZE.js} +1 -1
  32. package/dist/chunks/{nl_NL.KHWKCZMK.js → nl_NL.DVZWMQJN.js} +1 -1
  33. package/dist/chunks/{pl.D6YHYKB6.js → pl.VK5CNTV3.js} +1 -1
  34. package/dist/chunks/{pt-BR.3NGFYB4U.js → pt-BR.22GYWGY5.js} +1 -1
  35. package/dist/chunks/{pt.LYW2A6VH.js → pt.L2PBSEBD.js} +1 -1
  36. package/dist/chunks/{ro.ILTDKZ2H.js → ro.VFIM4IS3.js} +1 -1
  37. package/dist/chunks/{ru.KJZFKIJM.js → ru.VLLE4DKK.js} +1 -1
  38. package/dist/chunks/{sk.5POYRJGA.js → sk.JALTDVLO.js} +1 -1
  39. package/dist/chunks/{sl.GN5UGR5G.js → sl.PQOCETM2.js} +1 -1
  40. package/dist/chunks/{sr-RS.T3II5ZYL.js → sr-RS.RGO57OCW.js} +1 -1
  41. package/dist/chunks/{sv.63HB4O5X.js → sv.FQJP73FF.js} +1 -1
  42. package/dist/chunks/{th.AZ4SQZFW.js → th.QYA26J2E.js} +1 -1
  43. package/dist/chunks/{tr.WDGRPXBK.js → tr.5ZDAANBV.js} +1 -1
  44. package/dist/chunks/{uk-UA.GYXXM7FX.js → uk-UA.FWQ7KVBB.js} +1 -1
  45. package/dist/chunks/{vi.TBVAKNJJ.js → vi.GB6QZAMD.js} +1 -1
  46. package/dist/chunks/zf.LNP32XVM.js +1 -0
  47. package/dist/chunks/{zh-CN.NK7PKUS6.js → zh-CN.OEA7I6ZA.js} +1 -1
  48. package/dist/chunks/{zh-HK.SQG5YIVQ.js → zh-HK.OUXNL5ZM.js} +1 -1
  49. package/dist/chunks/{zh-TW.P2X3B7LC.js → zh-TW.C5STTOCA.js} +1 -1
  50. package/dist/custom-elements.json +654 -610
  51. package/dist/jsx/index.d.ts +31 -31
  52. package/dist/primer-loader.d.ts +1 -0
  53. package/dist/primer-loader.js +12 -12
  54. package/dist/vscode.html-custom-data.json +26 -26
  55. package/dist/web-types.json +67 -67
  56. package/package.json +1 -1
  57. package/dist/chunks/chunk.DV3REKZU.js +0 -1
  58. package/dist/chunks/en-GB.LG2PPT2V.js +0 -1
  59. package/dist/chunks/en.47EGLMYC.js +0 -1
  60. package/dist/chunks/zf.GGWFQ3Y7.js +0 -1
@@ -630,6 +630,18 @@ 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
+
633
645
  export type VaultDeleteConfirmationComponentProps = {
634
646
  /** Whether a delete operation is in progress */
635
647
  isDeleting?: boolean;
@@ -653,25 +665,11 @@ export type VaultDeleteConfirmationComponentProps = {
653
665
  vaultManager?: VaultManagerContextType;
654
666
  };
655
667
 
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 VaultManagerHeaderComponentProps = {
671
- /** Whether we're in edit mode */
672
- isEditMode?: boolean;
673
- /** Whether we have payment methods to edit */
674
- hasPaymentMethods?: boolean;
670
+ export type VaultErrorMessageComponentProps = {
671
+ /** The error message to display */
672
+ errorMessage?: string;
675
673
  /** Strongly typed event declarations */
676
674
  addEventListener?: <K extends keyof VaultManagerEventMap>(
677
675
  type: K,
@@ -686,9 +684,11 @@ export type VaultManagerHeaderComponentProps = {
686
684
  ) => void;
687
685
  };
688
686
 
689
- export type VaultErrorMessageComponentProps = {
690
- /** The error message to display */
691
- errorMessage?: string;
687
+ export type VaultManagerHeaderComponentProps = {
688
+ /** Whether we're in edit mode */
689
+ isEditMode?: boolean;
690
+ /** Whether we have payment methods to edit */
691
+ hasPaymentMethods?: boolean;
692
692
  /** Strongly typed event declarations */
693
693
  addEventListener?: <K extends keyof VaultManagerEventMap>(
694
694
  type: K,
@@ -1225,13 +1225,6 @@ 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
-
1235
1228
  /**
1236
1229
  * CVV Input component for vault payment methods
1237
1230
  * Renders a secure iframe for CVV input when required by the selected payment method
@@ -1245,18 +1238,18 @@ export type CustomElements = {
1245
1238
  "primer-vault-cvv-input": Partial<VaultCvvInputComponentProps & BaseProps & BaseEvents>;
1246
1239
 
1247
1240
  /**
1248
- * VaultEmptyStateComponent - displays when no payment methods are available
1241
+ * VaultDeleteConfirmationComponent - displays confirmation UI for deleting a payment method
1249
1242
  * ---
1250
1243
  *
1251
1244
  */
1252
- "primer-vault-empty-state": Partial<VaultEmptyStateComponentProps & BaseProps & BaseEvents>;
1245
+ "primer-vault-delete-confirmation": Partial<VaultDeleteConfirmationComponentProps & BaseProps & BaseEvents>;
1253
1246
 
1254
1247
  /**
1255
- * VaultManagerHeaderComponent - displays the header for the vault manager
1248
+ * VaultEmptyStateComponent - displays when no payment methods are available
1256
1249
  * ---
1257
1250
  *
1258
1251
  */
1259
- "primer-vault-manager-header": Partial<VaultManagerHeaderComponentProps & BaseProps & BaseEvents>;
1252
+ "primer-vault-empty-state": Partial<VaultEmptyStateComponentProps & BaseProps & BaseEvents>;
1260
1253
 
1261
1254
  /**
1262
1255
  * VaultErrorMessageComponent - displays error messages with improved visuals
@@ -1265,6 +1258,13 @@ export type CustomElements = {
1265
1258
  */
1266
1259
  "primer-vault-error-message": Partial<VaultErrorMessageComponentProps & BaseProps & BaseEvents>;
1267
1260
 
1261
+ /**
1262
+ * VaultManagerHeaderComponent - displays the header for the vault manager
1263
+ * ---
1264
+ *
1265
+ */
1266
+ "primer-vault-manager-header": Partial<VaultManagerHeaderComponentProps & BaseProps & BaseEvents>;
1267
+
1268
1268
  /**
1269
1269
  * VaultPaymentMethodItemComponent - displays a single payment method
1270
1270
  * Uses the VaultManagerController for display formatting
@@ -5126,6 +5126,7 @@ declare class CardNetworkSelectorComponent extends LitElement {
5126
5126
  */
5127
5127
  private toggleDropdown;
5128
5128
  private getNetworkIconUrl;
5129
+ private renderDefaultCardIcon;
5129
5130
  /**
5130
5131
  * Get selectable networks from context
5131
5132
  */