@htmlbricks/hb-checkout 0.8.43 → 0.8.45

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/release/docs.mjs DELETED
@@ -1,113 +0,0 @@
1
- export var storybookArgs = {
2
- shipments: { control: { type: "array" } },
3
- user: { control: { type: "object" } },
4
- payment: { control: { type: "object" } },
5
- paymentCompleted: { action: "paymentCompleted" },
6
- saveUser: { action: "saveUser" },
7
- saveShipment: { action: "saveShipment" },
8
- gateways: { control: { type: "array" } },
9
- setGateway: { action: "setGateway" },
10
- completed: { control: { type: "radio" }, options: ["yes", "no"] }
11
- };
12
- var cssVars = [
13
- {
14
- name: "--edit-color",
15
- defaultValue: "green",
16
- description: "",
17
- valueType: "color"
18
- },
19
- {
20
- name: "--paypal-button-color",
21
- defaultValue: "yellow",
22
- description: "",
23
- valueType: "color"
24
- },
25
- {
26
- name: "--hb-heckout-border",
27
- defaultValue: "0.5px solid rgba(197, 197, 197, 0.808)",
28
- description: "",
29
- valueType: "string"
30
- },
31
- { name: "--bs-primary", valueType: "color", theme: "bootstrap", defaultValue: "#07689f" },
32
- { name: "--bs-secondary", valueType: "color", theme: "bootstrap", defaultValue: "#c9d6df" },
33
- { name: "--bs-success", valueType: "color", theme: "bootstrap", defaultValue: "#11d3bc" },
34
- { name: "--bs-info", valueType: "color", theme: "bootstrap", defaultValue: "#a2d5f2" },
35
- { name: "--bs-warning", valueType: "color", theme: "bootstrap", defaultValue: "#ffc107" },
36
- { name: "--bs-danger", valueType: "color", theme: "bootstrap", defaultValue: "#f67280" },
37
- ];
38
- export var cssParts = [
39
- {
40
- name: "title"
41
- },
42
- {
43
- name: "subtitle"
44
- },
45
- ];
46
- export var htmlSlots = [
47
- {
48
- name: "payment_terms"
49
- },
50
- {
51
- name: "payment_completed"
52
- },
53
- {
54
- name: "userinfo"
55
- },
56
- {
57
- name: "title"
58
- },
59
- ];
60
- export var i18nLanguages = [];
61
- export var styleSetup = {
62
- vars: cssVars,
63
- parts: cssParts
64
- };
65
- var paypal = {
66
- id: "paypal",
67
- label: "bbbb",
68
- paypalid: "test"
69
- };
70
- var defaultPayment = {
71
- merchantName: "testmerchant",
72
- countryCode: "it",
73
- currencyCode: "EUR",
74
- total: 45,
75
- type: "buy"
76
- };
77
- var examples = [
78
- {
79
- shipments: [
80
- {
81
- price: 10,
82
- currency: "€",
83
- arriveDate: new Date("2022-01-20T08:03:57.562Z"),
84
- available: true,
85
- label: "zio barca",
86
- id: "ziobarca"
87
- },
88
- {
89
- price: 20,
90
- currency: "€",
91
- arriveDate: new Date("2022-01-21T02:22:57.562Z"),
92
- available: true,
93
- label: "zio barca2",
94
- id: "ziobarca2"
95
- },
96
- ],
97
- gateways: [paypal],
98
- payment: defaultPayment
99
- },
100
- ];
101
- export var componentSetup = {
102
- definitions: null,
103
- storybookArgs: storybookArgs,
104
- styleSetup: styleSetup,
105
- htmlSlots: htmlSlots,
106
- i18n: i18nLanguages,
107
- examples: examples,
108
- name: "hb-checkout",
109
- category: "payment",
110
- tags: ["payment"],
111
- size: {}
112
- };
113
- //# sourceMappingURL=docs.js.map
@@ -1,208 +0,0 @@
1
- {
2
- "$ref": "#/definitions/Component",
3
- "$schema": "http://json-schema.org/draft-07/schema#",
4
- "definitions": {
5
- "Component": {
6
- "additionalProperties": false,
7
- "properties": {
8
- "completed": {
9
- "enum": [
10
- "yes",
11
- "no"
12
- ],
13
- "type": "string"
14
- },
15
- "gateways": {
16
- "items": {
17
- "$ref": "#/definitions/IGateway"
18
- },
19
- "type": "array"
20
- },
21
- "id": {
22
- "type": "string"
23
- },
24
- "payment": {
25
- "$ref": "#/definitions/IPayment"
26
- },
27
- "shipments": {
28
- "items": {
29
- "$ref": "#/definitions/IShipment"
30
- },
31
- "type": "array"
32
- },
33
- "style": {
34
- "type": "string"
35
- },
36
- "user": {
37
- "$ref": "#/definitions/IUser"
38
- }
39
- },
40
- "required": [
41
- "shipments",
42
- "gateways",
43
- "payment"
44
- ],
45
- "type": "object"
46
- },
47
- "IGateway": {
48
- "additionalProperties": false,
49
- "properties": {
50
- "cardNetworks": {
51
- "items": {
52
- "type": "string"
53
- },
54
- "type": "array"
55
- },
56
- "currency": {
57
- "enum": [
58
- "€",
59
- "$"
60
- ],
61
- "type": "string"
62
- },
63
- "fixedPrice": {
64
- "type": "number"
65
- },
66
- "gatewayId": {
67
- "type": "string"
68
- },
69
- "gatewayMerchantId": {
70
- "type": "string"
71
- },
72
- "id": {
73
- "enum": [
74
- "google",
75
- "paypal"
76
- ],
77
- "type": "string"
78
- },
79
- "label": {
80
- "type": "string"
81
- },
82
- "merchantId": {
83
- "type": "string"
84
- },
85
- "paypalid": {
86
- "type": "string"
87
- },
88
- "percentagePrice": {
89
- "type": "number"
90
- }
91
- },
92
- "required": [
93
- "id",
94
- "label"
95
- ],
96
- "type": "object"
97
- },
98
- "IPayment": {
99
- "additionalProperties": false,
100
- "properties": {
101
- "countryCode": {
102
- "type": "string"
103
- },
104
- "currencyCode": {
105
- "type": "string"
106
- },
107
- "merchantName": {
108
- "type": "string"
109
- },
110
- "shipmentFee": {
111
- "type": "number"
112
- },
113
- "total": {
114
- "type": "number"
115
- },
116
- "type": {
117
- "$ref": "#/definitions/IPaymentType"
118
- }
119
- },
120
- "required": [
121
- "merchantName",
122
- "total",
123
- "currencyCode",
124
- "countryCode"
125
- ],
126
- "type": "object"
127
- },
128
- "IPaymentType": {
129
- "enum": [
130
- "book",
131
- "buy",
132
- "checkout",
133
- "donate",
134
- "order",
135
- "pay",
136
- "plain",
137
- "subscribe"
138
- ],
139
- "type": "string"
140
- },
141
- "IShipment": {
142
- "additionalProperties": false,
143
- "properties": {
144
- "arriveDate": {
145
- "format": "date-time",
146
- "type": "string"
147
- },
148
- "available": {
149
- "type": "boolean"
150
- },
151
- "currency": {
152
- "type": "string"
153
- },
154
- "id": {
155
- "type": "string"
156
- },
157
- "label": {
158
- "type": "string"
159
- },
160
- "price": {
161
- "type": "number"
162
- },
163
- "selected": {
164
- "type": "boolean"
165
- },
166
- "standard": {
167
- "type": "boolean"
168
- }
169
- },
170
- "required": [
171
- "price",
172
- "arriveDate",
173
- "available",
174
- "id",
175
- "label",
176
- "currency"
177
- ],
178
- "type": "object"
179
- },
180
- "IUser": {
181
- "additionalProperties": false,
182
- "properties": {
183
- "addressWithNumber": {
184
- "type": "string"
185
- },
186
- "city": {
187
- "type": "string"
188
- },
189
- "fixed": {
190
- "type": "boolean"
191
- },
192
- "fullName": {
193
- "type": "string"
194
- },
195
- "nationality": {
196
- "type": "string"
197
- },
198
- "zip": {
199
- "type": "string"
200
- }
201
- },
202
- "required": [
203
- "fullName"
204
- ],
205
- "type": "object"
206
- }
207
- }
208
- }
@@ -1,149 +0,0 @@
1
- {
2
- "$ref": "#/definitions/Events",
3
- "$schema": "http://json-schema.org/draft-07/schema#",
4
- "definitions": {
5
- "Events": {
6
- "additionalProperties": false,
7
- "properties": {
8
- "completed": {
9
- "additionalProperties": false,
10
- "properties": {
11
- "control": {
12
- "additionalProperties": false,
13
- "properties": {
14
- "type": {
15
- "const": "radio",
16
- "type": "string"
17
- }
18
- },
19
- "required": [
20
- "type"
21
- ],
22
- "type": "object"
23
- },
24
- "options": {
25
- "items": [
26
- {
27
- "const": "yes",
28
- "type": "string"
29
- },
30
- {
31
- "const": "no",
32
- "type": "string"
33
- }
34
- ],
35
- "maxItems": 2,
36
- "minItems": 2,
37
- "type": "array"
38
- }
39
- },
40
- "required": [
41
- "control",
42
- "options"
43
- ],
44
- "type": "object"
45
- },
46
- "paymentCompleted": {
47
- "additionalProperties": false,
48
- "properties": {
49
- "completed": {
50
- "const": true,
51
- "type": "boolean"
52
- },
53
- "method": {
54
- "type": "string"
55
- },
56
- "total": {
57
- "type": "number"
58
- }
59
- },
60
- "required": [
61
- "total",
62
- "method",
63
- "completed"
64
- ],
65
- "type": "object"
66
- },
67
- "saveShipment": {
68
- "$ref": "#/definitions/IShipment"
69
- },
70
- "saveUser": {
71
- "$ref": "#/definitions/IUser"
72
- }
73
- },
74
- "required": [
75
- "paymentCompleted",
76
- "saveUser",
77
- "saveShipment",
78
- "completed"
79
- ],
80
- "type": "object"
81
- },
82
- "IShipment": {
83
- "additionalProperties": false,
84
- "properties": {
85
- "arriveDate": {
86
- "format": "date-time",
87
- "type": "string"
88
- },
89
- "available": {
90
- "type": "boolean"
91
- },
92
- "currency": {
93
- "type": "string"
94
- },
95
- "id": {
96
- "type": "string"
97
- },
98
- "label": {
99
- "type": "string"
100
- },
101
- "price": {
102
- "type": "number"
103
- },
104
- "selected": {
105
- "type": "boolean"
106
- },
107
- "standard": {
108
- "type": "boolean"
109
- }
110
- },
111
- "required": [
112
- "price",
113
- "arriveDate",
114
- "available",
115
- "id",
116
- "label",
117
- "currency"
118
- ],
119
- "type": "object"
120
- },
121
- "IUser": {
122
- "additionalProperties": false,
123
- "properties": {
124
- "addressWithNumber": {
125
- "type": "string"
126
- },
127
- "city": {
128
- "type": "string"
129
- },
130
- "fixed": {
131
- "type": "boolean"
132
- },
133
- "fullName": {
134
- "type": "string"
135
- },
136
- "nationality": {
137
- "type": "string"
138
- },
139
- "zip": {
140
- "type": "string"
141
- }
142
- },
143
- "required": [
144
- "fullName"
145
- ],
146
- "type": "object"
147
- }
148
- }
149
- }