@htmlbricks/hb-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
@@ -7,13 +7,6 @@
7
7
  "Events": {
8
8
  "additionalProperties": false,
9
9
  "properties": {
10
- "completed": {
11
- "enum": [
12
- "yes",
13
- "no"
14
- ],
15
- "type": "string"
16
- },
17
10
  "paymentCompleted": {
18
11
  "additionalProperties": false,
19
12
  "properties": {
@@ -45,8 +38,7 @@
45
38
  "required": [
46
39
  "paymentCompleted",
47
40
  "saveUser",
48
- "saveShipment",
49
- "completed"
41
+ "saveShipment"
50
42
  ],
51
43
  "type": "object"
52
44
  },
@@ -150,9 +142,6 @@
150
142
  },
151
143
  "type": "array"
152
144
  },
153
- "style": {
154
- "type": "string"
155
- },
156
145
  "user": {
157
146
  "$ref": "#/definitions/IUser"
158
147
  }
@@ -358,9 +347,6 @@
358
347
  "type": "array"
359
348
  }
360
349
  },
361
- "setGateway": {
362
- "action": "setGateway"
363
- },
364
350
  "completed": {
365
351
  "control": {
366
352
  "type": "radio"
@@ -389,7 +375,7 @@
389
375
  "name": "--bulma-text",
390
376
  "valueType": "color",
391
377
  "defaultValue": "#363636",
392
- "description": "Body and headings."
378
+ "description": "Sets the default foreground color for checkout body copy and section headings so the flow stays readable against your page background."
393
379
  },
394
380
  {
395
381
  "name": "--bulma-border",
@@ -397,17 +383,89 @@
397
383
  "defaultValue": "#dbdbdb",
398
384
  "description": "Separators and rules."
399
385
  },
386
+ {
387
+ "name": "--bulma-border-weak",
388
+ "valueType": "color",
389
+ "defaultValue": "(theme)",
390
+ "description": "Softer border for the payment terms notice panel."
391
+ },
392
+ {
393
+ "name": "--bulma-background",
394
+ "valueType": "color",
395
+ "defaultValue": "(theme)",
396
+ "description": "Mixed into the terms notice panel background (`color-mix` with border)."
397
+ },
398
+ {
399
+ "name": "--bulma-text-weak",
400
+ "valueType": "color",
401
+ "defaultValue": "(theme)",
402
+ "description": "Muted copy inside the default payment terms notice."
403
+ },
404
+ {
405
+ "name": "--bulma-title-size",
406
+ "valueType": "other",
407
+ "defaultValue": "(theme)",
408
+ "description": "Checkout uses a larger title scale on `:host` (mapped to `--bulma-size-2` in styles)."
409
+ },
410
+ {
411
+ "name": "--bulma-subtitle-size",
412
+ "valueType": "other",
413
+ "defaultValue": "(theme)",
414
+ "description": "Subtitle scale on `:host` (mapped to `--bulma-size-4` in styles)."
415
+ },
416
+ {
417
+ "name": "--bulma-subtitle-weight",
418
+ "valueType": "other",
419
+ "defaultValue": "(theme)",
420
+ "description": "Font weight for the subtitle row (defaults to bold in checkout)."
421
+ },
422
+ {
423
+ "name": "--bulma-size-medium",
424
+ "valueType": "other",
425
+ "defaultValue": "(theme)",
426
+ "description": "Base `font-size` on `:host` for the flow."
427
+ },
428
+ {
429
+ "name": "--bulma-size-small",
430
+ "valueType": "other",
431
+ "defaultValue": "(theme)",
432
+ "description": "Smaller text in the default terms notice."
433
+ },
434
+ {
435
+ "name": "--bulma-block-spacing",
436
+ "valueType": "other",
437
+ "defaultValue": "(theme)",
438
+ "description": "Line height spacing for definition-list style rows."
439
+ },
440
+ {
441
+ "name": "--bulma-weight-bold",
442
+ "valueType": "other",
443
+ "defaultValue": "(theme)",
444
+ "description": "Bold labels on “edit” controls."
445
+ },
446
+ {
447
+ "name": "--bulma-weight-semibold",
448
+ "valueType": "other",
449
+ "defaultValue": "(theme)",
450
+ "description": "Semibold weight for inline terms links."
451
+ },
452
+ {
453
+ "name": "--bulma-radius",
454
+ "valueType": "number",
455
+ "defaultValue": "0.375rem",
456
+ "description": "Corner radius for the terms notice panel and links."
457
+ },
400
458
  {
401
459
  "name": "--edit-color",
402
460
  "valueType": "color",
403
- "defaultValue": "",
404
- "description": "Optional override for small “edit” controls (falls back to `--bulma-link`)."
461
+ "defaultValue": "(from `--bulma-link`)",
462
+ "description": "Color for “edit” links beside profile rows; `:host` defaults it to `--bulma-link`."
405
463
  },
406
464
  {
407
465
  "name": "--hb-checkout-border",
408
- "valueType": "color",
409
- "defaultValue": "",
410
- "description": "Section dividers between delivery and payment."
466
+ "valueType": "other",
467
+ "defaultValue": "1px solid + `--bulma-border`",
468
+ "description": "Border shorthand under the main title and above the payment section; override for custom divider weight or color."
411
469
  },
412
470
  {
413
471
  "name": "--paypal-button-color",
@@ -418,14 +476,16 @@
418
476
  ],
419
477
  "parts": [
420
478
  {
421
- "name": "title"
479
+ "name": "title",
480
+ "description": "Centered main checkout title (bottom border uses `--hb-checkout-border`)."
422
481
  },
423
482
  {
424
- "name": "subtitle"
483
+ "name": "subtitle",
484
+ "description": "Section subtitle row below the main title."
425
485
  },
426
486
  {
427
487
  "name": "payment_terms_note",
428
- "description": "Wrapper around the `payment_terms` slot (default notice + border). Style with `::part(payment_terms_note)`."
488
+ "description": "Box around the `payment_terms` slot (default legal copy, border, and background). Style with `hb-checkout::part(payment_terms_note)`."
429
489
  }
430
490
  ]
431
491
  },
