@htmlbricks/hb-page-checkout 0.71.35 → 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/manifest.json CHANGED
@@ -82,81 +82,106 @@
82
82
  "type": "string"
83
83
  },
84
84
  "gateways": {
85
- "items": {
86
- "$ref": "#/definitions/IGateway"
87
- },
88
- "type": "array"
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
- "additionalProperties": false,
95
- "properties": {
96
- "countryCode": {
97
- "enum": [
98
- "IT",
99
- "US",
100
- "EU"
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": "string"
103
- },
104
- "currencyCode": {
105
- "type": "string"
149
+ "type": "object"
106
150
  },
107
- "currencySymbol": {
108
- "enum": [
109
- "€",
110
- "$"
111
- ],
151
+ {
112
152
  "type": "string"
113
- },
114
- "items": {
153
+ }
154
+ ]
155
+ },
156
+ "shipments": {
157
+ "anyOf": [
158
+ {
115
159
  "items": {
116
- "$ref": "#/definitions/IShopItem"
160
+ "$ref": "#/definitions/IShipment"
117
161
  },
118
162
  "type": "array"
119
163
  },
120
- "merchantName": {
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
- "$ref": "#/definitions/IUser"
173
+ "anyOf": [
174
+ {
175
+ "$ref": "#/definitions/IUser"
176
+ },
177
+ {
178
+ "type": "string"
179
+ }
180
+ ]
153
181
  }
154
182
  },
155
183
  "required": [
156
- "shipments",
157
- "user",
158
- "payment",
159
- "gateways"
184
+ "user"
160
185
  ],
161
186
  "type": "object"
162
187
  },
@@ -365,7 +390,7 @@
365
390
  "vars": [
366
391
  {
367
392
  "name": "--bulma-column-gap",
368
- "valueType": "number",
393
+ "valueType": "string",
369
394
  "defaultValue": "0.75rem",
370
395
  "description": "Gap between checkout and cart columns."
371
396
  },
@@ -375,10 +400,16 @@
375
400
  "defaultValue": "#363636",
376
401
  "description": "Inherited by nested checkout components."
377
402
  },
403
+ {
404
+ "name": "--bulma-scheme-main",
405
+ "valueType": "color",
406
+ "defaultValue": "#ffffff",
407
+ "description": "Page background inside the host shell."
408
+ },
378
409
  {
379
410
  "name": "--hb-checkout-border",
380
411
  "valueType": "color",
381
- "defaultValue": "",
412
+ "defaultValue": "#dbdbdb",
382
413
  "description": "Border around the cart column and shared divider tone."
383
414
  }
384
415
  ],
@@ -566,7 +597,7 @@
566
597
  }
567
598
  }
568
599
  ],
569
- "iifeIntegrity": "sha384-+exk7otDHErT3XAt0DIKbQcLqsHIkPP6V3zNshQo/pUCUJcNgPyiklrk0jyALYwk",
600
+ "iifeIntegrity": "sha384-JmzATsrX5bsfXYb967cammZJUpu4aQgU4MoPDzkqw/oQeWWDMrmu0C0PUqpHIzuy",
570
601
  "dependencies": [
571
602
  {
572
603
  "name": "hb-checkout-shopping-cart",
@@ -857,5 +888,5 @@
857
888
  "size": {},
858
889
  "iifePath": "main.iife.js",
859
890
  "repoName": "@htmlbricks/hb-page-checkout",
860
- "version": "0.71.35"
891
+ "version": "0.71.37"
861
892
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-page-checkout",
3
- "version": "0.71.35",
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
- "items": {
17
- "$ref": "#/definitions/IGateway"
18
- },
19
- "type": "array"
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
- "additionalProperties": false,
26
- "properties": {
27
- "countryCode": {
28
- "enum": [
29
- "IT",
30
- "US",
31
- "EU"
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": "string"
34
- },
35
- "currencyCode": {
36
- "type": "string"
80
+ "type": "object"
37
81
  },
38
- "currencySymbol": {
39
- "enum": [
40
- "€",
41
- "$"
42
- ],
82
+ {
43
83
  "type": "string"
44
- },
45
- "items": {
84
+ }
85
+ ]
86
+ },
87
+ "shipments": {
88
+ "anyOf": [
89
+ {
46
90
  "items": {
47
- "$ref": "#/definitions/IShopItem"
91
+ "$ref": "#/definitions/IShipment"
48
92
  },
49
93
  "type": "array"
50
94
  },
51
- "merchantName": {
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
- "$ref": "#/definitions/IUser"
104
+ "anyOf": [
105
+ {
106
+ "$ref": "#/definitions/IUser"
107
+ },
108
+ {
109
+ "type": "string"
110
+ }
111
+ ]
84
112
  }
85
113
  },
86
114
  "required": [
87
- "shipments",
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: IShipment[];
16
- user: IUser;
17
- payment: IShoppingPayment & IPayment;
18
- gateways: IGateway[];
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