@htmlbricks/hb-checkout 0.8.37 → 0.8.39

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/extra/docs.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup } from "@htmlbricks/hb-jsutils/main";
1
+ import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup, ComponentSetup } from "@htmlbricks/hb-jsutils/main";
2
2
 
3
3
  export const storybookArgs = {
4
4
  shipments: { control: { type: "array" } },
@@ -69,7 +69,8 @@ export const styleSetup: StyleSetup = {
69
69
  parts: cssParts,
70
70
  };
71
71
 
72
- export const componentSetup = {
72
+ export const componentSetup: ComponentSetup = {
73
+ definitions: null,
73
74
  storybookArgs,
74
75
  styleSetup,
75
76
  htmlSlots,
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@htmlbricks/hb-checkout",
3
3
  "displayName": "Svelte Payment WebComponent",
4
4
  "description": "Svelte Payment WebComponent",
5
- "version": "0.8.37",
5
+ "version": "0.8.39",
6
6
  "main": "release/release.js",
7
7
  "publishConfig": {
8
8
  "access": "public"
@@ -20,15 +20,18 @@
20
20
  "start": "sirv dist",
21
21
  "dev": "rm -rf ./dist && rollup -c -w",
22
22
  "build": "rm -rf ./dist && rollup -c",
23
- "generate-docs": "cp $PWD/dist/docs.js $PWD/dist/docs.mjs && generate-json-from-js-object --input $PWD/dist/docs.mjs --var componentSetup --output $PWD/dist/docs.type.d.json && rm $PWD/dist/docs.mjs",
24
- "generate-schema": "ts-json-schema-generator --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent.type.d.json",
23
+ "generate-manifest": "npm run generate-schemes && manifester --dir $PWD",
24
+ "generate-component-schema": "ts-json-schema-generator --type 'Component' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent.type.d.json",
25
+ "generate-events-schema": "ts-json-schema-generator --type 'Events' --path 'app/types/webcomponent.type.d.ts' > dist/webcomponent_events.type.d.json",
26
+ "generate-schemes": "npm run generate-events-schema && npm run generate-component-schema",
25
27
  "copydest": "rm -rf release && mkdir -p release && mkdir -p release && cp dist/* ./release/",
26
28
  "build-extra": "tsc --moduleResolution node --module es2020 --esModuleInterop true --outDir dist --sourceMap --skipLibCheck extra/*",
27
- "build:release": "PRODUCTION=true npm run build && npm run build-extra && npm run generate-schema && npm run generate-docs && npm run copydest",
29
+ "build:release": "PRODUCTION=true npm run build && npm run build-extra && npm run generate-manifest && npm run copydest",
28
30
  "prepublish": "npm run build:release"
29
31
  },
30
32
  "devDependencies": {
31
- "@htmlbricks/hb-jsutils": "^0.8.37",
33
+ "@htmlbricks/hb-jsutils": "^0.8.39",
34
+ "@htmlbricks/manifester": "^0.0.5",
32
35
  "@rollup/plugin-alias": "^3.1.2",
33
36
  "@rollup/plugin-commonjs": "^18.0.0",
34
37
  "@rollup/plugin-json": "^4.1.0",
@@ -42,7 +45,6 @@
42
45
  "eslint": "^7.25.0",
43
46
  "eslint-plugin-jsdoc": "^33.0.0",
44
47
  "eslint-plugin-svelte3": "^3.2.0",
45
- "generate-json-from-js-object": "^0.0.17",
46
48
  "node-sass": "^6.0.1",
47
49
  "postcss": "^8.2.13",
48
50
  "postcss-load-config": "^3.0.1",
@@ -69,8 +71,8 @@
69
71
  },
70
72
  "dependencies": {
71
73
  "@google-pay/button-element": "^3.0.0",
72
- "@htmlbricks/hb-form": "^0.8.37",
73
- "@htmlbricks/hb-payment-paypal": "^0.8.37",
74
+ "@htmlbricks/hb-form": "^0.8.39",
75
+ "@htmlbricks/hb-payment-paypal": "^0.8.39",
74
76
  "dayjs": "^1.10.7",
75
77
  "debounce": "^1.2.1"
76
78
  },
@@ -81,5 +83,5 @@
81
83
  "html5-webcomponents"
82
84
  ],
83
85
  "contributors": [],
84
- "gitHead": "1a737cc2f90ff5f9c3bd06a155743e47329e8861"
86
+ "gitHead": "a771bab3b3337eaa36e3c3330545158c3ef927e6"
85
87
  }
package/release/docs.js CHANGED
@@ -63,6 +63,7 @@ export var styleSetup = {
63
63
  parts: cssParts
64
64
  };
65
65
  export var componentSetup = {
66
+ definitions: null,
66
67
  storybookArgs: storybookArgs,
67
68
  styleSetup: styleSetup,
68
69
  htmlSlots: htmlSlots,
@@ -1 +1 @@
1
- {"version":3,"file":"docs.js","sourceRoot":"","sources":["../extra/docs.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,IAAM,aAAa,GAAG;IAC5B,SAAS,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IACzC,IAAI,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACrC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;IACxC,gBAAgB,EAAE,EAAE,MAAM,EAAE,kBAAkB,EAAE;IAChD,QAAQ,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE;IAChC,YAAY,EAAE,EAAE,MAAM,EAAE,cAAc,EAAE;IACxC,QAAQ,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;IACxC,UAAU,EAAE,EAAE,MAAM,EAAE,YAAY,EAAE;IACpC,SAAS,EAAE,EAAE,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,CAAC,KAAK,EAAE,IAAI,CAAC,EAAE;CACjE,CAAC;AAEF,IAAM,OAAO,GAAa;IACzB;QACC,IAAI,EAAE,cAAc;QACpB,YAAY,EAAE,OAAO;QACrB,WAAW,EAAE,EAAE;QACf,SAAS,EAAE,OAAO;KAClB;IACD;QACC,IAAI,EAAE,uBAAuB;QAC7B,YAAY,EAAE,QAAQ;QACtB,WAAW,EAAE,EAAE;QACf,SAAS,EAAE,OAAO;KAClB;IACD;QACC,IAAI,EAAE,qBAAqB;QAC3B,YAAY,EAAE,wCAAwC;QACtD,WAAW,EAAE,EAAE;QACf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ACnB,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,EAAE;IACR,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE,EAAE;IACR,IAAI,EAAE,EAAE;CACR,CAAC"}
@@ -0,0 +1,77 @@
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
+ export var componentSetup = {
66
+ definitions: null,
67
+ storybookArgs: storybookArgs,
68
+ styleSetup: styleSetup,
69
+ htmlSlots: htmlSlots,
70
+ i18n: i18nLanguages,
71
+ examples: [],
72
+ name: "",
73
+ category: "",
74
+ tags: [],
75
+ size: {}
76
+ };
77
+ //# sourceMappingURL=docs.js.map
package/release/docs.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup } from "@htmlbricks/hb-jsutils/main";
1
+ import type { CssPart, CssVar, HtmlSlot, i18nLang, StyleSetup, ComponentSetup } from "@htmlbricks/hb-jsutils/main";
2
2
 
3
3
  export const storybookArgs = {
4
4
  shipments: { control: { type: "array" } },
@@ -69,7 +69,8 @@ export const styleSetup: StyleSetup = {
69
69
  parts: cssParts,
70
70
  };
71
71
 
72
- export const componentSetup = {
72
+ export const componentSetup: ComponentSetup = {
73
+ definitions: null,
73
74
  storybookArgs,
74
75
  styleSetup,
75
76
  htmlSlots,
@@ -0,0 +1,490 @@
1
+ {
2
+ "definitions": {
3
+ "events": {
4
+ "$ref": "#/definitions/Events",
5
+ "$schema": "http://json-schema.org/draft-07/schema#",
6
+ "definitions": {
7
+ "Events": {
8
+ "additionalProperties": false,
9
+ "properties": {
10
+ "completed": {
11
+ "additionalProperties": false,
12
+ "properties": {
13
+ "control": {
14
+ "additionalProperties": false,
15
+ "properties": {
16
+ "type": {
17
+ "const": "radio",
18
+ "type": "string"
19
+ }
20
+ },
21
+ "required": [
22
+ "type"
23
+ ],
24
+ "type": "object"
25
+ },
26
+ "options": {
27
+ "items": [
28
+ {
29
+ "const": "yes",
30
+ "type": "string"
31
+ },
32
+ {
33
+ "const": "no",
34
+ "type": "string"
35
+ }
36
+ ],
37
+ "maxItems": 2,
38
+ "minItems": 2,
39
+ "type": "array"
40
+ }
41
+ },
42
+ "required": [
43
+ "control",
44
+ "options"
45
+ ],
46
+ "type": "object"
47
+ },
48
+ "paymentCompleted": {
49
+ "additionalProperties": false,
50
+ "properties": {
51
+ "completed": {
52
+ "const": true,
53
+ "type": "boolean"
54
+ },
55
+ "method": {
56
+ "type": "string"
57
+ },
58
+ "total": {
59
+ "type": "number"
60
+ }
61
+ },
62
+ "required": [
63
+ "total",
64
+ "method",
65
+ "completed"
66
+ ],
67
+ "type": "object"
68
+ },
69
+ "saveShipment": {
70
+ "$ref": "#/definitions/IShipment"
71
+ },
72
+ "saveUser": {
73
+ "$ref": "#/definitions/IUser"
74
+ }
75
+ },
76
+ "required": [
77
+ "paymentCompleted",
78
+ "saveUser",
79
+ "saveShipment",
80
+ "completed"
81
+ ],
82
+ "type": "object"
83
+ },
84
+ "IShipment": {
85
+ "additionalProperties": false,
86
+ "properties": {
87
+ "arriveDate": {
88
+ "format": "date-time",
89
+ "type": "string"
90
+ },
91
+ "available": {
92
+ "type": "boolean"
93
+ },
94
+ "currency": {
95
+ "type": "string"
96
+ },
97
+ "id": {
98
+ "type": "string"
99
+ },
100
+ "label": {
101
+ "type": "string"
102
+ },
103
+ "price": {
104
+ "type": "number"
105
+ },
106
+ "selected": {
107
+ "type": "boolean"
108
+ },
109
+ "standard": {
110
+ "type": "boolean"
111
+ }
112
+ },
113
+ "required": [
114
+ "price",
115
+ "arriveDate",
116
+ "available",
117
+ "id",
118
+ "label",
119
+ "currency"
120
+ ],
121
+ "type": "object"
122
+ },
123
+ "IUser": {
124
+ "additionalProperties": false,
125
+ "properties": {
126
+ "addressWithNumber": {
127
+ "type": "string"
128
+ },
129
+ "city": {
130
+ "type": "string"
131
+ },
132
+ "fixed": {
133
+ "type": "boolean"
134
+ },
135
+ "fullName": {
136
+ "type": "string"
137
+ },
138
+ "nationality": {
139
+ "type": "string"
140
+ },
141
+ "zip": {
142
+ "type": "string"
143
+ }
144
+ },
145
+ "required": [
146
+ "fullName"
147
+ ],
148
+ "type": "object"
149
+ }
150
+ }
151
+ },
152
+ "component": {
153
+ "$ref": "#/definitions/Component",
154
+ "$schema": "http://json-schema.org/draft-07/schema#",
155
+ "definitions": {
156
+ "Component": {
157
+ "additionalProperties": false,
158
+ "properties": {
159
+ "completed": {
160
+ "enum": [
161
+ "yes",
162
+ "no"
163
+ ],
164
+ "type": "string"
165
+ },
166
+ "gateways": {
167
+ "items": {
168
+ "$ref": "#/definitions/IGateway"
169
+ },
170
+ "type": "array"
171
+ },
172
+ "id": {
173
+ "type": "string"
174
+ },
175
+ "payment": {
176
+ "$ref": "#/definitions/IPayment"
177
+ },
178
+ "shipments": {
179
+ "items": {
180
+ "$ref": "#/definitions/IShipment"
181
+ },
182
+ "type": "array"
183
+ },
184
+ "style": {
185
+ "type": "string"
186
+ },
187
+ "user": {
188
+ "$ref": "#/definitions/IUser"
189
+ }
190
+ },
191
+ "required": [
192
+ "shipments",
193
+ "gateways",
194
+ "payment"
195
+ ],
196
+ "type": "object"
197
+ },
198
+ "IGateway": {
199
+ "additionalProperties": false,
200
+ "properties": {
201
+ "cardNetworks": {
202
+ "items": {
203
+ "type": "string"
204
+ },
205
+ "type": "array"
206
+ },
207
+ "currency": {
208
+ "enum": [
209
+ "€",
210
+ "$"
211
+ ],
212
+ "type": "string"
213
+ },
214
+ "fixedPrice": {
215
+ "type": "number"
216
+ },
217
+ "gatewayId": {
218
+ "type": "string"
219
+ },
220
+ "gatewayMerchantId": {
221
+ "type": "string"
222
+ },
223
+ "id": {
224
+ "enum": [
225
+ "google",
226
+ "paypal"
227
+ ],
228
+ "type": "string"
229
+ },
230
+ "label": {
231
+ "type": "string"
232
+ },
233
+ "merchantId": {
234
+ "type": "string"
235
+ },
236
+ "paypalid": {
237
+ "type": "string"
238
+ },
239
+ "percentagePrice": {
240
+ "type": "number"
241
+ }
242
+ },
243
+ "required": [
244
+ "id",
245
+ "label"
246
+ ],
247
+ "type": "object"
248
+ },
249
+ "IPayment": {
250
+ "additionalProperties": false,
251
+ "properties": {
252
+ "countryCode": {
253
+ "type": "string"
254
+ },
255
+ "currencyCode": {
256
+ "type": "string"
257
+ },
258
+ "merchantName": {
259
+ "type": "string"
260
+ },
261
+ "shipmentFee": {
262
+ "type": "number"
263
+ },
264
+ "total": {
265
+ "type": "number"
266
+ },
267
+ "type": {
268
+ "$ref": "#/definitions/IPaymentType"
269
+ }
270
+ },
271
+ "required": [
272
+ "merchantName",
273
+ "total",
274
+ "currencyCode",
275
+ "countryCode"
276
+ ],
277
+ "type": "object"
278
+ },
279
+ "IPaymentType": {
280
+ "enum": [
281
+ "book",
282
+ "buy",
283
+ "checkout",
284
+ "donate",
285
+ "order",
286
+ "pay",
287
+ "plain",
288
+ "subscribe"
289
+ ],
290
+ "type": "string"
291
+ },
292
+ "IShipment": {
293
+ "additionalProperties": false,
294
+ "properties": {
295
+ "arriveDate": {
296
+ "format": "date-time",
297
+ "type": "string"
298
+ },
299
+ "available": {
300
+ "type": "boolean"
301
+ },
302
+ "currency": {
303
+ "type": "string"
304
+ },
305
+ "id": {
306
+ "type": "string"
307
+ },
308
+ "label": {
309
+ "type": "string"
310
+ },
311
+ "price": {
312
+ "type": "number"
313
+ },
314
+ "selected": {
315
+ "type": "boolean"
316
+ },
317
+ "standard": {
318
+ "type": "boolean"
319
+ }
320
+ },
321
+ "required": [
322
+ "price",
323
+ "arriveDate",
324
+ "available",
325
+ "id",
326
+ "label",
327
+ "currency"
328
+ ],
329
+ "type": "object"
330
+ },
331
+ "IUser": {
332
+ "additionalProperties": false,
333
+ "properties": {
334
+ "addressWithNumber": {
335
+ "type": "string"
336
+ },
337
+ "city": {
338
+ "type": "string"
339
+ },
340
+ "fixed": {
341
+ "type": "boolean"
342
+ },
343
+ "fullName": {
344
+ "type": "string"
345
+ },
346
+ "nationality": {
347
+ "type": "string"
348
+ },
349
+ "zip": {
350
+ "type": "string"
351
+ }
352
+ },
353
+ "required": [
354
+ "fullName"
355
+ ],
356
+ "type": "object"
357
+ }
358
+ }
359
+ }
360
+ },
361
+ "storybookArgs": {
362
+ "shipments": {
363
+ "control": {
364
+ "type": "array"
365
+ }
366
+ },
367
+ "user": {
368
+ "control": {
369
+ "type": "object"
370
+ }
371
+ },
372
+ "payment": {
373
+ "control": {
374
+ "type": "object"
375
+ }
376
+ },
377
+ "paymentCompleted": {
378
+ "action": "paymentCompleted"
379
+ },
380
+ "saveUser": {
381
+ "action": "saveUser"
382
+ },
383
+ "saveShipment": {
384
+ "action": "saveShipment"
385
+ },
386
+ "gateways": {
387
+ "control": {
388
+ "type": "array"
389
+ }
390
+ },
391
+ "setGateway": {
392
+ "action": "setGateway"
393
+ },
394
+ "completed": {
395
+ "control": {
396
+ "type": "radio"
397
+ },
398
+ "options": [
399
+ "yes",
400
+ "no"
401
+ ]
402
+ }
403
+ },
404
+ "styleSetup": {
405
+ "vars": [
406
+ {
407
+ "name": "--edit-color",
408
+ "defaultValue": "green",
409
+ "description": "",
410
+ "valueType": "color"
411
+ },
412
+ {
413
+ "name": "--paypal-button-color",
414
+ "defaultValue": "yellow",
415
+ "description": "",
416
+ "valueType": "color"
417
+ },
418
+ {
419
+ "name": "--hb-heckout-border",
420
+ "defaultValue": "0.5px solid rgba(197, 197, 197, 0.808)",
421
+ "description": "",
422
+ "valueType": "string"
423
+ },
424
+ {
425
+ "name": "--bs-primary",
426
+ "valueType": "color",
427
+ "theme": "bootstrap",
428
+ "defaultValue": "#07689f"
429
+ },
430
+ {
431
+ "name": "--bs-secondary",
432
+ "valueType": "color",
433
+ "theme": "bootstrap",
434
+ "defaultValue": "#c9d6df"
435
+ },
436
+ {
437
+ "name": "--bs-success",
438
+ "valueType": "color",
439
+ "theme": "bootstrap",
440
+ "defaultValue": "#11d3bc"
441
+ },
442
+ {
443
+ "name": "--bs-info",
444
+ "valueType": "color",
445
+ "theme": "bootstrap",
446
+ "defaultValue": "#a2d5f2"
447
+ },
448
+ {
449
+ "name": "--bs-warning",
450
+ "valueType": "color",
451
+ "theme": "bootstrap",
452
+ "defaultValue": "#ffc107"
453
+ },
454
+ {
455
+ "name": "--bs-danger",
456
+ "valueType": "color",
457
+ "theme": "bootstrap",
458
+ "defaultValue": "#f67280"
459
+ }
460
+ ],
461
+ "parts": [
462
+ {
463
+ "name": "title"
464
+ },
465
+ {
466
+ "name": "subtitle"
467
+ }
468
+ ]
469
+ },
470
+ "htmlSlots": [
471
+ {
472
+ "name": "payment_terms"
473
+ },
474
+ {
475
+ "name": "payment_completed"
476
+ },
477
+ {
478
+ "name": "userinfo"
479
+ },
480
+ {
481
+ "name": "title"
482
+ }
483
+ ],
484
+ "i18n": [],
485
+ "examples": [],
486
+ "name": "",
487
+ "category": "",
488
+ "tags": [],
489
+ "size": {}
490
+ }