@primer-io/primer-js 0.3.11 → 0.4.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 +2943 -1337
- package/dist/jsx/index.d.ts +141 -20
- package/dist/primer-loader.d.ts +334 -46
- package/dist/primer-loader.js +21 -33
- package/dist/vscode.html-custom-data.json +92 -21
- package/dist/web-types.json +269 -51
- package/package.json +5 -2
|
@@ -231,6 +231,43 @@
|
|
|
231
231
|
"attributes": [],
|
|
232
232
|
"references": []
|
|
233
233
|
},
|
|
234
|
+
{
|
|
235
|
+
"name": "primer-select",
|
|
236
|
+
"description": "A native select dropdown component\n---\n\n\n### **Events:**\n - **change** - Fired when selection changes\n- **input** - Fired when input value changes\n- **focus** - Fired when select receives focus\n- **blur** - Fired when select loses focus",
|
|
237
|
+
"attributes": [
|
|
238
|
+
{
|
|
239
|
+
"name": "name",
|
|
240
|
+
"description": "The name attribute for the select element",
|
|
241
|
+
"values": []
|
|
242
|
+
},
|
|
243
|
+
{
|
|
244
|
+
"name": "id",
|
|
245
|
+
"description": "The id attribute for the select element",
|
|
246
|
+
"values": []
|
|
247
|
+
},
|
|
248
|
+
{
|
|
249
|
+
"name": "value",
|
|
250
|
+
"description": "The current value of the select",
|
|
251
|
+
"values": []
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
"name": "disabled",
|
|
255
|
+
"description": "Whether the select is disabled",
|
|
256
|
+
"values": []
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
"name": "has-error",
|
|
260
|
+
"description": "Whether the select is in an error state",
|
|
261
|
+
"values": []
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
"name": "placeholder",
|
|
265
|
+
"description": "Placeholder text for the select",
|
|
266
|
+
"values": []
|
|
267
|
+
}
|
|
268
|
+
],
|
|
269
|
+
"references": []
|
|
270
|
+
},
|
|
234
271
|
{
|
|
235
272
|
"name": "primer-spinner",
|
|
236
273
|
"description": "Spinner component with configurable size and color\nAdapted to work both standalone and within input components\n---\n",
|
|
@@ -264,6 +301,12 @@
|
|
|
264
301
|
],
|
|
265
302
|
"references": []
|
|
266
303
|
},
|
|
304
|
+
{
|
|
305
|
+
"name": "primer-billing-address",
|
|
306
|
+
"description": "BillingAddressComponent provides a form for collecting billing address information.\n\nConfiguration is exclusively server-side via SDK Core's checkoutModules. Field visibility\nis determined by the BILLING_ADDRESS module in the client session configuration.\n---\n\n\n### **Events:**\n - **primer-billing-address-change** - Fired when form data changes\n- **primer-billing-address-submit** - Fired when form is submitted\n\n### **Methods:**\n - **validateForSubmission(): _Promise<boolean>_** - Public method to validate billing address fields\nCalled by the parent form (card-form) when submitting\nReturns true if billing address is valid\nNote: Does NOT call setBillingAddress API - that happens after card validation\n- **submitToSDK(): _Promise<boolean>_** - Public method to submit billing address to SDK Core\nCalled by parent form ONLY after both card and billing address validation pass\n\nNote: headlessUtils is guaranteed to be available when this method is called,\nas the component only renders (and becomes interactive) after initialization task completes.",
|
|
307
|
+
"attributes": [],
|
|
308
|
+
"references": []
|
|
309
|
+
},
|
|
267
310
|
{
|
|
268
311
|
"name": "primer-card-form",
|
|
269
312
|
"description": "CardFormComponent serves as a container for card input components.\nIt handles form submission, validation, and provides context to child components.\n---\n",
|
|
@@ -316,26 +359,6 @@
|
|
|
316
359
|
],
|
|
317
360
|
"references": []
|
|
318
361
|
},
|
|
319
|
-
{
|
|
320
|
-
"name": "primer-native-payment",
|
|
321
|
-
"description": "Component for rendering native payment buttons (Apple Pay, Google Pay, PayPal)\nwith proper height calculations based on design system variables.\n---\n",
|
|
322
|
-
"attributes": [
|
|
323
|
-
{
|
|
324
|
-
"name": "paymentMethod",
|
|
325
|
-
"values": [{ "name": "InitializedPaymentMethod" }]
|
|
326
|
-
},
|
|
327
|
-
{
|
|
328
|
-
"name": "paymentManagers",
|
|
329
|
-
"values": [{ "name": "InitializedManagersMap" }]
|
|
330
|
-
},
|
|
331
|
-
{
|
|
332
|
-
"name": "computedStyles",
|
|
333
|
-
"values": [{ "name": "CSSStyleDeclaration" }]
|
|
334
|
-
},
|
|
335
|
-
{ "name": "disabled", "values": [] }
|
|
336
|
-
],
|
|
337
|
-
"references": []
|
|
338
|
-
},
|
|
339
362
|
{
|
|
340
363
|
"name": "primer-payment-method",
|
|
341
364
|
"description": "\n---\n",
|
|
@@ -452,7 +475,7 @@
|
|
|
452
475
|
"values": []
|
|
453
476
|
},
|
|
454
477
|
{
|
|
455
|
-
"name": "
|
|
478
|
+
"name": "headlessUtils",
|
|
456
479
|
"values": [{ "name": "HeadlessUtilsContextType" }]
|
|
457
480
|
},
|
|
458
481
|
{
|
|
@@ -587,6 +610,54 @@
|
|
|
587
610
|
],
|
|
588
611
|
"references": []
|
|
589
612
|
},
|
|
613
|
+
{
|
|
614
|
+
"name": "primer-apple-pay",
|
|
615
|
+
"description": "Apple Pay component with standard button container rendering.\n\nApple Pay uses the standard button container approach:\n- Renders to a button container div (not shadow root)\n- Passes buttonHeight in render options\n- Uses updateOverlayForContainer for disabled state\n- Simpler than Google Pay's shadow root approach\n---\n",
|
|
616
|
+
"attributes": [
|
|
617
|
+
{
|
|
618
|
+
"name": "paymentMethod",
|
|
619
|
+
"values": [{ "name": "InitializedPaymentMethod" }]
|
|
620
|
+
},
|
|
621
|
+
{
|
|
622
|
+
"name": "paymentManagers",
|
|
623
|
+
"values": [{ "name": "InitializedManagersMap" }]
|
|
624
|
+
},
|
|
625
|
+
{ "name": "disabled", "values": [] }
|
|
626
|
+
],
|
|
627
|
+
"references": []
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
"name": "primer-google-pay",
|
|
631
|
+
"description": "Google Pay component with shadow root rendering for full-width button support.\n\nGoogle Pay requires special rendering logic:\n- Renders directly to shadow root (not button container)\n- Does NOT render .native-button-container div\n- Passes shadowRoot: true in render options\n- Requires retry logic for async button rendering\n---\n",
|
|
632
|
+
"attributes": [
|
|
633
|
+
{
|
|
634
|
+
"name": "paymentMethod",
|
|
635
|
+
"values": [{ "name": "InitializedPaymentMethod" }]
|
|
636
|
+
},
|
|
637
|
+
{
|
|
638
|
+
"name": "paymentManagers",
|
|
639
|
+
"values": [{ "name": "InitializedManagersMap" }]
|
|
640
|
+
},
|
|
641
|
+
{ "name": "disabled", "values": [] }
|
|
642
|
+
],
|
|
643
|
+
"references": []
|
|
644
|
+
},
|
|
645
|
+
{
|
|
646
|
+
"name": "primer-paypal",
|
|
647
|
+
"description": "PayPal component with standard button container rendering.\n\nPayPal uses the standard button container approach:\n- Renders to a button container div (not shadow root)\n- Passes buttonHeight in render options with PayPal SDK constraints (25-55px)\n- Uses updateOverlayForContainer for disabled state\n- Warns if height exceeds maximum allowed by PayPal SDK\n---\n",
|
|
648
|
+
"attributes": [
|
|
649
|
+
{
|
|
650
|
+
"name": "paymentMethod",
|
|
651
|
+
"values": [{ "name": "InitializedPaymentMethod" }]
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
"name": "paymentManagers",
|
|
655
|
+
"values": [{ "name": "InitializedManagersMap" }]
|
|
656
|
+
},
|
|
657
|
+
{ "name": "disabled", "values": [] }
|
|
658
|
+
],
|
|
659
|
+
"references": []
|
|
660
|
+
},
|
|
590
661
|
{
|
|
591
662
|
"name": "primer-payment-method-content",
|
|
592
663
|
"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",
|
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.4.0",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -573,6 +573,126 @@
|
|
|
573
573
|
"events": [{ "name": "eventName", "type": "CustomEvent" }]
|
|
574
574
|
}
|
|
575
575
|
},
|
|
576
|
+
{
|
|
577
|
+
"name": "primer-select",
|
|
578
|
+
"description": "A native select dropdown component\n---\n\n\n### **Events:**\n - **change** - Fired when selection changes\n- **input** - Fired when input value changes\n- **focus** - Fired when select receives focus\n- **blur** - Fired when select loses focus",
|
|
579
|
+
"doc-url": "",
|
|
580
|
+
"attributes": [
|
|
581
|
+
{
|
|
582
|
+
"name": "name",
|
|
583
|
+
"description": "The name attribute for the select element",
|
|
584
|
+
"value": { "type": "string", "default": "''" }
|
|
585
|
+
},
|
|
586
|
+
{
|
|
587
|
+
"name": "id",
|
|
588
|
+
"description": "The id attribute for the select element",
|
|
589
|
+
"value": { "type": "string", "default": "''" }
|
|
590
|
+
},
|
|
591
|
+
{
|
|
592
|
+
"name": "value",
|
|
593
|
+
"description": "The current value of the select",
|
|
594
|
+
"value": { "type": "string", "default": "''" }
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"name": "disabled",
|
|
598
|
+
"description": "Whether the select is disabled",
|
|
599
|
+
"value": { "type": "boolean", "default": "false" }
|
|
600
|
+
},
|
|
601
|
+
{
|
|
602
|
+
"name": "has-error",
|
|
603
|
+
"description": "Whether the select is in an error state",
|
|
604
|
+
"value": { "type": "boolean", "default": "false" }
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
"name": "placeholder",
|
|
608
|
+
"description": "Placeholder text for the select",
|
|
609
|
+
"value": { "type": "string", "default": "''" }
|
|
610
|
+
}
|
|
611
|
+
],
|
|
612
|
+
"events": [
|
|
613
|
+
{
|
|
614
|
+
"name": "change",
|
|
615
|
+
"type": "CustomEvent",
|
|
616
|
+
"description": "Fired when selection changes"
|
|
617
|
+
},
|
|
618
|
+
{
|
|
619
|
+
"name": "input",
|
|
620
|
+
"type": "CustomEvent",
|
|
621
|
+
"description": "Fired when input value changes"
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
"name": "focus",
|
|
625
|
+
"type": "CustomEvent",
|
|
626
|
+
"description": "Fired when select receives focus"
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
"name": "blur",
|
|
630
|
+
"type": "CustomEvent",
|
|
631
|
+
"description": "Fired when select loses focus"
|
|
632
|
+
}
|
|
633
|
+
],
|
|
634
|
+
"js": {
|
|
635
|
+
"properties": [
|
|
636
|
+
{
|
|
637
|
+
"name": "name",
|
|
638
|
+
"description": "The name attribute for the select element",
|
|
639
|
+
"type": "string"
|
|
640
|
+
},
|
|
641
|
+
{
|
|
642
|
+
"name": "id",
|
|
643
|
+
"description": "The id attribute for the select element",
|
|
644
|
+
"type": "string"
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
"name": "value",
|
|
648
|
+
"description": "The current value of the select",
|
|
649
|
+
"type": "string"
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
"name": "disabled",
|
|
653
|
+
"description": "Whether the select is disabled",
|
|
654
|
+
"type": "boolean"
|
|
655
|
+
},
|
|
656
|
+
{
|
|
657
|
+
"name": "hasError",
|
|
658
|
+
"description": "Whether the select is in an error state",
|
|
659
|
+
"type": "boolean"
|
|
660
|
+
},
|
|
661
|
+
{
|
|
662
|
+
"name": "placeholder",
|
|
663
|
+
"description": "Placeholder text for the select",
|
|
664
|
+
"type": "string"
|
|
665
|
+
},
|
|
666
|
+
{
|
|
667
|
+
"name": "options",
|
|
668
|
+
"description": "Array of options for the select",
|
|
669
|
+
"type": "SelectOption[]"
|
|
670
|
+
}
|
|
671
|
+
],
|
|
672
|
+
"events": [
|
|
673
|
+
{
|
|
674
|
+
"name": "change",
|
|
675
|
+
"type": "CustomEvent",
|
|
676
|
+
"description": "Fired when selection changes"
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
"name": "input",
|
|
680
|
+
"type": "CustomEvent",
|
|
681
|
+
"description": "Fired when input value changes"
|
|
682
|
+
},
|
|
683
|
+
{
|
|
684
|
+
"name": "focus",
|
|
685
|
+
"type": "CustomEvent",
|
|
686
|
+
"description": "Fired when select receives focus"
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
"name": "blur",
|
|
690
|
+
"type": "CustomEvent",
|
|
691
|
+
"description": "Fired when select loses focus"
|
|
692
|
+
}
|
|
693
|
+
]
|
|
694
|
+
}
|
|
695
|
+
},
|
|
576
696
|
{
|
|
577
697
|
"name": "primer-spinner",
|
|
578
698
|
"description": "Spinner component with configurable size and color\nAdapted to work both standalone and within input components\n---\n",
|
|
@@ -663,6 +783,50 @@
|
|
|
663
783
|
]
|
|
664
784
|
}
|
|
665
785
|
},
|
|
786
|
+
{
|
|
787
|
+
"name": "primer-billing-address",
|
|
788
|
+
"description": "BillingAddressComponent provides a form for collecting billing address information.\n\nConfiguration is exclusively server-side via SDK Core's checkoutModules. Field visibility\nis determined by the BILLING_ADDRESS module in the client session configuration.\n---\n\n\n### **Events:**\n - **primer-billing-address-change** - Fired when form data changes\n- **primer-billing-address-submit** - Fired when form is submitted\n\n### **Methods:**\n - **validateForSubmission(): _Promise<boolean>_** - Public method to validate billing address fields\nCalled by the parent form (card-form) when submitting\nReturns true if billing address is valid\nNote: Does NOT call setBillingAddress API - that happens after card validation\n- **submitToSDK(): _Promise<boolean>_** - Public method to submit billing address to SDK Core\nCalled by parent form ONLY after both card and billing address validation pass\n\nNote: headlessUtils is guaranteed to be available when this method is called,\nas the component only renders (and becomes interactive) after initialization task completes.",
|
|
789
|
+
"doc-url": "",
|
|
790
|
+
"attributes": [],
|
|
791
|
+
"events": [
|
|
792
|
+
{
|
|
793
|
+
"name": "primer-billing-address-change",
|
|
794
|
+
"type": "CustomEvent",
|
|
795
|
+
"description": "Fired when form data changes"
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
"name": "primer-billing-address-submit",
|
|
799
|
+
"type": "CustomEvent",
|
|
800
|
+
"description": "Fired when form is submitted"
|
|
801
|
+
}
|
|
802
|
+
],
|
|
803
|
+
"js": {
|
|
804
|
+
"properties": [
|
|
805
|
+
{
|
|
806
|
+
"name": "configuration",
|
|
807
|
+
"description": "Configuration from SDK Core containing checkoutModules configuration",
|
|
808
|
+
"type": "ConfigurationContextType"
|
|
809
|
+
},
|
|
810
|
+
{
|
|
811
|
+
"name": "headlessUtils",
|
|
812
|
+
"description": "Headless SDK utilities for API methods like setBillingAddress",
|
|
813
|
+
"type": "HeadlessUtilsContextType"
|
|
814
|
+
}
|
|
815
|
+
],
|
|
816
|
+
"events": [
|
|
817
|
+
{
|
|
818
|
+
"name": "primer-billing-address-change",
|
|
819
|
+
"type": "CustomEvent",
|
|
820
|
+
"description": "Fired when form data changes"
|
|
821
|
+
},
|
|
822
|
+
{
|
|
823
|
+
"name": "primer-billing-address-submit",
|
|
824
|
+
"type": "CustomEvent",
|
|
825
|
+
"description": "Fired when form is submitted"
|
|
826
|
+
}
|
|
827
|
+
]
|
|
828
|
+
}
|
|
829
|
+
},
|
|
666
830
|
{
|
|
667
831
|
"name": "primer-card-form",
|
|
668
832
|
"description": "CardFormComponent serves as a container for card input components.\nIt handles form submission, validation, and provides context to child components.\n---\n",
|
|
@@ -820,51 +984,6 @@
|
|
|
820
984
|
"events": []
|
|
821
985
|
}
|
|
822
986
|
},
|
|
823
|
-
{
|
|
824
|
-
"name": "primer-native-payment",
|
|
825
|
-
"description": "Component for rendering native payment buttons (Apple Pay, Google Pay, PayPal)\nwith proper height calculations based on design system variables.\n---\n",
|
|
826
|
-
"doc-url": "",
|
|
827
|
-
"attributes": [
|
|
828
|
-
{
|
|
829
|
-
"name": "paymentMethod",
|
|
830
|
-
"value": { "type": "InitializedPaymentMethod | undefined" }
|
|
831
|
-
},
|
|
832
|
-
{
|
|
833
|
-
"name": "paymentManagers",
|
|
834
|
-
"value": {
|
|
835
|
-
"type": "InitializedManagersMap",
|
|
836
|
-
"default": "new Map()"
|
|
837
|
-
}
|
|
838
|
-
},
|
|
839
|
-
{
|
|
840
|
-
"name": "computedStyles",
|
|
841
|
-
"value": {
|
|
842
|
-
"type": "CSSStyleDeclaration | null",
|
|
843
|
-
"default": "null"
|
|
844
|
-
}
|
|
845
|
-
},
|
|
846
|
-
{
|
|
847
|
-
"name": "disabled",
|
|
848
|
-
"value": { "type": "boolean", "default": "false" }
|
|
849
|
-
}
|
|
850
|
-
],
|
|
851
|
-
"events": [],
|
|
852
|
-
"js": {
|
|
853
|
-
"properties": [
|
|
854
|
-
{
|
|
855
|
-
"name": "paymentMethod",
|
|
856
|
-
"type": "InitializedPaymentMethod | undefined"
|
|
857
|
-
},
|
|
858
|
-
{ "name": "paymentManagers", "type": "InitializedManagersMap" },
|
|
859
|
-
{
|
|
860
|
-
"name": "computedStyles",
|
|
861
|
-
"type": "CSSStyleDeclaration | null"
|
|
862
|
-
},
|
|
863
|
-
{ "name": "disabled", "type": "boolean" }
|
|
864
|
-
],
|
|
865
|
-
"events": []
|
|
866
|
-
}
|
|
867
|
-
},
|
|
868
987
|
{
|
|
869
988
|
"name": "primer-payment-method",
|
|
870
989
|
"description": "\n---\n",
|
|
@@ -1129,7 +1248,7 @@
|
|
|
1129
1248
|
"value": { "type": "string" }
|
|
1130
1249
|
},
|
|
1131
1250
|
{
|
|
1132
|
-
"name": "
|
|
1251
|
+
"name": "headlessUtils",
|
|
1133
1252
|
"value": { "type": "HeadlessUtilsContextType", "default": "null" }
|
|
1134
1253
|
},
|
|
1135
1254
|
{
|
|
@@ -1163,10 +1282,7 @@
|
|
|
1163
1282
|
"description": "The button text to display.\nFalls back to localized default if not explicitly set.",
|
|
1164
1283
|
"type": "string"
|
|
1165
1284
|
},
|
|
1166
|
-
{
|
|
1167
|
-
"name": "headlessInstance",
|
|
1168
|
-
"type": "HeadlessUtilsContextType"
|
|
1169
|
-
},
|
|
1285
|
+
{ "name": "headlessUtils", "type": "HeadlessUtilsContextType" },
|
|
1170
1286
|
{ "name": "clientOptions", "type": "ClientOptionsContextType" },
|
|
1171
1287
|
{ "name": "sdkState", "type": "SdkStateContextType" },
|
|
1172
1288
|
{ "name": "cardFormContext", "type": "CardFormContext | null" },
|
|
@@ -1439,6 +1555,108 @@
|
|
|
1439
1555
|
"events": []
|
|
1440
1556
|
}
|
|
1441
1557
|
},
|
|
1558
|
+
{
|
|
1559
|
+
"name": "primer-apple-pay",
|
|
1560
|
+
"description": "Apple Pay component with standard button container rendering.\n\nApple Pay uses the standard button container approach:\n- Renders to a button container div (not shadow root)\n- Passes buttonHeight in render options\n- Uses updateOverlayForContainer for disabled state\n- Simpler than Google Pay's shadow root approach\n---\n",
|
|
1561
|
+
"doc-url": "",
|
|
1562
|
+
"attributes": [
|
|
1563
|
+
{
|
|
1564
|
+
"name": "paymentMethod",
|
|
1565
|
+
"value": { "type": "InitializedPaymentMethod | undefined" }
|
|
1566
|
+
},
|
|
1567
|
+
{
|
|
1568
|
+
"name": "paymentManagers",
|
|
1569
|
+
"value": {
|
|
1570
|
+
"type": "InitializedManagersMap",
|
|
1571
|
+
"default": "new Map()"
|
|
1572
|
+
}
|
|
1573
|
+
},
|
|
1574
|
+
{
|
|
1575
|
+
"name": "disabled",
|
|
1576
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1577
|
+
}
|
|
1578
|
+
],
|
|
1579
|
+
"events": [],
|
|
1580
|
+
"js": {
|
|
1581
|
+
"properties": [
|
|
1582
|
+
{
|
|
1583
|
+
"name": "paymentMethod",
|
|
1584
|
+
"type": "InitializedPaymentMethod | undefined"
|
|
1585
|
+
},
|
|
1586
|
+
{ "name": "paymentManagers", "type": "InitializedManagersMap" },
|
|
1587
|
+
{ "name": "disabled", "type": "boolean" }
|
|
1588
|
+
],
|
|
1589
|
+
"events": []
|
|
1590
|
+
}
|
|
1591
|
+
},
|
|
1592
|
+
{
|
|
1593
|
+
"name": "primer-google-pay",
|
|
1594
|
+
"description": "Google Pay component with shadow root rendering for full-width button support.\n\nGoogle Pay requires special rendering logic:\n- Renders directly to shadow root (not button container)\n- Does NOT render .native-button-container div\n- Passes shadowRoot: true in render options\n- Requires retry logic for async button rendering\n---\n",
|
|
1595
|
+
"doc-url": "",
|
|
1596
|
+
"attributes": [
|
|
1597
|
+
{
|
|
1598
|
+
"name": "paymentMethod",
|
|
1599
|
+
"value": { "type": "InitializedPaymentMethod | undefined" }
|
|
1600
|
+
},
|
|
1601
|
+
{
|
|
1602
|
+
"name": "paymentManagers",
|
|
1603
|
+
"value": {
|
|
1604
|
+
"type": "InitializedManagersMap",
|
|
1605
|
+
"default": "new Map()"
|
|
1606
|
+
}
|
|
1607
|
+
},
|
|
1608
|
+
{
|
|
1609
|
+
"name": "disabled",
|
|
1610
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1611
|
+
}
|
|
1612
|
+
],
|
|
1613
|
+
"events": [],
|
|
1614
|
+
"js": {
|
|
1615
|
+
"properties": [
|
|
1616
|
+
{
|
|
1617
|
+
"name": "paymentMethod",
|
|
1618
|
+
"type": "InitializedPaymentMethod | undefined"
|
|
1619
|
+
},
|
|
1620
|
+
{ "name": "paymentManagers", "type": "InitializedManagersMap" },
|
|
1621
|
+
{ "name": "disabled", "type": "boolean" }
|
|
1622
|
+
],
|
|
1623
|
+
"events": []
|
|
1624
|
+
}
|
|
1625
|
+
},
|
|
1626
|
+
{
|
|
1627
|
+
"name": "primer-paypal",
|
|
1628
|
+
"description": "PayPal component with standard button container rendering.\n\nPayPal uses the standard button container approach:\n- Renders to a button container div (not shadow root)\n- Passes buttonHeight in render options with PayPal SDK constraints (25-55px)\n- Uses updateOverlayForContainer for disabled state\n- Warns if height exceeds maximum allowed by PayPal SDK\n---\n",
|
|
1629
|
+
"doc-url": "",
|
|
1630
|
+
"attributes": [
|
|
1631
|
+
{
|
|
1632
|
+
"name": "paymentMethod",
|
|
1633
|
+
"value": { "type": "InitializedPaymentMethod | undefined" }
|
|
1634
|
+
},
|
|
1635
|
+
{
|
|
1636
|
+
"name": "paymentManagers",
|
|
1637
|
+
"value": {
|
|
1638
|
+
"type": "InitializedManagersMap",
|
|
1639
|
+
"default": "new Map()"
|
|
1640
|
+
}
|
|
1641
|
+
},
|
|
1642
|
+
{
|
|
1643
|
+
"name": "disabled",
|
|
1644
|
+
"value": { "type": "boolean", "default": "false" }
|
|
1645
|
+
}
|
|
1646
|
+
],
|
|
1647
|
+
"events": [],
|
|
1648
|
+
"js": {
|
|
1649
|
+
"properties": [
|
|
1650
|
+
{
|
|
1651
|
+
"name": "paymentMethod",
|
|
1652
|
+
"type": "InitializedPaymentMethod | undefined"
|
|
1653
|
+
},
|
|
1654
|
+
{ "name": "paymentManagers", "type": "InitializedManagersMap" },
|
|
1655
|
+
{ "name": "disabled", "type": "boolean" }
|
|
1656
|
+
],
|
|
1657
|
+
"events": []
|
|
1658
|
+
}
|
|
1659
|
+
},
|
|
1442
1660
|
{
|
|
1443
1661
|
"name": "primer-payment-method-content",
|
|
1444
1662
|
"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",
|
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.
|
|
5
|
+
"version": "0.4.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/primer-loader.js",
|
|
8
8
|
"types": "./dist/primer-loader.d.ts",
|
|
@@ -11,7 +11,10 @@
|
|
|
11
11
|
"src/primer-checkout.ts",
|
|
12
12
|
"**/*.styles.ts",
|
|
13
13
|
"src/atoms/**/*.component.ts",
|
|
14
|
-
"src/
|
|
14
|
+
"src/atoms/**/*.ts",
|
|
15
|
+
"src/containers/native-payment/components/**/*.ts",
|
|
16
|
+
"src/containers/**/*.component.ts",
|
|
17
|
+
"src/containers/**/*.ts"
|
|
15
18
|
],
|
|
16
19
|
"publishConfig": {
|
|
17
20
|
"access": "public"
|