@@ -433,16 +493,19 @@
433
493
  "htmlSlots": [
434
494
  {
435
495
  "name": "payment_terms",
436
- "description": "Optional legal / terms copy. Default: short line with a link-style control for terms and conditions."
496
+ "description": "Replace or extend the default terms / privacy line above payment (still wrapped by `payment_terms_note` styling unless you override it)."
437
497
  },
438
498
  {
439
- "name": "payment_completed"
499
+ "name": "payment_completed",
500
+ "description": "Custom content in the read-only confirmation state when `completed` is enabled; shown instead of the editable payment block."
440
501
  },
441
502
  {
442
- "name": "userinfo"
503
+ "name": "userinfo",
504
+ "description": "Custom markup inside the billing / shipping profile area around the embedded `hb-form` (when you need extra fields or layout)."
443
505
  },
444
506
  {
445
- "name": "title"
507
+ "name": "title",
508
+ "description": "Optional content inside the title region next to or around the default heading (advanced layout only)."
446
509
  }
447
510
  ],
448
511
  "i18n": [],
@@ -583,7 +646,7 @@
583
646
  }
584
647
  }
585
648
  ],
586
- "iifeIntegrity": "sha384-txuVGaCef8ATCfDrn/lhJSDkp1DrDgpuFLsMRN11gJfNAWNzENu5Dj75vXjmLrxi",
649
+ "iifeIntegrity": "sha384-TKFaETnfgmSBrW3PvpPwAoQ5O27ePJCoYKPCIcpyBO7B7LI0ytbjMgIgjtKUSZSl",
587
650
  "dependencies": [
588
651
  {
589
652
  "name": "hb-form",
@@ -736,5 +799,5 @@
736
799
  "size": {},
737
800
  "iifePath": "main.iife.js",
738
801
  "repoName": "@htmlbricks/hb-checkout",
739
- "version": "0.71.35"
802
+ "version": "0.71.37"
740
803
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-checkout",
3
- "version": "0.71.35",
3
+ "version": "0.71.37",
4
4
  "contributors": [],
5
5
  "description": "End-to-end checkout flow: editable billing/shipping user profile (`hb-form`), shipment method choice, optional card form, Google Pay (`@google-pay/button-element`), and PayPal via `hb-payment-paypal` according to `gateways` and `payment` JSON. Parses string props into objects, merges card networks defaults, and tracks `completed` to switch between editable steps and a read-only confirmation summary with events for payment and form submissions.",
6
6
  "licenses": [
@@ -30,9 +30,6 @@
30
30
  },
31
31
  "type": "array"
32
32
  },
33
- "style": {
34
- "type": "string"
35
- },
36
33
  "user": {
37
34
  "$ref": "#/definitions/IUser"
38
35
  }
@@ -46,7 +46,6 @@ export type IPayment = {
46
46
 
47
47
  export type Component = {
48
48
  id?: string;
49
- style?: string;
50
49
  shipments: IShipment[];
51
50
  user?: IUser;
52
51
  gateways: IGateway[];
@@ -58,5 +57,4 @@ export type Events = {
58
57
  paymentCompleted: { total: number; method: string; completed: true };
59
58
  saveUser: IUser;
60
59
  saveShipment: IShipment;
61
- completed: "yes" | "no";
62
60
  };
@@ -5,13 +5,6 @@
5
5
  "Events": {
6
6
  "additionalProperties": false,
7
7
  "properties": {
8
- "completed": {
9
- "enum": [
10
- "yes",
11
- "no"
12
- ],
13
- "type": "string"
14
- },
15
8
  "paymentCompleted": {
16
9
  "additionalProperties": false,
17
10
  "properties": {
@@ -43,8 +36,7 @@
43
36
  "required": [
44
37
  "paymentCompleted",
45
38
  "saveUser",
46
- "saveShipment",
47
- "completed"
39
+ "saveShipment"
48
40
  ],
49
41
  "type": "object"
50
42
  },