@shipengine/elements-sdk 2.5.0 → 2.6.0
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/package.json
CHANGED
|
@@ -47794,7 +47794,7 @@ const RPe = ({
|
|
|
47794
47794
|
whole: Ue,
|
|
47795
47795
|
fractional: Fe
|
|
47796
47796
|
} = zCe(q, G);
|
|
47797
|
-
B.setValue("packages.0.weight.whole", Ue), B.setValue("packages.0.weight.fractional", Fe);
|
|
47797
|
+
B.setValue("packages.0.weight.whole", Ue === 0 ? null : Ue), B.setValue("packages.0.weight.fractional", Fe === 0 ? null : Fe);
|
|
47798
47798
|
}, [B, G]), go = je(async (q) => {
|
|
47799
47799
|
q === "browse_rates" ? (await g?.({
|
|
47800
47800
|
defaultMode: x?.serviceCode ? "select_service" : "browse_rates",
|
|
@@ -53969,8 +53969,11 @@ const qQe = ({
|
|
|
53969
53969
|
case "voidLabel":
|
|
53970
53970
|
return /* @__PURE__ */ p(Sv, {
|
|
53971
53971
|
labelId: o,
|
|
53972
|
-
onComplete: () => {
|
|
53973
|
-
u("shipmentSummary");
|
|
53972
|
+
onComplete: (d, f) => {
|
|
53973
|
+
u("shipmentSummary"), r?.onVoidLabelComplete?.(d, f);
|
|
53974
|
+
},
|
|
53975
|
+
onSuccess: (d, f) => {
|
|
53976
|
+
r?.onVoidLabelSuccess?.(d, f);
|
|
53974
53977
|
},
|
|
53975
53978
|
onViewShipment: () => {
|
|
53976
53979
|
u("shipmentSummary");
|