@commercelayer/app-elements 0.0.50 → 0.0.52
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/dist/{Async-d503e022.js → Async-dfc6b253.js} +2 -2
- package/dist/{InputDateComponent-a4118480.js → InputDateComponent-4ef11b30.js} +1 -1
- package/dist/{Select-47005634.js → Select-ab183a5a.js} +2 -2
- package/dist/{utils → helpers}/tracking.d.ts +17 -2
- package/dist/{main-b75b3ef2.js → main-286fe9f0.js} +17469 -17439
- package/dist/main.d.ts +2 -0
- package/dist/main.js +94 -86
- package/dist/{overrides-9c6830fe.js → overrides-e830493a.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/ui/atoms/Avatar.utils.d.ts +1 -0
- package/dist/ui/resources/ListItemsMetadata.d.ts +7 -0
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as de from "react";
|
|
2
2
|
import le, { useRef as W, useState as a, useEffect as z, useCallback as B, forwardRef as ce } from "react";
|
|
3
|
-
import { _ as ve, a as s, h as Oe, b as O, c as Se, u as _e, S as he, d as me, s as ge } from "./overrides-
|
|
3
|
+
import { _ as ve, a as s, h as Oe, b as O, c as Se, u as _e, S as he, d as me, s as ge } from "./overrides-e830493a.js";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
import "./main-
|
|
5
|
+
import "./main-286fe9f0.js";
|
|
6
6
|
import "@commercelayer/sdk";
|
|
7
7
|
var ye = ["defaultOptions", "cacheOptions", "loadOptions", "options", "isLoading", "onInputChange", "filterOption"];
|
|
8
8
|
function Ce(t) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as A from "react";
|
|
2
2
|
import h, { forwardRef as ou, createElement as Qu, Component as Ku, createRef as zu } from "react";
|
|
3
|
-
import { P as Zu, r as D, a as au, t as $, b as yt, c as Oe, d as E, g as Lo, s as Ne, e as hn, f as Xu, h as yn, i as iu, j as Gu, k as Ju, l as es, m as ca, n as ts, o as la, p as rs, q as ns, u as os, v as ee, w as ze, x as mn, y as uu, z as as, A as is, B as fa, C as us, D as ss, E as cs, F as fr, I as ls, G as fs, H as ps } from "./main-
|
|
3
|
+
import { P as Zu, r as D, a as au, t as $, b as yt, c as Oe, d as E, g as Lo, s as Ne, e as hn, f as Xu, h as yn, i as iu, j as Gu, k as Ju, l as es, m as ca, n as ts, o as la, p as rs, q as ns, u as os, v as ee, w as ze, x as mn, y as uu, z as as, A as is, B as fa, C as us, D as ss, E as cs, F as fr, I as ls, G as fs, H as ps } from "./main-286fe9f0.js";
|
|
4
4
|
import * as ds from "react-dom";
|
|
5
5
|
import hs, { findDOMNode as ys } from "react-dom";
|
|
6
6
|
import "@commercelayer/sdk";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as r from "react";
|
|
2
2
|
import a, { forwardRef as s } from "react";
|
|
3
|
-
import { u as m, S as p, d as c, s as i } from "./overrides-
|
|
3
|
+
import { u as m, S as p, d as c, s as i } from "./overrides-e830493a.js";
|
|
4
4
|
import "react-dom";
|
|
5
|
-
import "./main-
|
|
5
|
+
import "./main-286fe9f0.js";
|
|
6
6
|
import "@commercelayer/sdk";
|
|
7
7
|
var l = /* @__PURE__ */ s(function(e, t) {
|
|
8
8
|
var o = m(e);
|
|
@@ -1,7 +1,22 @@
|
|
|
1
|
+
import { type AvatarProps } from '../ui/atoms/Avatar';
|
|
1
2
|
import { type Parcel, type Shipment } from '@commercelayer/sdk';
|
|
2
3
|
import { z } from 'zod';
|
|
4
|
+
export declare function getAvatarSrcFromRate(rate: Rate): AvatarProps['src'];
|
|
5
|
+
/**
|
|
6
|
+
* Get tracking details descending sorted from a parcel.
|
|
7
|
+
*/
|
|
8
|
+
export declare function getParcelTrackingDetails(parcel?: Parcel): TrackingDetail[];
|
|
9
|
+
/**
|
|
10
|
+
* Get latest tracking details from a parcel.
|
|
11
|
+
*/
|
|
3
12
|
export declare function getParcelTrackingDetail(parcel?: Parcel): TrackingDetail | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* Get all available rates.
|
|
15
|
+
*/
|
|
4
16
|
export declare function getShipmentRates(shipment: Shipment): Rate[];
|
|
17
|
+
/**
|
|
18
|
+
* Get selected shipment rate if any.
|
|
19
|
+
*/
|
|
5
20
|
export declare function getShipmentRate(shipment: Shipment): Rate | undefined;
|
|
6
21
|
/**
|
|
7
22
|
* Check whether the `shipment` has just one tracking number.
|
|
@@ -60,7 +75,6 @@ declare const trackingDetailSchema: z.ZodObject<{
|
|
|
60
75
|
object: "TrackingDetail";
|
|
61
76
|
status: string | null;
|
|
62
77
|
source: string | null;
|
|
63
|
-
description: string | null;
|
|
64
78
|
message: string | null;
|
|
65
79
|
status_detail: string | null;
|
|
66
80
|
datetime: string | null;
|
|
@@ -71,12 +85,12 @@ declare const trackingDetailSchema: z.ZodObject<{
|
|
|
71
85
|
country: string | null;
|
|
72
86
|
zip: string | null;
|
|
73
87
|
};
|
|
88
|
+
description: string | null;
|
|
74
89
|
carrier_code: string | null;
|
|
75
90
|
}, {
|
|
76
91
|
object: "TrackingDetail";
|
|
77
92
|
status: string | null;
|
|
78
93
|
source: string | null;
|
|
79
|
-
description: string | null;
|
|
80
94
|
message: string | null;
|
|
81
95
|
status_detail: string | null;
|
|
82
96
|
datetime: string | null;
|
|
@@ -87,6 +101,7 @@ declare const trackingDetailSchema: z.ZodObject<{
|
|
|
87
101
|
country: string | null;
|
|
88
102
|
zip: string | null;
|
|
89
103
|
};
|
|
104
|
+
description: string | null;
|
|
90
105
|
carrier_code: string | null;
|
|
91
106
|
}>;
|
|
92
107
|
/**
|