@primer-io/primer-js 0.14.0 → 0.15.0
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 +16 -0
- package/dist/custom-elements.json +933 -882
- package/dist/jsx/index.d.ts +45 -45
- package/dist/primer-loader.d.ts +27 -0
- package/dist/primer-loader.js +11 -11
- package/dist/vscode.html-custom-data.json +19 -19
- package/dist/web-types.json +51 -51
- package/package.json +1 -1
|
@@ -75,6 +75,15 @@
|
|
|
75
75
|
],
|
|
76
76
|
"references": []
|
|
77
77
|
},
|
|
78
|
+
{
|
|
79
|
+
"name": "primer-dialog",
|
|
80
|
+
"description": "\n---\n\n\n### **Events:**\n - **primer:dialog-open**\n- **primer:dialog-close**\n\n### **Methods:**\n - **startExitAnimation(): _void_** - Public method to trigger exit animation programmatically",
|
|
81
|
+
"attributes": [
|
|
82
|
+
{ "name": "size", "values": [{ "name": "flex" }, { "name": "large" }] },
|
|
83
|
+
{ "name": "showCloseButton", "values": [] }
|
|
84
|
+
],
|
|
85
|
+
"references": []
|
|
86
|
+
},
|
|
78
87
|
{
|
|
79
88
|
"name": "primer-collapsable",
|
|
80
89
|
"description": "A collapsable component that smoothly expands and collapses content.\nUses CSS Grid for smooth animation and incorporates the primary button.\n---\n\n\n### **Events:**\n - **expanded-changed**\n\n### **Methods:**\n - **expand(): _void_** - Expand the collapsable programmatically\n- **collapse(): _void_** - Collapse the collapsable programmatically",
|
|
@@ -112,15 +121,6 @@
|
|
|
112
121
|
],
|
|
113
122
|
"references": []
|
|
114
123
|
},
|
|
115
|
-
{
|
|
116
|
-
"name": "primer-dialog",
|
|
117
|
-
"description": "\n---\n\n\n### **Events:**\n - **primer:dialog-open**\n- **primer:dialog-close**\n\n### **Methods:**\n - **startExitAnimation(): _void_** - Public method to trigger exit animation programmatically",
|
|
118
|
-
"attributes": [
|
|
119
|
-
{ "name": "size", "values": [{ "name": "flex" }, { "name": "large" }] },
|
|
120
|
-
{ "name": "showCloseButton", "values": [] }
|
|
121
|
-
],
|
|
122
|
-
"references": []
|
|
123
|
-
},
|
|
124
124
|
{
|
|
125
125
|
"name": "primer-error-message",
|
|
126
126
|
"description": "A reusable atomic error message component that displays error information\nwith appropriate styling and accessibility attributes.\n\nThis component is fully accessible and designed to work with screen readers.\nIt includes animations for visibility transitions.\n---\n\n\n### **CSS Parts:**\n - **error-message** - The main error message container\n- **error-icon** - The error icon container\n- **error-content** - The error text content",
|
|
@@ -579,8 +579,8 @@
|
|
|
579
579
|
"references": []
|
|
580
580
|
},
|
|
581
581
|
{
|
|
582
|
-
"name": "primer-input-
|
|
583
|
-
"description": "
|
|
582
|
+
"name": "primer-input-cvv",
|
|
583
|
+
"description": "\n---\n\n\n### **Methods:**\n \n- **getError(): _string|null_** - Get the error code from the hosted input controller when the input is submitted or touched\n\nCan be used instead of the error returned by the `validate()` method since internally `primer-sdk-web`\nuses the same logic to compute the error code\n",
|
|
584
584
|
"attributes": [
|
|
585
585
|
{
|
|
586
586
|
"name": "computedStyles",
|
|
@@ -605,8 +605,8 @@
|
|
|
605
605
|
"references": []
|
|
606
606
|
},
|
|
607
607
|
{
|
|
608
|
-
"name": "primer-input-
|
|
609
|
-
"description": "\n---\n\n\n### **Methods:**\n \n- **getError(): _string|null_** - Get the error code from the hosted input controller when the input is submitted or touched\n\nCan be used instead of the error returned by the `validate()` method since internally `primer-sdk-web`\nuses the same logic to compute the error code
|
|
608
|
+
"name": "primer-input-card-number",
|
|
609
|
+
"description": "Card number input component with dynamic card network detection and selection\n---\n\n\n### **Methods:**\n \n\n- **getError(): _string|null_** - Get the error code from the hosted input controller when the input is submitted or touched\n\nCan be used instead of the error returned by the `validate()` method since internally `primer-sdk-web`\nuses the same logic to compute the error code",
|
|
610
610
|
"attributes": [
|
|
611
611
|
{
|
|
612
612
|
"name": "computedStyles",
|
|
@@ -678,12 +678,6 @@
|
|
|
678
678
|
],
|
|
679
679
|
"references": []
|
|
680
680
|
},
|
|
681
|
-
{
|
|
682
|
-
"name": "primer-payment-method-content",
|
|
683
|
-
"description": "PaymentMethodContentComponent - renders payment method information with icon and details\nThis component encapsulates the display logic and styles for payment method content\nso it can be reused across different containers without style conflicts\n---\n",
|
|
684
|
-
"attributes": [],
|
|
685
|
-
"references": []
|
|
686
|
-
},
|
|
687
681
|
{
|
|
688
682
|
"name": "primer-vault-cvv-input",
|
|
689
683
|
"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",
|
|
@@ -699,6 +693,12 @@
|
|
|
699
693
|
],
|
|
700
694
|
"references": []
|
|
701
695
|
},
|
|
696
|
+
{
|
|
697
|
+
"name": "primer-payment-method-content",
|
|
698
|
+
"description": "PaymentMethodContentComponent - renders payment method information with icon and details\nThis component encapsulates the display logic and styles for payment method content\nso it can be reused across different containers without style conflicts\n---\n",
|
|
699
|
+
"attributes": [],
|
|
700
|
+
"references": []
|
|
701
|
+
},
|
|
702
702
|
{
|
|
703
703
|
"name": "primer-vault-delete-confirmation",
|
|
704
704
|
"description": "VaultDeleteConfirmationComponent - displays confirmation UI for deleting a payment method\n---\n",
|
package/dist/web-types.json
CHANGED
|
@@ -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": "0.
|
|
4
|
+
"version": "0.15.0",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -179,6 +179,35 @@
|
|
|
179
179
|
"events": []
|
|
180
180
|
}
|
|
181
181
|
},
|
|
182
|
+
{
|
|
183
|
+
"name": "primer-dialog",
|
|
184
|
+
"description": "\n---\n\n\n### **Events:**\n - **primer:dialog-open**\n- **primer:dialog-close**\n\n### **Methods:**\n - **startExitAnimation(): _void_** - Public method to trigger exit animation programmatically",
|
|
185
|
+
"doc-url": "",
|
|
186
|
+
"attributes": [
|
|
187
|
+
{
|
|
188
|
+
"name": "size",
|
|
189
|
+
"value": { "type": "'flex' | 'large'", "default": "'flex'" }
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
"name": "showCloseButton",
|
|
193
|
+
"value": { "type": "boolean", "default": "true" }
|
|
194
|
+
}
|
|
195
|
+
],
|
|
196
|
+
"events": [
|
|
197
|
+
{ "name": "primer:dialog-open", "type": "CustomEvent" },
|
|
198
|
+
{ "name": "primer:dialog-close", "type": "CustomEvent" }
|
|
199
|
+
],
|
|
200
|
+
"js": {
|
|
201
|
+
"properties": [
|
|
202
|
+
{ "name": "size", "type": "'flex' | 'large'" },
|
|
203
|
+
{ "name": "showCloseButton", "type": "boolean" }
|
|
204
|
+
],
|
|
205
|
+
"events": [
|
|
206
|
+
{ "name": "primer:dialog-open", "type": "CustomEvent" },
|
|
207
|
+
{ "name": "primer:dialog-close", "type": "CustomEvent" }
|
|
208
|
+
]
|
|
209
|
+
}
|
|
210
|
+
},
|
|
182
211
|
{
|
|
183
212
|
"name": "primer-collapsable",
|
|
184
213
|
"description": "A collapsable component that smoothly expands and collapses content.\nUses CSS Grid for smooth animation and incorporates the primary button.\n---\n\n\n### **Events:**\n - **expanded-changed**\n\n### **Methods:**\n - **expand(): _void_** - Expand the collapsable programmatically\n- **collapse(): _void_** - Collapse the collapsable programmatically",
|
|
@@ -257,35 +286,6 @@
|
|
|
257
286
|
"events": [{ "name": "expanded-changed", "type": "CustomEvent" }]
|
|
258
287
|
}
|
|
259
288
|
},
|
|
260
|
-
{
|
|
261
|
-
"name": "primer-dialog",
|
|
262
|
-
"description": "\n---\n\n\n### **Events:**\n - **primer:dialog-open**\n- **primer:dialog-close**\n\n### **Methods:**\n - **startExitAnimation(): _void_** - Public method to trigger exit animation programmatically",
|
|
263
|
-
"doc-url": "",
|
|
264
|
-
"attributes": [
|
|
265
|
-
{
|
|
266
|
-
"name": "size",
|
|
267
|
-
"value": { "type": "'flex' | 'large'", "default": "'flex'" }
|
|
268
|
-
},
|
|
269
|
-
{
|
|
270
|
-
"name": "showCloseButton",
|
|
271
|
-
"value": { "type": "boolean", "default": "true" }
|
|
272
|
-
}
|
|
273
|
-
],
|
|
274
|
-
"events": [
|
|
275
|
-
{ "name": "primer:dialog-open", "type": "CustomEvent" },
|
|
276
|
-
{ "name": "primer:dialog-close", "type": "CustomEvent" }
|
|
277
|
-
],
|
|
278
|
-
"js": {
|
|
279
|
-
"properties": [
|
|
280
|
-
{ "name": "size", "type": "'flex' | 'large'" },
|
|
281
|
-
{ "name": "showCloseButton", "type": "boolean" }
|
|
282
|
-
],
|
|
283
|
-
"events": [
|
|
284
|
-
{ "name": "primer:dialog-open", "type": "CustomEvent" },
|
|
285
|
-
{ "name": "primer:dialog-close", "type": "CustomEvent" }
|
|
286
|
-
]
|
|
287
|
-
}
|
|
288
|
-
},
|
|
289
289
|
{
|
|
290
290
|
"name": "primer-error-message",
|
|
291
291
|
"description": "A reusable atomic error message component that displays error information\nwith appropriate styling and accessibility attributes.\n\nThis component is fully accessible and designed to work with screen readers.\nIt includes animations for visibility transitions.\n---\n\n\n### **CSS Parts:**\n - **error-message** - The main error message container\n- **error-icon** - The error icon container\n- **error-content** - The error text content",
|
|
@@ -1535,8 +1535,8 @@
|
|
|
1535
1535
|
}
|
|
1536
1536
|
},
|
|
1537
1537
|
{
|
|
1538
|
-
"name": "primer-input-
|
|
1539
|
-
"description": "
|
|
1538
|
+
"name": "primer-input-cvv",
|
|
1539
|
+
"description": "\n---\n\n\n### **Methods:**\n \n- **getError(): _string|null_** - Get the error code from the hosted input controller when the input is submitted or touched\n\nCan be used instead of the error returned by the `validate()` method since internally `primer-sdk-web`\nuses the same logic to compute the error code\n",
|
|
1540
1540
|
"doc-url": "",
|
|
1541
1541
|
"attributes": [
|
|
1542
1542
|
{
|
|
@@ -1590,8 +1590,8 @@
|
|
|
1590
1590
|
}
|
|
1591
1591
|
},
|
|
1592
1592
|
{
|
|
1593
|
-
"name": "primer-input-
|
|
1594
|
-
"description": "\n---\n\n\n### **Methods:**\n \n- **getError(): _string|null_** - Get the error code from the hosted input controller when the input is submitted or touched\n\nCan be used instead of the error returned by the `validate()` method since internally `primer-sdk-web`\nuses the same logic to compute the error code
|
|
1593
|
+
"name": "primer-input-card-number",
|
|
1594
|
+
"description": "Card number input component with dynamic card network detection and selection\n---\n\n\n### **Methods:**\n \n\n- **getError(): _string|null_** - Get the error code from the hosted input controller when the input is submitted or touched\n\nCan be used instead of the error returned by the `validate()` method since internally `primer-sdk-web`\nuses the same logic to compute the error code",
|
|
1595
1595
|
"doc-url": "",
|
|
1596
1596
|
"attributes": [
|
|
1597
1597
|
{
|
|
@@ -1746,23 +1746,6 @@
|
|
|
1746
1746
|
"events": []
|
|
1747
1747
|
}
|
|
1748
1748
|
},
|
|
1749
|
-
{
|
|
1750
|
-
"name": "primer-payment-method-content",
|
|
1751
|
-
"description": "PaymentMethodContentComponent - renders payment method information with icon and details\nThis component encapsulates the display logic and styles for payment method content\nso it can be reused across different containers without style conflicts\n---\n",
|
|
1752
|
-
"doc-url": "",
|
|
1753
|
-
"attributes": [],
|
|
1754
|
-
"events": [],
|
|
1755
|
-
"js": {
|
|
1756
|
-
"properties": [
|
|
1757
|
-
{
|
|
1758
|
-
"name": "assetConfig",
|
|
1759
|
-
"description": "The asset configuration containing icon and display data",
|
|
1760
|
-
"type": "AssetConfig | null"
|
|
1761
|
-
}
|
|
1762
|
-
],
|
|
1763
|
-
"events": []
|
|
1764
|
-
}
|
|
1765
|
-
},
|
|
1766
1749
|
{
|
|
1767
1750
|
"name": "primer-vault-cvv-input",
|
|
1768
1751
|
"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",
|
|
@@ -1808,6 +1791,23 @@
|
|
|
1808
1791
|
"events": []
|
|
1809
1792
|
}
|
|
1810
1793
|
},
|
|
1794
|
+
{
|
|
1795
|
+
"name": "primer-payment-method-content",
|
|
1796
|
+
"description": "PaymentMethodContentComponent - renders payment method information with icon and details\nThis component encapsulates the display logic and styles for payment method content\nso it can be reused across different containers without style conflicts\n---\n",
|
|
1797
|
+
"doc-url": "",
|
|
1798
|
+
"attributes": [],
|
|
1799
|
+
"events": [],
|
|
1800
|
+
"js": {
|
|
1801
|
+
"properties": [
|
|
1802
|
+
{
|
|
1803
|
+
"name": "assetConfig",
|
|
1804
|
+
"description": "The asset configuration containing icon and display data",
|
|
1805
|
+
"type": "AssetConfig | null"
|
|
1806
|
+
}
|
|
1807
|
+
],
|
|
1808
|
+
"events": []
|
|
1809
|
+
}
|
|
1810
|
+
},
|
|
1811
1811
|
{
|
|
1812
1812
|
"name": "primer-vault-delete-confirmation",
|
|
1813
1813
|
"description": "VaultDeleteConfirmationComponent - displays confirmation UI for deleting a payment method\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": "0.
|
|
5
|
+
"version": "0.15.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/primer-loader.js",
|
|
8
8
|
"types": "./dist/primer-loader.d.ts",
|