@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
@@ -684,6 +684,21 @@
684
684
  "attributes": [],
685
685
  "references": []
686
686
  },
687
+ {
688
+ "name": "primer-vault-cvv-input",
689
+ "description": "CVV Input component for vault payment methods\nRenders a secure iframe for CVV input when required by the selected payment method\nUses dedicated CVV context to minimize re-renders\n---\n\n\n### **Methods:**\n - **onCvvInputChange()** - Update CVV metadata in the context when input changes",
690
+ "attributes": [
691
+ {
692
+ "name": "computedStyles",
693
+ "values": [{ "name": "CSSStyleDeclaration" }]
694
+ },
695
+ {
696
+ "name": "paymentMethod",
697
+ "values": [{ "name": "PaymentCardVaultedMethod" }]
698
+ }
699
+ ],
700
+ "references": []
701
+ },
687
702
  {
688
703
  "name": "primer-vault-delete-confirmation",
689
704
  "description": "VaultDeleteConfirmationComponent - displays confirmation UI for deleting a payment method\n---\n",
@@ -707,26 +722,23 @@
707
722
  "references": []
708
723
  },
709
724
  {
710
- "name": "primer-vault-cvv-input",
711
- "description": "CVV Input component for vault payment methods\nRenders a secure iframe for CVV input when required by the selected payment method\nUses dedicated CVV context to minimize re-renders\n---\n\n\n### **Methods:**\n - **onCvvInputChange()** - Update CVV metadata in the context when input changes",
725
+ "name": "primer-vault-empty-state",
726
+ "description": "VaultEmptyStateComponent - displays when no payment methods are available\n---\n",
727
+ "attributes": [],
728
+ "references": []
729
+ },
730
+ {
731
+ "name": "primer-vault-error-message",
732
+ "description": "VaultErrorMessageComponent - displays error messages with improved visuals\n---\n",
712
733
  "attributes": [
713
734
  {
714
- "name": "computedStyles",
715
- "values": [{ "name": "CSSStyleDeclaration" }]
716
- },
717
- {
718
- "name": "paymentMethod",
719
- "values": [{ "name": "PaymentCardVaultedMethod" }]
735
+ "name": "errorMessage",
736
+ "description": "The error message to display",
737
+ "values": []
720
738
  }
721
739
  ],
722
740
  "references": []
723
741
  },
724
- {
725
- "name": "primer-vault-empty-state",
726
- "description": "VaultEmptyStateComponent - displays when no payment methods are available\n---\n",
727
- "attributes": [],
728
- "references": []
729
- },
730
742
  {
731
743
  "name": "primer-vault-manager-header",
732
744
  "description": "VaultManagerHeaderComponent - displays the header for the vault manager\n---\n",
@@ -744,18 +756,6 @@
744
756
  ],
745
757
  "references": []
746
758
  },
747
- {
748
- "name": "primer-vault-error-message",
749
- "description": "VaultErrorMessageComponent - displays error messages with improved visuals\n---\n",
750
- "attributes": [
751
- {
752
- "name": "errorMessage",
753
- "description": "The error message to display",
754
- "values": []
755
- }
756
- ],
757
- "references": []
758
- },
759
759
  {
760
760
  "name": "primer-vault-payment-method-item",
761
761
  "description": "VaultPaymentMethodItemComponent - displays a single payment method\nUses the VaultManagerController for display formatting\nNow supports selection via the simplified button checked state\nEnhanced with smooth transitions between edit and payment modes\nAlways renders the primer-button for consistent UI and improved accessibility\n---\n",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@primer-io/primer-js",
4
- "version": "1.0.1",
4
+ "version": "1.0.3",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1763,6 +1763,51 @@
1763
1763
  "events": []
1764
1764
  }
1765
1765
  },
