@primer-io/primer-js 0.7.3 → 0.8.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 +12 -0
- package/dist/custom-elements.json +1552 -1126
- package/dist/jsx/index.d.ts +21 -1
- package/dist/primer-loader.d.ts +179 -1
- package/dist/primer-loader.js +12 -12
- package/dist/vscode.html-custom-data.json +2 -2
- package/dist/web-types.json +29 -7
- package/package.json +1 -1
|
@@ -466,13 +466,13 @@
|
|
|
466
466
|
},
|
|
467
467
|
{
|
|
468
468
|
"name": "primer-show-other-payments",
|
|
469
|
-
"description": "Component for showing/hiding other payment methods when vault is present\nUtilizes the collapsable component for smooth transitions\n---\n",
|
|
469
|
+
"description": "Component for showing/hiding other payment methods when vault is present\nUtilizes the collapsable component for smooth transitions\nSupports custom toggle buttons via slots and external control via events\n---\n\n\n### **Events:**\n - **show-other-payments-toggled**\n\n### **Methods:**\n - **expand(): _void_** - Public API: Expand the accordion programmatically\n- **collapse(): _void_** - Public API: Collapse the accordion programmatically",
|
|
470
470
|
"attributes": [],
|
|
471
471
|
"references": []
|
|
472
472
|
},
|
|
473
473
|
{
|
|
474
474
|
"name": "primer-vault-manager",
|
|
475
|
-
"description": "VaultManagerComponent - displays and manages saved payment methods\n---\n",
|
|
475
|
+
"description": "VaultManagerComponent - displays and manages saved payment methods\n---\n\n\n### **Events:**\n - **primer-vault-payment-error**",
|
|
476
476
|
"attributes": [
|
|
477
477
|
{
|
|
478
478
|
"name": "animationDuration",
|
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.8.0",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -251,6 +251,11 @@
|
|
|
251
251
|
"name": "buttonVariant",
|
|
252
252
|
"description": "The button variant to use",
|
|
253
253
|
"type": "ButtonVariant"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
"name": "isExpanded",
|
|
257
|
+
"description": "Internal state to track expanded state",
|
|
258
|
+
"type": "boolean"
|
|
254
259
|
}
|
|
255
260
|
],
|
|
256
261
|
"events": [{ "name": "expanded-changed", "type": "CustomEvent" }]
|
|
@@ -1242,24 +1247,33 @@
|
|
|
1242
1247
|
},
|
|
1243
1248
|
{
|
|
1244
1249
|
"name": "primer-show-other-payments",
|
|
1245
|
-
"description": "Component for showing/hiding other payment methods when vault is present\nUtilizes the collapsable component for smooth transitions\n---\n",
|
|
1250
|
+
"description": "Component for showing/hiding other payment methods when vault is present\nUtilizes the collapsable component for smooth transitions\nSupports custom toggle buttons via slots and external control via events\n---\n\n\n### **Events:**\n - **show-other-payments-toggled**\n\n### **Methods:**\n - **expand(): _void_** - Public API: Expand the accordion programmatically\n- **collapse(): _void_** - Public API: Collapse the accordion programmatically",
|
|
1246
1251
|
"doc-url": "",
|
|
1247
1252
|
"attributes": [],
|
|
1248
|
-
"events": [
|
|
1253
|
+
"events": [
|
|
1254
|
+
{ "name": "show-other-payments-toggled", "type": "CustomEvent" }
|
|
1255
|
+
],
|
|
1249
1256
|
"js": {
|
|
1250
1257
|
"properties": [
|
|
1251
1258
|
{
|
|
1252
1259
|
"name": "vaultManager",
|
|
1253
1260
|
"description": "Consume the vault manager context to interact with vault state",
|
|
1254
1261
|
"type": "VaultManagerContextType"
|
|
1262
|
+
},
|
|
1263
|
+
{
|
|
1264
|
+
"name": "contextEventsController",
|
|
1265
|
+
"description": "Consume the events context for external control",
|
|
1266
|
+
"type": "EventsContextType"
|
|
1255
1267
|
}
|
|
1256
1268
|
],
|
|
1257
|
-
"events": [
|
|
1269
|
+
"events": [
|
|
1270
|
+
{ "name": "show-other-payments-toggled", "type": "CustomEvent" }
|
|
1271
|
+
]
|
|
1258
1272
|
}
|
|
1259
1273
|
},
|
|
1260
1274
|
{
|
|
1261
1275
|
"name": "primer-vault-manager",
|
|
1262
|
-
"description": "VaultManagerComponent - displays and manages saved payment methods\n---\n",
|
|
1276
|
+
"description": "VaultManagerComponent - displays and manages saved payment methods\n---\n\n\n### **Events:**\n - **primer-vault-payment-error**",
|
|
1263
1277
|
"doc-url": "",
|
|
1264
1278
|
"attributes": [
|
|
1265
1279
|
{
|
|
@@ -1268,7 +1282,9 @@
|
|
|
1268
1282
|
"value": { "type": "number", "default": "300" }
|
|
1269
1283
|
}
|
|
1270
1284
|
],
|
|
1271
|
-
"events": [
|
|
1285
|
+
"events": [
|
|
1286
|
+
{ "name": "primer-vault-payment-error", "type": "CustomEvent" }
|
|
1287
|
+
],
|
|
1272
1288
|
"js": {
|
|
1273
1289
|
"properties": [
|
|
1274
1290
|
{
|
|
@@ -1285,13 +1301,19 @@
|
|
|
1285
1301
|
},
|
|
1286
1302
|
{ "name": "vaultItemContext", "type": "VaultItemContextType" },
|
|
1287
1303
|
{ "name": "headlessUtils", "type": "HeadlessUtilsContextType" },
|
|
1304
|
+
{
|
|
1305
|
+
"name": "contextEventsController",
|
|
1306
|
+
"type": "EventsContextType"
|
|
1307
|
+
},
|
|
1288
1308
|
{
|
|
1289
1309
|
"name": "animationDuration",
|
|
1290
1310
|
"description": "Animation duration override",
|
|
1291
1311
|
"type": "number"
|
|
1292
1312
|
}
|
|
1293
1313
|
],
|
|
1294
|
-
"events": [
|
|
1314
|
+
"events": [
|
|
1315
|
+
{ "name": "primer-vault-payment-error", "type": "CustomEvent" }
|
|
1316
|
+
]
|
|
1295
1317
|
}
|
|
1296
1318
|
},
|
|
1297
1319
|
{
|
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.8.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "./dist/primer-loader.js",
|
|
8
8
|
"types": "./dist/primer-loader.d.ts",
|