@shipengine/elements 0.6.38 → 0.6.39
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/index.cjs +11 -0
- package/index.js +11 -0
- package/package.json +4 -4
package/index.cjs
CHANGED
|
@@ -2948,6 +2948,16 @@ const ShipmentForm = ({
|
|
|
2948
2948
|
}
|
|
2949
2949
|
});
|
|
2950
2950
|
|
|
2951
|
+
const handleUpdateShipDate = shipDate => __awaiter(void 0, void 0, void 0, function* () {
|
|
2952
|
+
const updatedShipment = yield createOrUpdateShipment(Object.assign(Object.assign({}, shipment), {
|
|
2953
|
+
shipDate
|
|
2954
|
+
}));
|
|
2955
|
+
|
|
2956
|
+
if (updatedShipment) {
|
|
2957
|
+
yield onShipmentUpdated(updatedShipment);
|
|
2958
|
+
}
|
|
2959
|
+
});
|
|
2960
|
+
|
|
2951
2961
|
const errors = [...(updateShipment.errors || []), ...(createShipment.errors || [])];
|
|
2952
2962
|
return jsxRuntime.jsx(elementsUi.Templates.ShipmentForm, {
|
|
2953
2963
|
addressPreference: addressPreference,
|
|
@@ -2962,6 +2972,7 @@ const ShipmentForm = ({
|
|
|
2962
2972
|
onSubmit: handleSubmit,
|
|
2963
2973
|
onUpdateCustoms: handleUpdateCustoms,
|
|
2964
2974
|
onSubmitParseShipTo: handleSubmitParseShipTo,
|
|
2975
|
+
onUpdateShipDate: handleUpdateShipDate,
|
|
2965
2976
|
salesOrder: salesOrder,
|
|
2966
2977
|
shipment: shipment,
|
|
2967
2978
|
shippingPresets: shippingPresets,
|
package/index.js
CHANGED
|
@@ -2944,6 +2944,16 @@ const ShipmentForm = ({
|
|
|
2944
2944
|
}
|
|
2945
2945
|
});
|
|
2946
2946
|
|
|
2947
|
+
const handleUpdateShipDate = shipDate => __awaiter(void 0, void 0, void 0, function* () {
|
|
2948
|
+
const updatedShipment = yield createOrUpdateShipment(Object.assign(Object.assign({}, shipment), {
|
|
2949
|
+
shipDate
|
|
2950
|
+
}));
|
|
2951
|
+
|
|
2952
|
+
if (updatedShipment) {
|
|
2953
|
+
yield onShipmentUpdated(updatedShipment);
|
|
2954
|
+
}
|
|
2955
|
+
});
|
|
2956
|
+
|
|
2947
2957
|
const errors = [...(updateShipment.errors || []), ...(createShipment.errors || [])];
|
|
2948
2958
|
return jsx(Templates.ShipmentForm, {
|
|
2949
2959
|
addressPreference: addressPreference,
|
|
@@ -2958,6 +2968,7 @@ const ShipmentForm = ({
|
|
|
2958
2968
|
onSubmit: handleSubmit,
|
|
2959
2969
|
onUpdateCustoms: handleUpdateCustoms,
|
|
2960
2970
|
onSubmitParseShipTo: handleSubmitParseShipTo,
|
|
2971
|
+
onUpdateShipDate: handleUpdateShipDate,
|
|
2961
2972
|
salesOrder: salesOrder,
|
|
2962
2973
|
shipment: shipment,
|
|
2963
2974
|
shippingPresets: shippingPresets,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipengine/elements",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.39",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@packlink/giger": "*",
|
|
6
6
|
"react-i18next": "*",
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
"types": "./index.d.ts",
|
|
13
13
|
"dependencies": {
|
|
14
14
|
"react": "^18.2.0",
|
|
15
|
-
"@shipengine/elements-core": "0.6.
|
|
15
|
+
"@shipengine/elements-core": "0.6.39",
|
|
16
16
|
"i18next-http-backend": "^1.4.1",
|
|
17
17
|
"i18next-browser-languagedetector": "^6.1.4",
|
|
18
|
-
"@shipengine/types": "0.6.
|
|
19
|
-
"@shipengine/elements-ui": "0.6.
|
|
18
|
+
"@shipengine/types": "0.6.39",
|
|
19
|
+
"@shipengine/elements-ui": "0.6.39"
|
|
20
20
|
}
|
|
21
21
|
}
|