1766
+ {
1767
+ "name": "primer-vault-cvv-input",
1768
+ "description": "CVV Input component for vault payment methods\nRenders a secure iframe for CVV input when required by the selected payment method\nUses dedicated CVV context to minimize re-renders\n---\n\n\n### **Methods:**\n - **onCvvInputChange()** - Update CVV metadata in the context when input changes",
1769
+ "doc-url": "",
1770
+ "attributes": [
1771
+ {
1772
+ "name": "computedStyles",
1773
+ "value": {
1774
+ "type": "CSSStyleDeclaration | null",
1775
+ "default": "null"
1776
+ }
1777
+ },
1778
+ {
1779
+ "name": "paymentMethod",
1780
+ "value": {
1781
+ "type": "PaymentCardVaultedMethod | null",
1782
+ "default": "null"
1783
+ }
1784
+ }
1785
+ ],
1786
+ "events": [],
1787
+ "js": {
1788
+ "properties": [
1789
+ {
1790
+ "name": "vaultManagerFormContext",
1791
+ "description": "Form context for checking form dirty state",
1792
+ "type": "VaultManagerContextType"
1793
+ },
1794
+ {
1795
+ "name": "vaultManagerCvvContext",
1796
+ "description": "CVV-specific context for dedicated CVV handling\nSeparated to minimize re-renders on frequent CVV input changes",
1797
+ "type": "VaultItemContextType"
1798
+ },
1799
+ {
1800
+ "name": "computedStyles",
1801
+ "type": "CSSStyleDeclaration | null"
1802
+ },
1803
+ {
1804
+ "name": "paymentMethod",
1805
+ "type": "PaymentCardVaultedMethod | null"
1806
+ }
1807
+ ],
1808
+ "events": []
1809
+ }
1810
+ },
1766
1811
  {
1767
1812
  "name": "primer-vault-delete-confirmation",
1768
1813
  "description": "VaultDeleteConfirmationComponent - displays confirmation UI for deleting a payment method\n---\n",
@@ -1821,58 +1866,45 @@
1821
1866
  }
1822
1867
  },
1823
1868
  {
1824
- "name": "primer-vault-cvv-input",
1825
- "description": "CVV Input component for vault payment methods\nRenders a secure iframe for CVV input when required by the selected payment method\nUses dedicated CVV context to minimize re-renders\n---\n\n\n### **Methods:**\n - **onCvvInputChange()** - Update CVV metadata in the context when input changes",
1869
+ "name": "primer-vault-empty-state",
1870
+ "description": "VaultEmptyStateComponent - displays when no payment methods are available\n---\n",
1871
+ "doc-url": "",
1872
+ "attributes": [],
1873
+ "events": [],
1874
+ "js": { "properties": [], "events": [] }
1875
+ },
1876
+ {
1877
+ "name": "primer-vault-error-message",
1878
+ "description": "VaultErrorMessageComponent - displays error messages with improved visuals\n---\n",
1826
1879
  "doc-url": "",
1827
1880
  "attributes": [
1828
1881
  {
1829
- "name": "computedStyles",
1830
- "value": {
1831
- "type": "CSSStyleDeclaration | null",
1832
- "default": "null"
1833
- }
1834
- },
1835
- {
1836
- "name": "paymentMethod",
1837
- "value": {
1838
- "type": "PaymentCardVaultedMethod | null",
1839
- "default": "null"
1840
- }
1882
+ "name": "errorMessage",
1883
+ "description": "The error message to display",
1884
+ "value": { "type": "string", "default": "''" }
1841
1885
  }
1842
1886
  ],
1843
1887
  "events": [],
1844
1888
  "js": {
1845
1889
  "properties": [
1846
1890
  {
1847
- "name": "vaultManagerFormContext",
1848
- "description": "Form context for checking form dirty state",
1849
- "type": "VaultManagerContextType"
1850
- },
1851
- {
1852
- "name": "vaultManagerCvvContext",
1853
- "description": "CVV-specific context for dedicated CVV handling\nSeparated to minimize re-renders on frequent CVV input changes",
1854
- "type": "VaultItemContextType"
1891
+ "name": "addEventListener",
1892
+ "description": "Strongly typed event declarations",
1893
+ "type": "<K extends keyof VaultManagerEventMap>(\n type: K,\n listener: (ev: VaultManagerEventMap[K]) => void,\n options?: boolean | AddEventListenerOptions,\n ) => void"
1855
1894
  },
1856
1895
  {
1857
- "name": "computedStyles",
1858
- "type": "CSSStyleDeclaration | null"
1896
+ "name": "removeEventListener",
1897
+ "type": "<K extends keyof VaultManagerEventMap>(\n type: K,\n listener: (ev: VaultManagerEventMap[K]) => void,\n options?: boolean | AddEventListenerOptions,\n ) => void"
1859
1898
  },
1860
1899
  {
1861
- "name": "paymentMethod",
1862
- "type": "PaymentCardVaultedMethod | null"
1900
+ "name": "errorMessage",
1901
+ "description": "The error message to display",
1902
+ "type": "string"
1863
1903
  }
1864
1904
  ],
1865
1905
  "events": []
1866
1906
  }
1867
1907
  },
