@htmlbricks/hb-order-list 0.66.7 → 0.66.9

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 ADDED
@@ -0,0 +1,34 @@
1
+ ## `hb-order-list` — order list
2
+
3
+ **Category:** commerce
4
+ **Tags:** commerce, order
5
+
6
+ ### What it does
7
+
8
+ Order summary view driven by a payment JSON object: order number header, optional tracking area, list of line items with image and name, and a footer showing the order total including tax and optional shipment fee. Exposes the item image via the `item_image` CSS part.
9
+
10
+ ### Custom element
11
+
12
+ `hb-order-list`
13
+
14
+ ### Attributes (snake_case; use string values in HTML)
15
+
16
+ - `id`, `style` (optional): strings.
17
+ - `payment` (required): JSON string — `OrderPayment` with `orderNumber`, `countryCode`, `items` (shop line items plus `image` per row), plus cart/tax fields from shared checkout types.
18
+
19
+ ### Events
20
+
21
+ None declared.
22
+
23
+ ### Usage notes
24
+
25
+ - **CSS parts:** `item_image`.
26
+ - Serialize `payment` as a single JSON attribute; see `builder/src/wc/order-list/types/webcomponent.type.d.ts` and examples in `extra/docs.ts`.
27
+
28
+ ### Minimal HTML example
29
+
30
+ ```html
31
+ <hb-order-list
32
+ payment='{"orderNumber":"1001","countryCode":"EU","items":[{"id":"1","name":"Item","unitaryPrice":10,"taxPercentage":22,"image":"https://example.com/a.jpg"}]}'
33
+ ></hb-order-list>
34
+ ```
package/manifest.json CHANGED
@@ -174,5 +174,5 @@
174
174
  "size": {},
175
175
  "iifePath": "main.iife.js",
176
176
  "repoName": "@htmlbricks/hb-order-list",
177
- "version": "0.66.7"
177
+ "version": "0.66.9"
178
178
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@htmlbricks/hb-order-list",
3
- "version": "0.66.7",
3
+ "version": "0.66.9",
4
4
  "contributors": [],
5
5
  "description": "Order summary view driven by a payment JSON object: order number header, optional tracking area, list of line items with image and name, and a footer showing the order total including tax and optional shipment fee. Exposes the item image via the item_image CSS part.",
6
6
  "licenses": [