@shipengine/elements 0.6.26 → 0.6.27
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 +3 -2
- package/index.js +2 -1
- package/package.json +4 -4
package/index.cjs
CHANGED
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var elementsCore = require('@shipengine/elements-core');
|
|
6
6
|
var jsxRuntime = require('react/jsx-runtime');
|
|
7
7
|
var react = require('react');
|
|
8
|
+
var reactI18next = require('react-i18next');
|
|
8
9
|
var elementsUi = require('@shipengine/elements-ui');
|
|
9
10
|
|
|
10
11
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
@@ -20198,7 +20199,7 @@ const SalesOrder = ({
|
|
|
20198
20199
|
|
|
20199
20200
|
const {
|
|
20200
20201
|
t
|
|
20201
|
-
} =
|
|
20202
|
+
} = reactI18next.useTranslation(["common", "purchase-label"]);
|
|
20202
20203
|
const logger = elementsCore.useLogger();
|
|
20203
20204
|
const {
|
|
20204
20205
|
addressPreference,
|
|
@@ -20458,7 +20459,7 @@ const Shipment = ({
|
|
|
20458
20459
|
|
|
20459
20460
|
const {
|
|
20460
20461
|
t
|
|
20461
|
-
} =
|
|
20462
|
+
} = reactI18next.useTranslation(["common", "view-shipment"]);
|
|
20462
20463
|
const shipment = elementsCore.useGetShipment({
|
|
20463
20464
|
shipmentId
|
|
20464
20465
|
});
|
package/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { useLogger, useListWarehouses, useListCarriers, useCreateShipment, useUpdateShipment, useParseAddress, useListCustomPackageTypes, useCreateLabel, isDomesticAddress,
|
|
1
|
+
import { useLogger, useListWarehouses, useListCarriers, useCreateShipment, useUpdateShipment, useParseAddress, useListCustomPackageTypes, useCreateLabel, isDomesticAddress, useListSalesOrders, useListOrderSources, useRefreshOrderSource, useCalculateRates, useValidateAddresses, useListShipments, getIsCustomsRequiredForSalesOrder, getCustomsFromSalesOrder, registerElement, useGetShipment, useListLabels, useGetLabel, useVoidLabel } from '@shipengine/elements-core';
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import { useCallback, useState, useEffect } from 'react';
|
|
4
|
+
import { useTranslation } from 'react-i18next';
|
|
4
5
|
import { Templates, Loader } from '@shipengine/elements-ui';
|
|
5
6
|
|
|
6
7
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shipengine/elements",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.27",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@packlink/giger": "*"
|
|
6
6
|
},
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
"types": "./index.d.ts",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"react": "^18.2.0",
|
|
13
|
-
"@shipengine/elements-core": "0.6.
|
|
13
|
+
"@shipengine/elements-core": "0.6.27",
|
|
14
14
|
"react-i18next": "^11.18.4",
|
|
15
15
|
"i18next": "^21.9.1",
|
|
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.27",
|
|
19
|
+
"@shipengine/elements-ui": "0.6.27"
|
|
20
20
|
}
|
|
21
21
|
}
|