@shipengine/elements 0.6.4 → 0.6.6
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 +5 -1
- package/index.js +5 -1
- package/package.json +3 -3
package/index.cjs
CHANGED
|
@@ -20353,6 +20353,10 @@ const SalesOrder = ({
|
|
|
20353
20353
|
const handleShipmentDirty = react.useCallback(() => {
|
|
20354
20354
|
calculateRates.reset();
|
|
20355
20355
|
}, [calculateRates]);
|
|
20356
|
+
const handleRateSaved = react.useCallback(updatedShipment => __awaiter(void 0, void 0, void 0, function* () {
|
|
20357
|
+
handleShipmentUpdated(updatedShipment);
|
|
20358
|
+
onRateSaved === null || onRateSaved === void 0 ? void 0 : onRateSaved(updatedShipment);
|
|
20359
|
+
}), [onRateSaved, handleShipmentUpdated]);
|
|
20356
20360
|
if (salesOrders.isLoading) return jsxRuntime.jsx(elementsUi.Loader, {
|
|
20357
20361
|
message: t("loading.salesOrder")
|
|
20358
20362
|
});
|
|
@@ -20395,7 +20399,7 @@ const SalesOrder = ({
|
|
|
20395
20399
|
onBeforeLabelCreate: onBeforeLabelCreate,
|
|
20396
20400
|
onLabelCreateFailure: onLabelCreateFailure,
|
|
20397
20401
|
onLabelCreateSuccess: onLabelCreateSuccess,
|
|
20398
|
-
onRateSaved:
|
|
20402
|
+
onRateSaved: handleRateSaved,
|
|
20399
20403
|
rates: (_e = calculateRates.data) === null || _e === void 0 ? void 0 : _e.rates,
|
|
20400
20404
|
shipment: shipment
|
|
20401
20405
|
})]
|
package/index.js
CHANGED
|
@@ -20349,6 +20349,10 @@ const SalesOrder = ({
|
|
|
20349
20349
|
const handleShipmentDirty = useCallback(() => {
|
|
20350
20350
|
calculateRates.reset();
|
|
20351
20351
|
}, [calculateRates]);
|
|
20352
|
+
const handleRateSaved = useCallback(updatedShipment => __awaiter(void 0, void 0, void 0, function* () {
|
|
20353
|
+
handleShipmentUpdated(updatedShipment);
|
|
20354
|
+
onRateSaved === null || onRateSaved === void 0 ? void 0 : onRateSaved(updatedShipment);
|
|
20355
|
+
}), [onRateSaved, handleShipmentUpdated]);
|
|
20352
20356
|
if (salesOrders.isLoading) return jsx(Loader, {
|
|
20353
20357
|
message: t("loading.salesOrder")
|
|
20354
20358
|
});
|
|
@@ -20391,7 +20395,7 @@ const SalesOrder = ({
|
|
|
20391
20395
|
onBeforeLabelCreate: onBeforeLabelCreate,
|
|
20392
20396
|
onLabelCreateFailure: onLabelCreateFailure,
|
|
20393
20397
|
onLabelCreateSuccess: onLabelCreateSuccess,
|
|
20394
|
-
onRateSaved:
|
|
20398
|
+
onRateSaved: handleRateSaved,
|
|
20395
20399
|
rates: (_e = calculateRates.data) === null || _e === void 0 ? void 0 : _e.rates,
|
|
20396
20400
|
shipment: shipment
|
|
20397
20401
|
})]
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipengine/elements",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.6",
|
|
4
4
|
"module": "./index.js",
|
|
5
5
|
"main": "./index.cjs",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"types": "./index.d.ts",
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"react": "^18.2.0",
|
|
10
|
-
"@shipengine/elements-core": "0.6.
|
|
10
|
+
"@shipengine/elements-core": "0.6.6",
|
|
11
11
|
"react-i18next": "^11.18.4",
|
|
12
12
|
"i18next": "^21.9.1",
|
|
13
13
|
"i18next-http-backend": "^1.4.1",
|
|
14
14
|
"i18next-browser-languagedetector": "^6.1.4",
|
|
15
|
-
"@shipengine/elements-ui": "0.6.
|
|
15
|
+
"@shipengine/elements-ui": "0.6.6"
|
|
16
16
|
},
|
|
17
17
|
"peerDependencies": {}
|
|
18
18
|
}
|