@standhigher/besttrack-page-extension 0.2.0 → 0.2.1
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 +6 -1
- package/dist/index.d.ts +5 -0
- package/dist/index.js +723 -255
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -6,4 +6,9 @@ host-injected tracking query contract as Ready-to-go. Logo and content are
|
|
|
6
6
|
JSON-only block props; brand colour, font and radius use the template Theme
|
|
7
7
|
Tokens and may be overridden through PageDocument.theme.
|
|
8
8
|
|
|
9
|
-
V0.7.0 provides the Ready-to-go built-in template: order query, shipment
|
|
9
|
+
V0.7.0 provides the Ready-to-go built-in template: order query, shipment
|
|
10
|
+
progress, delivery information and recommendations. The consumer surface follows
|
|
11
|
+
the Shopify Track Page layout (query card, five-step progress, shipping
|
|
12
|
+
timeline, package contents and product cards) using inline styles and `--pb-*`
|
|
13
|
+
Theme Tokens. Live tracking is injected by the host Runtime; this package never
|
|
14
|
+
stores credentials or network endpoints in a `PageDocument`.
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ type ReadyToGoOrderItem = {
|
|
|
8
8
|
quantity: number;
|
|
9
9
|
imageUrl?: string;
|
|
10
10
|
description?: string;
|
|
11
|
+
href?: string;
|
|
11
12
|
};
|
|
12
13
|
type ReadyToGoRecommendation = {
|
|
13
14
|
id: string;
|
|
@@ -21,6 +22,8 @@ type ReadyToGoTrackingStep = {
|
|
|
21
22
|
id: string;
|
|
22
23
|
label: string;
|
|
23
24
|
state: "complete" | "current" | "upcoming";
|
|
25
|
+
date?: string;
|
|
26
|
+
icon?: "check" | "bag" | "truck" | "box";
|
|
24
27
|
};
|
|
25
28
|
type ReadyToGoTrackingEvent = {
|
|
26
29
|
id: string;
|
|
@@ -38,6 +41,7 @@ type ReadyToGoShipment = {
|
|
|
38
41
|
latestEvent?: string;
|
|
39
42
|
updatedAt?: string;
|
|
40
43
|
deliveryAddress?: string;
|
|
44
|
+
estimatedDelivery?: string;
|
|
41
45
|
progress?: ReadyToGoTrackingStep[];
|
|
42
46
|
events?: ReadyToGoTrackingEvent[];
|
|
43
47
|
orderItems?: ReadyToGoOrderItem[];
|
|
@@ -50,6 +54,7 @@ type ReadyToGoTrackingResult = {
|
|
|
50
54
|
latestEvent?: string;
|
|
51
55
|
updatedAt?: string;
|
|
52
56
|
deliveryAddress?: string;
|
|
57
|
+
estimatedDelivery?: string;
|
|
53
58
|
progress?: ReadyToGoTrackingStep[];
|
|
54
59
|
events?: ReadyToGoTrackingEvent[];
|
|
55
60
|
orderItems?: ReadyToGoOrderItem[];
|