@orderly.network/hooks 2.0.6 → 2.0.7
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/index.d.mts +36 -18
- package/dist/index.d.ts +36 -18
- package/dist/index.js +24 -26
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +24 -26
- package/dist/index.mjs.map +1 -1
- package/package.json +10 -10
package/dist/index.d.mts
CHANGED
|
@@ -12,7 +12,7 @@ import { NetworkId, API, Chain as Chain$1, ChainNamespace, WSMessage, OrderStatu
|
|
|
12
12
|
export { default as useConstant } from 'use-constant';
|
|
13
13
|
import { WS } from '@orderly.network/net';
|
|
14
14
|
import * as react from 'react';
|
|
15
|
-
import { PropsWithChildren, FC } from 'react';
|
|
15
|
+
import { PropsWithChildren, FC, ReactNode } from 'react';
|
|
16
16
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
17
17
|
import { SolanaWalletProvider } from '@orderly.network/default-solana-adapter';
|
|
18
18
|
import { EIP1193Provider } from '@web3-onboard/common';
|
|
@@ -29,7 +29,7 @@ declare global {
|
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
declare const _default: "2.0.
|
|
32
|
+
declare const _default: "2.0.7";
|
|
33
33
|
|
|
34
34
|
type useQueryOptions<T> = SWRConfiguration & {
|
|
35
35
|
formatter?: (data: any) => T;
|
|
@@ -1452,6 +1452,24 @@ declare enum ENVType {
|
|
|
1452
1452
|
qa = "qa",
|
|
1453
1453
|
dev = "dev"
|
|
1454
1454
|
}
|
|
1455
|
+
/**
|
|
1456
|
+
* env is determined by networkId and env
|
|
1457
|
+
* | networkId | env | retrurn |
|
|
1458
|
+
* |-----------|---------|----------|
|
|
1459
|
+
* | mainnet | noset | prod |
|
|
1460
|
+
* | mainnet | prod | prod |
|
|
1461
|
+
* | mainnet | staging | prod |
|
|
1462
|
+
* | mainnet | qa | prod |
|
|
1463
|
+
* | mainnet | dev | prod |
|
|
1464
|
+
* | testnet | noset | staging |
|
|
1465
|
+
* | testnet | prod | staging |
|
|
1466
|
+
* | testnet | staging | staging |
|
|
1467
|
+
* | testnet | qa | qa |
|
|
1468
|
+
* | testnet | dev | dev |
|
|
1469
|
+
* if env is not set, return staging
|
|
1470
|
+
*
|
|
1471
|
+
* @returns {ENVType}
|
|
1472
|
+
*/
|
|
1455
1473
|
declare const useGetEnv: () => ENVType;
|
|
1456
1474
|
|
|
1457
1475
|
type APIKeyItem = {
|
|
@@ -1705,24 +1723,24 @@ declare const useOrderEntity: (order: {
|
|
|
1705
1723
|
};
|
|
1706
1724
|
};
|
|
1707
1725
|
|
|
1708
|
-
type
|
|
1709
|
-
|
|
1710
|
-
invalidRegions?: string[];
|
|
1711
|
-
restrictedAreasOpen?: boolean;
|
|
1712
|
-
contact?: {
|
|
1713
|
-
url?: string;
|
|
1714
|
-
text?: string;
|
|
1715
|
-
};
|
|
1716
|
-
};
|
|
1717
|
-
interface IRestrictedAreasParams {
|
|
1726
|
+
type RestrictedInfoReturns = ReturnType<typeof useRestrictedInfo>;
|
|
1727
|
+
interface RestrictedInfoOptions {
|
|
1718
1728
|
enableDefault?: boolean;
|
|
1719
1729
|
customRestrictedIps?: string[];
|
|
1720
1730
|
customRestrictedRegions?: string[];
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
};
|
|
1731
|
+
content?: ReactNode | ((data: {
|
|
1732
|
+
ip: string;
|
|
1733
|
+
brokerName: string;
|
|
1734
|
+
}) => ReactNode);
|
|
1725
1735
|
}
|
|
1726
|
-
declare const
|
|
1736
|
+
declare const useRestrictedInfo: (options?: RestrictedInfoOptions) => {
|
|
1737
|
+
ip: string;
|
|
1738
|
+
invalidRegions: string[];
|
|
1739
|
+
restrictedOpen: boolean;
|
|
1740
|
+
content: ReactNode | ((data: {
|
|
1741
|
+
ip: string;
|
|
1742
|
+
brokerName: string;
|
|
1743
|
+
}) => ReactNode);
|
|
1744
|
+
};
|
|
1727
1745
|
|
|
1728
|
-
export { type APIKeyItem, type AccountRewardsHistory, type AccountRewardsHistoryRow, AssetHistoryStatusEnum, type Brokers, type Chain, type Chains, type CheckReferralCodeReturns, type CollateralOutputs, type ComputedAlgoOrder, type ConfigProviderProps, type ConnectedChain, type CurrentEpochEstimate, DefaultLayoutConfig, DistributionId, type DrawOptions, ENVType, type EpochInfoItem, type EpochInfoType, type ExclusiveConfigProviderProps, ExtendedConfigStore, type Favorite, type FavoriteTab,
|
|
1746
|
+
export { type APIKeyItem, type AccountRewardsHistory, type AccountRewardsHistoryRow, AssetHistoryStatusEnum, type Brokers, type Chain, type Chains, type CheckReferralCodeReturns, type CollateralOutputs, type ComputedAlgoOrder, type ConfigProviderProps, type ConnectedChain, type CurrentEpochEstimate, DefaultLayoutConfig, DistributionId, type DrawOptions, ENVType, type EpochInfoItem, type EpochInfoType, type ExclusiveConfigProviderProps, ExtendedConfigStore, type Favorite, type FavoriteTab, MarketsStorageKey, MarketsType, type NewListing, type OrderBookItem, type OrderParams, type OrderbookData, type OrderbookOptions, type OrderlyConfigContextState, OrderlyConfigProvider, OrderlyContext, OrderlyProvider, OrderlyTrackerProvider, type PosterLayoutConfig, type PriceMode, type Recent, RefferalAPI, type RestrictedInfoOptions, type RestrictedInfoReturns, ScopeType, StatusContext, type StatusContextState, StatusProvider, type SymbolInfo, TWType, type UseChainsOptions, type UseChainsReturnObject, type UseOrderEntryMetaState, WalletConnectorContext, type WalletRewards, type WalletRewardsHistoryReturns, type WalletRewardsItem, type WalletState, WsNetworkStatus, type chainFilter, type chainFilterFunc, checkNotional, cleanStringStyle, type filteredChains$1 as filteredChains, parseJSON, useAccount, useAccountInfo, useAccountInstance, useAccountRewardsHistory, useAllBrokers, useApiKeyManager, useAssetsHistory, useBoolean, useChain, useChains, useCheckReferralCode, useCollateral, useCommission, useConfig, useCurEpochEstimate, useDaily, useDeposit, useDistribution, useDistributionHistory, useEpochInfo, useEventEmitter, useFundingFeeHistory, useFundingRate, useFundingRateHistory, useFundingRates, useGetClaimed, useGetEnv, useGetReferralCode, useHoldingStream, useIndexPrice, useKeyStore, useLazyQuery, useLeverage, useLocalStorage, useMaintenanceStatus, useMarginRatio, useMarkPrice, useMarkPriceBySymbol, useMarkPricesStream, useMarket, useMarketTradeStream, useMarkets, useMarketsStore, useMarketsStream, useMaxQty, useMediaQuery, useMutation, useNetworkInfo, useOrderEntity, useOrderEntry, useOrderEntry$1 as useOrderEntry_deprecated, useOrderStore, useOrderStream, useOrderbookStream, usePositionActions, usePositionStream, usePoster, usePreLoadData, usePrivateDataObserver, usePrivateInfiniteQuery, usePrivateQuery, useQuery, useRefereeHistory, useRefereeInfo, useRefereeRebateSummary, useReferralInfo, useReferralRebateSummary, useRestrictedInfo, useSessionStorage, useSettleSubscription, useSimpleDI, useStatisticsDaily, useStorageLedgerAddress, useSymbolLeverage, useSymbolPriceRange, useSymbolsInfo, useTPSLOrder, useTickerStream, useWS, useWalletConnector, useWalletRewardsHistory, useWalletSubscription, useWithdraw, useWsStatus, index as utils, _default as version };
|
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import { NetworkId, API, Chain as Chain$1, ChainNamespace, WSMessage, OrderStatu
|
|
|
12
12
|
export { default as useConstant } from 'use-constant';
|
|
13
13
|
import { WS } from '@orderly.network/net';
|
|
14
14
|
import * as react from 'react';
|
|
15
|
-
import { PropsWithChildren, FC } from 'react';
|
|
15
|
+
import { PropsWithChildren, FC, ReactNode } from 'react';
|
|
16
16
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
17
17
|
import { SolanaWalletProvider } from '@orderly.network/default-solana-adapter';
|
|
18
18
|
import { EIP1193Provider } from '@web3-onboard/common';
|
|
@@ -29,7 +29,7 @@ declare global {
|
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
declare const _default: "2.0.
|
|
32
|
+
declare const _default: "2.0.7";
|
|
33
33
|
|
|
34
34
|
type useQueryOptions<T> = SWRConfiguration & {
|
|
35
35
|
formatter?: (data: any) => T;
|
|
@@ -1452,6 +1452,24 @@ declare enum ENVType {
|
|
|
1452
1452
|
qa = "qa",
|
|
1453
1453
|
dev = "dev"
|
|
1454
1454
|
}
|
|
1455
|
+
/**
|
|
1456
|
+
* env is determined by networkId and env
|
|
1457
|
+
* | networkId | env | retrurn |
|
|
1458
|
+
* |-----------|---------|----------|
|
|
1459
|
+
* | mainnet | noset | prod |
|
|
1460
|
+
* | mainnet | prod | prod |
|
|
1461
|
+
* | mainnet | staging | prod |
|
|
1462
|
+
* | mainnet | qa | prod |
|
|
1463
|
+
* | mainnet | dev | prod |
|
|
1464
|
+
* | testnet | noset | staging |
|
|
1465
|
+
* | testnet | prod | staging |
|
|
1466
|
+
* | testnet | staging | staging |
|
|
1467
|
+
* | testnet | qa | qa |
|
|
1468
|
+
* | testnet | dev | dev |
|
|
1469
|
+
* if env is not set, return staging
|
|
1470
|
+
*
|
|
1471
|
+
* @returns {ENVType}
|
|
1472
|
+
*/
|
|
1455
1473
|
declare const useGetEnv: () => ENVType;
|
|
1456
1474
|
|
|
1457
1475
|
type APIKeyItem = {
|
|
@@ -1705,24 +1723,24 @@ declare const useOrderEntity: (order: {
|
|
|
1705
1723
|
};
|
|
1706
1724
|
};
|
|
1707
1725
|
|
|
1708
|
-
type
|
|
1709
|
-
|
|
1710
|
-
invalidRegions?: string[];
|
|
1711
|
-
restrictedAreasOpen?: boolean;
|
|
1712
|
-
contact?: {
|
|
1713
|
-
url?: string;
|
|
1714
|
-
text?: string;
|
|
1715
|
-
};
|
|
1716
|
-
};
|
|
1717
|
-
interface IRestrictedAreasParams {
|
|
1726
|
+
type RestrictedInfoReturns = ReturnType<typeof useRestrictedInfo>;
|
|
1727
|
+
interface RestrictedInfoOptions {
|
|
1718
1728
|
enableDefault?: boolean;
|
|
1719
1729
|
customRestrictedIps?: string[];
|
|
1720
1730
|
customRestrictedRegions?: string[];
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
};
|
|
1731
|
+
content?: ReactNode | ((data: {
|
|
1732
|
+
ip: string;
|
|
1733
|
+
brokerName: string;
|
|
1734
|
+
}) => ReactNode);
|
|
1725
1735
|
}
|
|
1726
|
-
declare const
|
|
1736
|
+
declare const useRestrictedInfo: (options?: RestrictedInfoOptions) => {
|
|
1737
|
+
ip: string;
|
|
1738
|
+
invalidRegions: string[];
|
|
1739
|
+
restrictedOpen: boolean;
|
|
1740
|
+
content: ReactNode | ((data: {
|
|
1741
|
+
ip: string;
|
|
1742
|
+
brokerName: string;
|
|
1743
|
+
}) => ReactNode);
|
|
1744
|
+
};
|
|
1727
1745
|
|
|
1728
|
-
export { type APIKeyItem, type AccountRewardsHistory, type AccountRewardsHistoryRow, AssetHistoryStatusEnum, type Brokers, type Chain, type Chains, type CheckReferralCodeReturns, type CollateralOutputs, type ComputedAlgoOrder, type ConfigProviderProps, type ConnectedChain, type CurrentEpochEstimate, DefaultLayoutConfig, DistributionId, type DrawOptions, ENVType, type EpochInfoItem, type EpochInfoType, type ExclusiveConfigProviderProps, ExtendedConfigStore, type Favorite, type FavoriteTab,
|
|
1746
|
+
export { type APIKeyItem, type AccountRewardsHistory, type AccountRewardsHistoryRow, AssetHistoryStatusEnum, type Brokers, type Chain, type Chains, type CheckReferralCodeReturns, type CollateralOutputs, type ComputedAlgoOrder, type ConfigProviderProps, type ConnectedChain, type CurrentEpochEstimate, DefaultLayoutConfig, DistributionId, type DrawOptions, ENVType, type EpochInfoItem, type EpochInfoType, type ExclusiveConfigProviderProps, ExtendedConfigStore, type Favorite, type FavoriteTab, MarketsStorageKey, MarketsType, type NewListing, type OrderBookItem, type OrderParams, type OrderbookData, type OrderbookOptions, type OrderlyConfigContextState, OrderlyConfigProvider, OrderlyContext, OrderlyProvider, OrderlyTrackerProvider, type PosterLayoutConfig, type PriceMode, type Recent, RefferalAPI, type RestrictedInfoOptions, type RestrictedInfoReturns, ScopeType, StatusContext, type StatusContextState, StatusProvider, type SymbolInfo, TWType, type UseChainsOptions, type UseChainsReturnObject, type UseOrderEntryMetaState, WalletConnectorContext, type WalletRewards, type WalletRewardsHistoryReturns, type WalletRewardsItem, type WalletState, WsNetworkStatus, type chainFilter, type chainFilterFunc, checkNotional, cleanStringStyle, type filteredChains$1 as filteredChains, parseJSON, useAccount, useAccountInfo, useAccountInstance, useAccountRewardsHistory, useAllBrokers, useApiKeyManager, useAssetsHistory, useBoolean, useChain, useChains, useCheckReferralCode, useCollateral, useCommission, useConfig, useCurEpochEstimate, useDaily, useDeposit, useDistribution, useDistributionHistory, useEpochInfo, useEventEmitter, useFundingFeeHistory, useFundingRate, useFundingRateHistory, useFundingRates, useGetClaimed, useGetEnv, useGetReferralCode, useHoldingStream, useIndexPrice, useKeyStore, useLazyQuery, useLeverage, useLocalStorage, useMaintenanceStatus, useMarginRatio, useMarkPrice, useMarkPriceBySymbol, useMarkPricesStream, useMarket, useMarketTradeStream, useMarkets, useMarketsStore, useMarketsStream, useMaxQty, useMediaQuery, useMutation, useNetworkInfo, useOrderEntity, useOrderEntry, useOrderEntry$1 as useOrderEntry_deprecated, useOrderStore, useOrderStream, useOrderbookStream, usePositionActions, usePositionStream, usePoster, usePreLoadData, usePrivateDataObserver, usePrivateInfiniteQuery, usePrivateQuery, useQuery, useRefereeHistory, useRefereeInfo, useRefereeRebateSummary, useReferralInfo, useReferralRebateSummary, useRestrictedInfo, useSessionStorage, useSettleSubscription, useSimpleDI, useStatisticsDaily, useStorageLedgerAddress, useSymbolLeverage, useSymbolPriceRange, useSymbolsInfo, useTPSLOrder, useTickerStream, useWS, useWalletConnector, useWalletRewardsHistory, useWalletSubscription, useWithdraw, useWsStatus, index as utils, _default as version };
|
package/dist/index.js
CHANGED
|
@@ -60,9 +60,9 @@ var __export = (target, all) => {
|
|
|
60
60
|
// src/version.ts
|
|
61
61
|
if (typeof window !== "undefined") {
|
|
62
62
|
window.__ORDERLY_VERSION__ = window.__ORDERLY_VERSION__ || {};
|
|
63
|
-
window.__ORDERLY_VERSION__["@orderly.network/hooks"] = "2.0.
|
|
63
|
+
window.__ORDERLY_VERSION__["@orderly.network/hooks"] = "2.0.7";
|
|
64
64
|
}
|
|
65
|
-
var version_default = "2.0.
|
|
65
|
+
var version_default = "2.0.7";
|
|
66
66
|
var fetcher = (url, init2 = {}, queryOptions) => net.get(url, init2, queryOptions?.formatter);
|
|
67
67
|
var OrderlyContext = React.createContext({
|
|
68
68
|
// configStore: new MemoryConfigStore(),
|
|
@@ -357,7 +357,7 @@ var useBoolean = (initialValue = false) => {
|
|
|
357
357
|
var usePreLoadData = () => {
|
|
358
358
|
const [timestampOffsetInitialized, setTimestampOffsetInitialized] = React.useState(false);
|
|
359
359
|
const { error: tokenError, data: tokenData } = useQuery(
|
|
360
|
-
"https://api
|
|
360
|
+
"https://api.orderly.org/v1/public/token",
|
|
361
361
|
{
|
|
362
362
|
revalidateOnFocus: false
|
|
363
363
|
}
|
|
@@ -3764,21 +3764,21 @@ function useChains(networkId, options = {}) {
|
|
|
3764
3764
|
...swrOptions
|
|
3765
3765
|
};
|
|
3766
3766
|
const { data: tokenChainsRes, error: tokenError } = useQuery(
|
|
3767
|
-
"https://api
|
|
3767
|
+
"https://api.orderly.org/v1/public/token",
|
|
3768
3768
|
{ ...commonSwrOpts }
|
|
3769
3769
|
);
|
|
3770
3770
|
const { data: testTokenChainsRes } = useQuery(
|
|
3771
|
-
"https://testnet-api
|
|
3771
|
+
"https://testnet-api.orderly.org/v1/public/token",
|
|
3772
3772
|
{ ...commonSwrOpts }
|
|
3773
3773
|
);
|
|
3774
3774
|
const brokerId = configStore.get("brokerId");
|
|
3775
3775
|
const needFetchFromAPI = options.forceAPI || !customChains;
|
|
3776
3776
|
const { data: chainInfos, error: chainInfoErr } = useQuery(
|
|
3777
|
-
needFetchFromAPI ? `https://api
|
|
3777
|
+
needFetchFromAPI ? `https://api.orderly.org/v1/public/chain_info${brokerId !== "orderly" ? `?broker_id=${brokerId}` : ""}` : null,
|
|
3778
3778
|
{ ...commonSwrOpts }
|
|
3779
3779
|
);
|
|
3780
3780
|
const { data: testChainInfos } = useQuery(
|
|
3781
|
-
needFetchFromAPI ? `https://testnet-api
|
|
3781
|
+
needFetchFromAPI ? `https://testnet-api.orderly.org/v1/public/chain_info${brokerId !== "orderly" ? `?broker_id=${brokerId}` : ""}` : null,
|
|
3782
3782
|
{ ...commonSwrOpts }
|
|
3783
3783
|
);
|
|
3784
3784
|
const chains = React.useMemo(() => {
|
|
@@ -7670,7 +7670,7 @@ var DataPaint = class extends BasePaint {
|
|
|
7670
7670
|
let prevElementBoundingBox = {};
|
|
7671
7671
|
if (typeof options.data?.position.side !== "undefined") {
|
|
7672
7672
|
prevElementBoundingBox = this._drawText(options.data.position.side, {
|
|
7673
|
-
color: options.data?.position.side.toUpperCase() === "LONG" ? this.DEFAULT_PROFIT_COLOR : this.DEFAULT_LOSS_COLOR,
|
|
7673
|
+
color: options.data?.position.side.toUpperCase() === "LONG" ? options.profitColor || this.DEFAULT_PROFIT_COLOR : options.lossColor || this.DEFAULT_LOSS_COLOR,
|
|
7674
7674
|
left,
|
|
7675
7675
|
top: this._ratio(top),
|
|
7676
7676
|
fontSize: this._ratio(fontSize),
|
|
@@ -13473,17 +13473,15 @@ var ENVType2 = /* @__PURE__ */ ((ENVType3) => {
|
|
|
13473
13473
|
})(ENVType2 || {});
|
|
13474
13474
|
var useGetEnv = () => {
|
|
13475
13475
|
const { configStore } = React.useContext(OrderlyContext);
|
|
13476
|
-
const
|
|
13477
|
-
|
|
13478
|
-
|
|
13479
|
-
|
|
13480
|
-
|
|
13481
|
-
|
|
13482
|
-
|
|
13483
|
-
return "qa" /* qa */;
|
|
13484
|
-
default:
|
|
13485
|
-
return "prod" /* prod */;
|
|
13476
|
+
const env = configStore.get("env");
|
|
13477
|
+
const networkId = configStore.get("networkId");
|
|
13478
|
+
if (networkId === "mainnet") {
|
|
13479
|
+
return "prod" /* prod */;
|
|
13480
|
+
}
|
|
13481
|
+
if (networkId === "testnet" && env === "prod") {
|
|
13482
|
+
return "staging" /* staging */;
|
|
13486
13483
|
}
|
|
13484
|
+
return env ?? "staging" /* staging */;
|
|
13487
13485
|
};
|
|
13488
13486
|
|
|
13489
13487
|
// src/trading-rewards/abis/contrast.ts
|
|
@@ -14523,13 +14521,13 @@ var useOrderEntity = (order, options) => {
|
|
|
14523
14521
|
symbolInfo
|
|
14524
14522
|
};
|
|
14525
14523
|
};
|
|
14526
|
-
var
|
|
14524
|
+
var useRestrictedInfo = (options) => {
|
|
14527
14525
|
const {
|
|
14528
14526
|
enableDefault = false,
|
|
14529
14527
|
customRestrictedIps = [],
|
|
14530
14528
|
customRestrictedRegions = [],
|
|
14531
|
-
|
|
14532
|
-
} =
|
|
14529
|
+
content
|
|
14530
|
+
} = options || {};
|
|
14533
14531
|
const apiBaseUrl = useConfig("apiBaseUrl");
|
|
14534
14532
|
const [invalidWebCity, setInvalidWebCity] = React.useState([]);
|
|
14535
14533
|
const [invalidWebCountry, setInvalidWebCountry] = React.useState([]);
|
|
@@ -14538,7 +14536,7 @@ var useRestrictedAreas = (params) => {
|
|
|
14538
14536
|
const [city, setCity] = React.useState("");
|
|
14539
14537
|
const [region, setRegion] = React.useState("");
|
|
14540
14538
|
const [ip, setIp] = React.useState("");
|
|
14541
|
-
const [
|
|
14539
|
+
const [restrictedOpen, setRestrictedOpen] = React.useState(false);
|
|
14542
14540
|
React.useEffect(() => {
|
|
14543
14541
|
const fetchData = async () => {
|
|
14544
14542
|
try {
|
|
@@ -14572,7 +14570,7 @@ var useRestrictedAreas = (params) => {
|
|
|
14572
14570
|
) || combinedInvalidRegions.includes(
|
|
14573
14571
|
ipData?.data?.region?.replace(/\s+/g, "").toLocaleLowerCase()
|
|
14574
14572
|
) || customRestrictedIps.includes(ipData?.data?.ip)) {
|
|
14575
|
-
|
|
14573
|
+
setRestrictedOpen(true);
|
|
14576
14574
|
}
|
|
14577
14575
|
}
|
|
14578
14576
|
} catch (error) {
|
|
@@ -14583,8 +14581,8 @@ var useRestrictedAreas = (params) => {
|
|
|
14583
14581
|
return {
|
|
14584
14582
|
ip,
|
|
14585
14583
|
invalidRegions: allInvalidAreas,
|
|
14586
|
-
|
|
14587
|
-
|
|
14584
|
+
restrictedOpen,
|
|
14585
|
+
content
|
|
14588
14586
|
};
|
|
14589
14587
|
};
|
|
14590
14588
|
|
|
@@ -14690,7 +14688,7 @@ exports.useRefereeInfo = useRefereeInfo;
|
|
|
14690
14688
|
exports.useRefereeRebateSummary = useRefereeRebateSummary;
|
|
14691
14689
|
exports.useReferralInfo = useReferralInfo;
|
|
14692
14690
|
exports.useReferralRebateSummary = useReferralRebateSummary;
|
|
14693
|
-
exports.
|
|
14691
|
+
exports.useRestrictedInfo = useRestrictedInfo;
|
|
14694
14692
|
exports.useSessionStorage = useSessionStorage;
|
|
14695
14693
|
exports.useSettleSubscription = useSettleSubscription;
|
|
14696
14694
|
exports.useSimpleDI = useSimpleDI;
|