@htmlbricks/hb-page-checkout 0.71.36 → 0.71.37
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/README.md +11 -9
- package/main.iife.js +1 -1
- package/main.iife.js.map +1 -1
- package/manifest.json +80 -55
- package/package.json +1 -1
- package/types/webcomponent.type.d.json +78 -53
- package/types/webcomponent.type.d.ts +4 -4
package/manifest.json
CHANGED
|
@@ -82,81 +82,106 @@
|
|
|
82
82
|
"type": "string"
|
|
83
83
|
},
|
|
84
84
|
"gateways": {
|
|
85
|
-
"
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
85
|
+
"anyOf": [
|
|
86
|
+
{
|
|
87
|
+
"items": {
|
|
88
|
+
"$ref": "#/definitions/IGateway"
|
|
89
|
+
},
|
|
90
|
+
"type": "array"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"type": "string"
|
|
94
|
+
}
|
|
95
|
+
]
|
|
89
96
|
},
|
|
90
97
|
"id": {
|
|
91
98
|
"type": "string"
|
|
92
99
|
},
|
|
93
100
|
"payment": {
|
|
94
|
-
"
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
|
|
100
|
-
|
|
101
|
+
"anyOf": [
|
|
102
|
+
{
|
|
103
|
+
"additionalProperties": false,
|
|
104
|
+
"properties": {
|
|
105
|
+
"countryCode": {
|
|
106
|
+
"enum": [
|
|
107
|
+
"IT",
|
|
108
|
+
"US",
|
|
109
|
+
"EU"
|
|
110
|
+
],
|
|
111
|
+
"type": "string"
|
|
112
|
+
},
|
|
113
|
+
"currencyCode": {
|
|
114
|
+
"type": "string"
|
|
115
|
+
},
|
|
116
|
+
"currencySymbol": {
|
|
117
|
+
"enum": [
|
|
118
|
+
"€",
|
|
119
|
+
"$"
|
|
120
|
+
],
|
|
121
|
+
"type": "string"
|
|
122
|
+
},
|
|
123
|
+
"items": {
|
|
124
|
+
"items": {
|
|
125
|
+
"$ref": "#/definitions/IShopItem"
|
|
126
|
+
},
|
|
127
|
+
"type": "array"
|
|
128
|
+
},
|
|
129
|
+
"merchantName": {
|
|
130
|
+
"type": "string"
|
|
131
|
+
},
|
|
132
|
+
"shipmentFee": {
|
|
133
|
+
"type": "number"
|
|
134
|
+
},
|
|
135
|
+
"total": {
|
|
136
|
+
"type": "number"
|
|
137
|
+
},
|
|
138
|
+
"type": {
|
|
139
|
+
"$ref": "#/definitions/IPaymentType"
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
"required": [
|
|
143
|
+
"countryCode",
|
|
144
|
+
"currencyCode",
|
|
145
|
+
"items",
|
|
146
|
+
"merchantName",
|
|
147
|
+
"total"
|
|
101
148
|
],
|
|
102
|
-
"type": "
|
|
103
|
-
},
|
|
104
|
-
"currencyCode": {
|
|
105
|
-
"type": "string"
|
|
149
|
+
"type": "object"
|
|
106
150
|
},
|
|
107
|
-
|
|
108
|
-
"enum": [
|
|
109
|
-
"€",
|
|
110
|
-
"$"
|
|
111
|
-
],
|
|
151
|
+
{
|
|
112
152
|
"type": "string"
|
|
113
|
-
}
|
|
114
|
-
|
|
153
|
+
}
|
|
154
|
+
]
|
|
155
|
+
},
|
|
156
|
+
"shipments": {
|
|
157
|
+
"anyOf": [
|
|
158
|
+
{
|
|
115
159
|
"items": {
|
|
116
|
-
"$ref": "#/definitions/
|
|
160
|
+
"$ref": "#/definitions/IShipment"
|
|
117
161
|
},
|
|
118
162
|
"type": "array"
|
|
119
163
|
},
|
|
120
|
-
|
|
164
|
+
{
|
|
121
165
|
"type": "string"
|
|
122
|
-
},
|
|
123
|
-
"shipmentFee": {
|
|
124
|
-
"type": "number"
|
|
125
|
-
},
|
|
126
|
-
"total": {
|
|
127
|
-
"type": "number"
|
|
128
|
-
},
|
|
129
|
-
"type": {
|
|
130
|
-
"$ref": "#/definitions/IPaymentType"
|
|
131
166
|
}
|
|
132
|
-
|
|
133
|
-
"required": [
|
|
134
|
-
"countryCode",
|
|
135
|
-
"currencyCode",
|
|
136
|
-
"items",
|
|
137
|
-
"merchantName",
|
|
138
|
-
"total"
|
|
139
|
-
],
|
|
140
|
-
"type": "object"
|
|
141
|
-
},
|
|
142
|
-
"shipments": {
|
|
143
|
-
"items": {
|
|
144
|
-
"$ref": "#/definitions/IShipment"
|
|
145
|
-
},
|
|
146
|
-
"type": "array"
|
|
167
|
+
]
|
|
147
168
|
},
|
|
148
169
|
"style": {
|
|
149
170
|
"type": "string"
|
|
150
171
|
},
|
|
151
172
|
"user": {
|
|
152
|
-
"
|
|
173
|
+
"anyOf": [
|
|
174
|
+
{
|
|
175
|
+
"$ref": "#/definitions/IUser"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"type": "string"
|
|
179
|
+
}
|
|
180
|
+
]
|
|
153
181
|
}
|
|
154
182
|
},
|
|
155
183
|
"required": [
|
|
156
|
-
"
|
|
157
|
-
"user",
|
|
158
|
-
"payment",
|
|
159
|
-
"gateways"
|
|
184
|
+
"user"
|
|
160
185
|
],
|
|
161
186
|
"type": "object"
|
|
162
187
|
},
|
|
@@ -572,7 +597,7 @@
|
|
|
572
597
|
}
|
|
573
598
|
}
|
|
574
599
|
],
|
|
575
|
-
"iifeIntegrity": "sha384-
|
|
600
|
+
"iifeIntegrity": "sha384-JmzATsrX5bsfXYb967cammZJUpu4aQgU4MoPDzkqw/oQeWWDMrmu0C0PUqpHIzuy",
|
|
576
601
|
"dependencies": [
|
|
577
602
|
{
|
|
578
603
|
"name": "hb-checkout-shopping-cart",
|
|
@@ -863,5 +888,5 @@
|
|
|
863
888
|
"size": {},
|
|
864
889
|
"iifePath": "main.iife.js",
|
|
865
890
|
"repoName": "@htmlbricks/hb-page-checkout",
|
|
866
|
-
"version": "0.71.
|
|
891
|
+
"version": "0.71.37"
|
|
867
892
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@htmlbricks/hb-page-checkout",
|
|
3
|
-
"version": "0.71.
|
|
3
|
+
"version": "0.71.37",
|
|
4
4
|
"contributors": [],
|
|
5
5
|
"description": "Checkout page layout that embeds the payment flow and shopping cart: left column uses hb-checkout (user, shipments, gateways, payment) and right column uses hb-checkout-shopping-cart. Recomputes line totals, tax, shipment fee, and payment total from JSON props; updates shipment selection internally and forwards paymentCompleted and saveUser to the host.",
|
|
6
6
|
"licenses": [
|
|
@@ -13,81 +13,106 @@
|
|
|
13
13
|
"type": "string"
|
|
14
14
|
},
|
|
15
15
|
"gateways": {
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
16
|
+
"anyOf": [
|
|
17
|
+
{
|
|
18
|
+
"items": {
|
|
19
|
+
"$ref": "#/definitions/IGateway"
|
|
20
|
+
},
|
|
21
|
+
"type": "array"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"type": "string"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
20
27
|
},
|
|
21
28
|
"id": {
|
|
22
29
|
"type": "string"
|
|
23
30
|
},
|
|
24
31
|
"payment": {
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"
|
|
29
|
-
"
|
|
30
|
-
|
|
31
|
-
|
|
32
|
+
"anyOf": [
|
|
33
|
+
{
|
|
34
|
+
"additionalProperties": false,
|
|
35
|
+
"properties": {
|
|
36
|
+
"countryCode": {
|
|
37
|
+
"enum": [
|
|
38
|
+
"IT",
|
|
39
|
+
"US",
|
|
40
|
+
"EU"
|
|
41
|
+
],
|
|
42
|
+
"type": "string"
|
|
43
|
+
},
|
|
44
|
+
"currencyCode": {
|
|
45
|
+
"type": "string"
|
|
46
|
+
},
|
|
47
|
+
"currencySymbol": {
|
|
48
|
+
"enum": [
|
|
49
|
+
"€",
|
|
50
|
+
"$"
|
|
51
|
+
],
|
|
52
|
+
"type": "string"
|
|
53
|
+
},
|
|
54
|
+
"items": {
|
|
55
|
+
"items": {
|
|
56
|
+
"$ref": "#/definitions/IShopItem"
|
|
57
|
+
},
|
|
58
|
+
"type": "array"
|
|
59
|
+
},
|
|
60
|
+
"merchantName": {
|
|
61
|
+
"type": "string"
|
|
62
|
+
},
|
|
63
|
+
"shipmentFee": {
|
|
64
|
+
"type": "number"
|
|
65
|
+
},
|
|
66
|
+
"total": {
|
|
67
|
+
"type": "number"
|
|
68
|
+
},
|
|
69
|
+
"type": {
|
|
70
|
+
"$ref": "#/definitions/IPaymentType"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"required": [
|
|
74
|
+
"countryCode",
|
|
75
|
+
"currencyCode",
|
|
76
|
+
"items",
|
|
77
|
+
"merchantName",
|
|
78
|
+
"total"
|
|
32
79
|
],
|
|
33
|
-
"type": "
|
|
34
|
-
},
|
|
35
|
-
"currencyCode": {
|
|
36
|
-
"type": "string"
|
|
80
|
+
"type": "object"
|
|
37
81
|
},
|
|
38
|
-
|
|
39
|
-
"enum": [
|
|
40
|
-
"€",
|
|
41
|
-
"$"
|
|
42
|
-
],
|
|
82
|
+
{
|
|
43
83
|
"type": "string"
|
|
44
|
-
}
|
|
45
|
-
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
},
|
|
87
|
+
"shipments": {
|
|
88
|
+
"anyOf": [
|
|
89
|
+
{
|
|
46
90
|
"items": {
|
|
47
|
-
"$ref": "#/definitions/
|
|
91
|
+
"$ref": "#/definitions/IShipment"
|
|
48
92
|
},
|
|
49
93
|
"type": "array"
|
|
50
94
|
},
|
|
51
|
-
|
|
95
|
+
{
|
|
52
96
|
"type": "string"
|
|
53
|
-
},
|
|
54
|
-
"shipmentFee": {
|
|
55
|
-
"type": "number"
|
|
56
|
-
},
|
|
57
|
-
"total": {
|
|
58
|
-
"type": "number"
|
|
59
|
-
},
|
|
60
|
-
"type": {
|
|
61
|
-
"$ref": "#/definitions/IPaymentType"
|
|
62
97
|
}
|
|
63
|
-
|
|
64
|
-
"required": [
|
|
65
|
-
"countryCode",
|
|
66
|
-
"currencyCode",
|
|
67
|
-
"items",
|
|
68
|
-
"merchantName",
|
|
69
|
-
"total"
|
|
70
|
-
],
|
|
71
|
-
"type": "object"
|
|
72
|
-
},
|
|
73
|
-
"shipments": {
|
|
74
|
-
"items": {
|
|
75
|
-
"$ref": "#/definitions/IShipment"
|
|
76
|
-
},
|
|
77
|
-
"type": "array"
|
|
98
|
+
]
|
|
78
99
|
},
|
|
79
100
|
"style": {
|
|
80
101
|
"type": "string"
|
|
81
102
|
},
|
|
82
103
|
"user": {
|
|
83
|
-
"
|
|
104
|
+
"anyOf": [
|
|
105
|
+
{
|
|
106
|
+
"$ref": "#/definitions/IUser"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"type": "string"
|
|
110
|
+
}
|
|
111
|
+
]
|
|
84
112
|
}
|
|
85
113
|
},
|
|
86
114
|
"required": [
|
|
87
|
-
"
|
|
88
|
-
"user",
|
|
89
|
-
"payment",
|
|
90
|
-
"gateways"
|
|
115
|
+
"user"
|
|
91
116
|
],
|
|
92
117
|
"type": "object"
|
|
93
118
|
},
|
|
@@ -12,10 +12,10 @@ import type {
|
|
|
12
12
|
export type Component = {
|
|
13
13
|
id?: string;
|
|
14
14
|
style?: string;
|
|
15
|
-
shipments
|
|
16
|
-
user: IUser;
|
|
17
|
-
payment
|
|
18
|
-
gateways
|
|
15
|
+
shipments?: IShipment[] | string;
|
|
16
|
+
user: IUser | string;
|
|
17
|
+
payment?: (IShoppingPayment & IPayment) | string;
|
|
18
|
+
gateways?: IGateway[] | string;
|
|
19
19
|
completed?: "yes" | "no";
|
|
20
20
|
};
|
|
21
21
|
|