@primer-io/primer-js 0.1.4 → 0.1.5
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/dist/custom-elements.json +820 -452
- package/dist/jsx/index.d.ts +8 -6
- package/dist/primer-loader.d.ts +96 -38
- package/dist/primer-loader.js +472 -291
- package/dist/vscode.html-custom-data.json +11 -5
- package/dist/web-types.json +16 -10
- package/package.json +1 -1
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
"name": "primer-checkout",
|
|
7
7
|
"description": "PrimerCheckoutComponent implements the main checkout experience.\nThis component includes a CSS-only loader that displays before the JavaScript\nis fully loaded, ensuring users see a loading indicator immediately.\n\nThe loader can be disabled by:\n1. Adding the 'loader-disabled' attribute to the component\n2. Setting the CSS custom property --primer-loader-disabled: 1\n---\n",
|
|
8
8
|
"attributes": [
|
|
9
|
-
{ "name": "
|
|
10
|
-
{ "name": "
|
|
9
|
+
{ "name": "customStyles", "values": [] },
|
|
10
|
+
{ "name": "clientToken", "values": [] },
|
|
11
11
|
{ "name": "options", "values": [{ "name": "PrimerCheckoutOptions" }] },
|
|
12
12
|
{
|
|
13
|
-
"name": "
|
|
13
|
+
"name": "_jsInitialized",
|
|
14
14
|
"description": "Whether the component has completed initialization and loading\nThis is used to control the CSS-only loader visibility",
|
|
15
15
|
"values": []
|
|
16
16
|
}
|
|
@@ -380,7 +380,13 @@
|
|
|
380
380
|
{
|
|
381
381
|
"name": "primer-vault-manager",
|
|
382
382
|
"description": "VaultManagerComponent - displays and manages saved payment methods\n---\n",
|
|
383
|
-
"attributes": [
|
|
383
|
+
"attributes": [
|
|
384
|
+
{
|
|
385
|
+
"name": "animationDuration",
|
|
386
|
+
"description": "Animation duration override",
|
|
387
|
+
"values": []
|
|
388
|
+
}
|
|
389
|
+
],
|
|
384
390
|
"references": []
|
|
385
391
|
},
|
|
386
392
|
{
|
|
@@ -598,7 +604,7 @@
|
|
|
598
604
|
},
|
|
599
605
|
{
|
|
600
606
|
"name": "primer-vault-payment-method-item",
|
|
601
|
-
"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\n---\n\n\n### **Events:**\n - **delete-payment-method**",
|
|
607
|
+
"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\n\n### **Events:**\n - **delete-payment-method**",
|
|
602
608
|
"attributes": [
|
|
603
609
|
{
|
|
604
610
|
"name": "headlessUtils",
|
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.1.
|
|
4
|
+
"version": "0.1.5",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
"doc-url": "",
|
|
13
13
|
"attributes": [
|
|
14
14
|
{
|
|
15
|
-
"name": "
|
|
15
|
+
"name": "customStyles",
|
|
16
16
|
"value": { "type": "string", "default": "''" }
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
"name": "
|
|
19
|
+
"name": "clientToken",
|
|
20
20
|
"value": { "type": "string", "default": "''" }
|
|
21
21
|
},
|
|
22
22
|
{
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"value": { "type": "PrimerCheckoutOptions", "default": "{}" }
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
|
-
"name": "
|
|
27
|
+
"name": "_jsInitialized",
|
|
28
28
|
"description": "Whether the component has completed initialization and loading\nThis is used to control the CSS-only loader visibility",
|
|
29
29
|
"value": { "type": "boolean", "default": "false" }
|
|
30
30
|
}
|
|
@@ -910,23 +910,29 @@
|
|
|
910
910
|
"name": "primer-vault-manager",
|
|
911
911
|
"description": "VaultManagerComponent - displays and manages saved payment methods\n---\n",
|
|
912
912
|
"doc-url": "",
|
|
913
|
-
"attributes": [
|
|
913
|
+
"attributes": [
|
|
914
|
+
{
|
|
915
|
+
"name": "animationDuration",
|
|
916
|
+
"description": "Animation duration override",
|
|
917
|
+
"value": { "type": "number", "default": "300" }
|
|
918
|
+
}
|
|
919
|
+
],
|
|
914
920
|
"events": [],
|
|
915
921
|
"js": {
|
|
916
922
|
"properties": [
|
|
917
923
|
{
|
|
918
924
|
"name": "addEventListener",
|
|
919
|
-
"description": "Strongly typed event declarations",
|
|
920
925
|
"type": "<K extends keyof VaultManagerEventMap>(\n type: K,\n listener: (ev: VaultManagerEventMap[K]) => void,\n options?: boolean | AddEventListenerOptions,\n ) => void"
|
|
921
926
|
},
|
|
922
927
|
{
|
|
923
928
|
"name": "removeEventListener",
|
|
924
929
|
"type": "<K extends keyof VaultManagerEventMap>(\n type: K,\n listener: (ev: VaultManagerEventMap[K]) => void,\n options?: boolean | AddEventListenerOptions,\n ) => void"
|
|
925
930
|
},
|
|
931
|
+
{ "name": "vaultManagerContext", "type": "VaultManagerContext" },
|
|
926
932
|
{
|
|
927
|
-
"name": "
|
|
928
|
-
"description": "
|
|
929
|
-
"type": "
|
|
933
|
+
"name": "animationDuration",
|
|
934
|
+
"description": "Animation duration override",
|
|
935
|
+
"type": "number"
|
|
930
936
|
}
|
|
931
937
|
],
|
|
932
938
|
"events": []
|
|
@@ -1432,7 +1438,7 @@
|
|
|
1432
1438
|
},
|
|
1433
1439
|
{
|
|
1434
1440
|
"name": "primer-vault-payment-method-item",
|
|
1435
|
-
"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\n---\n\n\n### **Events:**\n - **delete-payment-method**",
|
|
1441
|
+
"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\n\n### **Events:**\n - **delete-payment-method**",
|
|
1436
1442
|
"doc-url": "",
|
|
1437
1443
|
"attributes": [
|
|
1438
1444
|
{
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@primer-io/primer-js",
|
|
3
3
|
"description": "Primer Composable 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.1.
|
|
5
|
+
"version": "0.1.5",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/primer-loader.js",
|
|
8
8
|
"types": "./dist/primer-loader.d.ts",
|