@primer-io/primer-js 0.1.5 → 0.1.7

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.
@@ -24,6 +24,7 @@
24
24
  {
25
25
  "name": "variant",
26
26
  "values": [
27
+ { "name": "" },
27
28
  { "name": "primary" },
28
29
  { "name": "secondary" },
29
30
  { "name": "tertiary" }
@@ -36,8 +37,9 @@
36
37
  "values": []
37
38
  },
38
39
  {
39
- "name": "buttonType",
40
+ "name": "type",
40
41
  "values": [
42
+ { "name": "" },
41
43
  { "name": "button" },
42
44
  { "name": "submit" },
43
45
  { "name": "reset" }
@@ -258,6 +260,7 @@
258
260
  "name": "primer-card-form",
259
261
  "description": "CardFormComponent serves as a container for card input components.\nIt handles form submission, validation, and provides context to child components.\n---\n",
260
262
  "attributes": [
263
+ { "name": "hide-labels", "values": [] },
261
264
  {
262
265
  "name": "paymentManagers",
263
266
  "description": "Payment managers injected from context",
@@ -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.5",
4
+ "version": "0.1.7",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -75,7 +75,7 @@
75
75
  {
76
76
  "name": "variant",
77
77
  "value": {
78
- "type": "'primary' | 'secondary' | 'tertiary'",
78
+ "type": "| 'primary'\n | 'secondary'\n | 'tertiary'",
79
79
  "default": "'primary'"
80
80
  }
81
81
  },
@@ -89,9 +89,9 @@
89
89
  "value": { "type": "boolean", "default": "false" }
90
90
  },
91
91
  {
92
- "name": "buttonType",
92
+ "name": "type",
93
93
  "value": {
94
- "type": "'button' | 'submit' | 'reset'",
94
+ "type": "| 'button'\n | 'submit'\n | 'reset'",
95
95
  "default": "'button'"
96
96
  }
97
97
  },
@@ -114,7 +114,7 @@
114
114
  "properties": [
115
115
  {
116
116
  "name": "variant",
117
- "type": "'primary' | 'secondary' | 'tertiary'"
117
+ "type": "| 'primary'\n | 'secondary'\n | 'tertiary'"
118
118
  },
119
119
  { "name": "disabled", "type": "boolean" },
120
120
  {
@@ -122,7 +122,10 @@
122
122
  "description": "Loading state of the button\nWhen true, the button will display a spinner and be disabled",
123
123
  "type": "boolean"
124
124
  },
125
- { "name": "buttonType", "type": "'button' | 'submit' | 'reset'" },
125
+ {
126
+ "name": "buttonType",
127
+ "type": "| 'button'\n | 'submit'\n | 'reset'"
128
+ },
126
129
  {
127
130
  "name": "selectionState",
128
131
  "description": "Selection state of the button\n- default: Not checked\n- checked: Button is checked",
@@ -649,6 +652,10 @@
649
652
  "description": "CardFormComponent serves as a container for card input components.\nIt handles form submission, validation, and provides context to child components.\n---\n",
650
653
  "doc-url": "",
651
654
  "attributes": [
655
+ {
656
+ "name": "hide-labels",
657
+ "value": { "type": "boolean", "default": "false" }
658
+ },
652
659
  {
653
660
  "name": "paymentManagers",
654
661
  "description": "Payment managers injected from context",
@@ -661,6 +668,7 @@
661
668
  "events": [],
662
669
  "js": {
663
670
  "properties": [
671
+ { "name": "hideLabels", "type": "boolean" },
664
672
  {
665
673
  "name": "paymentManagers",
666
674
  "description": "Payment managers injected from context",
package/package.json CHANGED
@@ -2,13 +2,35 @@
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",
5
+ "version": "0.1.7",
6
6
  "type": "module",
7
7
  "main": "./dist/primer-loader.js",
8
8
  "types": "./dist/primer-loader.d.ts",
9
9
  "publishConfig": {
10
10
  "access": "public"
11
11
  },
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/primer-loader.d.ts",
15
+ "default": "./dist/primer-loader.js"
16
+ },
17
+ "./react": {
18
+ "types": "./dist/primer-react-wrappers.d.ts",
19
+ "default": "./dist/primer-react-wrappers.js"
20
+ },
21
+ "./dist/jsx/index": {
22
+ "types": "./dist/jsx/index.d.ts",
23
+ "default": "./dist/jsx/index.d.ts"
24
+ },
25
+ "./src/types/sdk": {
26
+ "types": "./src/types/sdk.ts",
27
+ "default": "./src/types/sdk.ts"
28
+ },
29
+ "./src/*": "./src/*"
30
+ },
31
+ "peerDependencies": {
32
+ "react": "^18.2.0"
33
+ },
12
34
  "customElements": "dist/custom-elements.json",
13
35
  "web-types": "./dist/web-types.json"
14
36
  }