@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.
@@ -684,21 +684,6 @@
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
- },
702
687
  {
703
688
  "name": "primer-vault-delete-confirmation",
704
689
  "description": "VaultDeleteConfirmationComponent - displays confirmation UI for deleting a payment method\n---\n",
@@ -722,23 +707,26 @@
722
707
  "references": []
723
708
  },
724
709
  {
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",
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",
733
712
  "attributes": [
734
713
  {
735
- "name": "errorMessage",
736
- "description": "The error message to display",
737
- "values": []
714
+ "name": "computedStyles",
715
+ "values": [{ "name": "CSSStyleDeclaration" }]
716
+ },
717
+ {
718
+ "name": "paymentMethod",
719
+ "values": [{ "name": "PaymentCardVaultedMethod" }]
738
720
  }
739
721
  ],
740
722
  "references": []
741
723
  },
724
+ {
725
+ "name": "primer-vault-empty-state",
726
+ "description": "VaultEmptyStateComponent - displays when no payment methods are available\n---\n",
727
+ "attributes": [],
728
+ "references": []
729
+ },
742
730
  {
743
731
  "name": "primer-vault-manager-header",
744
732
  "description": "VaultManagerHeaderComponent - displays the header for the vault manager\n---\n",
@@ -756,6 +744,18 @@
756
744
  ],
757
745
  "references": []
758
746
  },
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.0",
4
+ "version": "1.0.1",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -1763,51 +1763,6 @@
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
- },
1811
1766
  {
1812
1767
  "name": "primer-vault-delete-confirmation",
1813
1768
  "description": "VaultDeleteConfirmationComponent - displays confirmation UI for deleting a payment method\n---\n",
@@ -1866,45 +1821,58 @@
1866
1821
  }
1867
1822
  },
1868
1823
  {
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",
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",
1879
1826
  "doc-url": "",
1880
1827
  "attributes": [
1881
1828
  {
1882
- "name": "errorMessage",
1883
- "description": "The error message to display",
1884
- "value": { "type": "string", "default": "''" }
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
+ }
1885
1841
  }
1886
1842
  ],
1887
1843
  "events": [],
1888
1844
  "js": {
1889
1845
  "properties": [
1890
1846
  {
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"
1847
+ "name": "vaultManagerFormContext",
1848
+ "description": "Form context for checking form dirty state",
1849
+ "type": "VaultManagerContextType"
1894
1850
  },
1895
1851
  {
1896
- "name": "removeEventListener",
1897
- "type": "<K extends keyof VaultManagerEventMap>(\n type: K,\n listener: (ev: VaultManagerEventMap[K]) => void,\n options?: boolean | AddEventListenerOptions,\n ) => void"
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"
1898
1855
  },
1899
1856
  {
1900
- "name": "errorMessage",
1901
- "description": "The error message to display",
1902
- "type": "string"
1857
+ "name": "computedStyles",
1858
+ "type": "CSSStyleDeclaration | null"
1859
+ },
1860
+ {
1861
+ "name": "paymentMethod",
1862
+ "type": "PaymentCardVaultedMethod | null"
1903
1863
  }
1904
1864
  ],
1905
1865
  "events": []
1906
1866
  }
1907
1867
  },
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
+ },
1908
1876
  {
1909
1877
  "name": "primer-vault-manager-header",
1910
1878
  "description": "VaultManagerHeaderComponent - displays the header for the vault manager\n---\n",
@@ -1947,6 +1915,38 @@
1947
1915
  "events": []
1948
1916
  }
1949
1917
  },
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.0",
5
+ "version": "1.0.1",
6
6
  "type": "module",
7
7
  "main": "./dist/primer-loader.js",
8
8
  "types": "./dist/primer-loader.d.ts",