1868
- {
1869
- "name": "primer-vault-empty-state",
1870
- "description": "VaultEmptyStateComponent - displays when no payment methods are available\n---\n",
1871
- "doc-url": "",
1872
- "attributes": [],
1873
- "events": [],
1874
- "js": { "properties": [], "events": [] }
1875
- },
1876
1908
  {
1877
1909
  "name": "primer-vault-manager-header",
1878
1910
  "description": "VaultManagerHeaderComponent - displays the header for the vault manager\n---\n",
@@ -1915,38 +1947,6 @@
1915
1947
  "events": []
1916
1948
  }
1917
1949
  },
1918
- {
1919
- "name": "primer-vault-error-message",
1920
- "description": "VaultErrorMessageComponent - displays error messages with improved visuals\n---\n",
1921
- "doc-url": "",
1922
- "attributes": [
1923
- {
1924
- "name": "errorMessage",
1925
- "description": "The error message to display",
1926
- "value": { "type": "string", "default": "''" }
1927
- }
1928
- ],
1929
- "events": [],
1930
- "js": {
1931
- "properties": [
1932
- {
1933
- "name": "addEventListener",
1934
- "description": "Strongly typed event declarations",
1935
- "type": "<K extends keyof VaultManagerEventMap>(\n type: K,\n listener: (ev: VaultManagerEventMap[K]) => void,\n options?: boolean | AddEventListenerOptions,\n ) => void"
1936
- },
1937
- {
1938
- "name": "removeEventListener",
1939
- "type": "<K extends keyof VaultManagerEventMap>(\n type: K,\n listener: (ev: VaultManagerEventMap[K]) => void,\n options?: boolean | AddEventListenerOptions,\n ) => void"
1940
- },
1941
- {
1942
- "name": "errorMessage",
1943
- "description": "The error message to display",
1944
- "type": "string"
1945
- }
1946
- ],
1947
- "events": []
1948
- }
1949
- },
1950
1950
  {
1951
1951
  "name": "primer-vault-payment-method-item",
1952
1952
  "description": "VaultPaymentMethodItemComponent - displays a single payment method\nUses the VaultManagerController for display formatting\nNow supports selection via the simplified button checked state\nEnhanced with smooth transitions between edit and payment modes\nAlways renders the primer-button for consistent UI and improved accessibility\n---\n",
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@primer-io/primer-js",
3
3
  "description": "Primer Checkout is a web component-based SDK for building secure, customizable, and PCI-compliant checkout experiences. Designed with a modular architecture, it integrates seamlessly with any JavaScript framework and supports multiple payment methods.",
4
4
  "license": "BSD-3-Clause",
5
- "version": "1.0.1",
5
+ "version": "1.0.3",
6
6
  "type": "module",
7
7
  "main": "./dist/primer-loader.js",
8
8
  "types": "./dist/primer-loader.d.ts",
@@ -1 +0,0 @@
1
- var h=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var j=(c,a,b)=>a in c?h(c,a,{enumerable:!0,configurable:!0,writable:!0,value:b}):c[a]=b;var k=c=>a=>{var b=c[a];if(b)return b();throw new Error("Module not found in bundle: "+a)};var l=(c,a,b,e)=>{for(var d=e>1?void 0:e?i(a,b):a,f=c.length-1,g;f>=0;f--)(g=c[f])&&(d=(e?g(a,b,d):g(d))||d);return e&&d&&h(a,b,d),d};var m=(c,a,b)=>j(c,typeof a!="symbol"?a+"":a,b);export{k as a,l as b,m as c};
@@ -1 +0,0 @@
1
- import{a as t}from"./chunk.4VIC6WHG.js";import"./chunk.DV3REKZU.js";var o=t;export{o as templates};
@@ -1 +0,0 @@
1
- import{a as t}from"./chunk.4VIC6WHG.js";import"./chunk.DV3REKZU.js";var o=t;export{o as templates};
@@ -1 +0,0 @@
1
- import"./chunk.DV3REKZU.js";var t={};var a=t;export{a as templates};