@kodiak-finance/orderly-react-app 2.9.2-alpha.1 → 2.9.3
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 +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +41 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +43 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +7 -7
package/dist/index.d.mts
CHANGED
|
@@ -142,7 +142,7 @@ declare function useCanTrade(): boolean;
|
|
|
142
142
|
/**
|
|
143
143
|
* SDK Version - BUMP THIS WHEN RELEASING
|
|
144
144
|
*/
|
|
145
|
-
declare const SDK_VERSION = "2.9.
|
|
145
|
+
declare const SDK_VERSION = "2.9.3";
|
|
146
146
|
type ChangesetEntry = {
|
|
147
147
|
date: string;
|
|
148
148
|
title: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -142,7 +142,7 @@ declare function useCanTrade(): boolean;
|
|
|
142
142
|
/**
|
|
143
143
|
* SDK Version - BUMP THIS WHEN RELEASING
|
|
144
144
|
*/
|
|
145
|
-
declare const SDK_VERSION = "2.9.
|
|
145
|
+
declare const SDK_VERSION = "2.9.3";
|
|
146
146
|
type ChangesetEntry = {
|
|
147
147
|
date: string;
|
|
148
148
|
title: string;
|
package/dist/index.js
CHANGED
|
@@ -195,6 +195,9 @@ function useUILocale() {
|
|
|
195
195
|
return react.useMemo(() => {
|
|
196
196
|
const calendarLocale = {
|
|
197
197
|
[orderlyI18n.LocaleEnum.en]: locale.enUS,
|
|
198
|
+
[orderlyI18n.LocaleEnum.ar]: locale.arSA,
|
|
199
|
+
[orderlyI18n.LocaleEnum.fa]: locale.faIR,
|
|
200
|
+
[orderlyI18n.LocaleEnum.he]: locale.he,
|
|
198
201
|
[orderlyI18n.LocaleEnum.zh]: locale.zhCN
|
|
199
202
|
// [LocaleEnum.ja]: ja,
|
|
200
203
|
// [LocaleEnum.es]: es,
|
|
@@ -255,7 +258,7 @@ var useAssetconvertEvent = () => {
|
|
|
255
258
|
}
|
|
256
259
|
);
|
|
257
260
|
return () => unsubscribe();
|
|
258
|
-
}, []);
|
|
261
|
+
}, [t, ws]);
|
|
259
262
|
};
|
|
260
263
|
function useCurrentChainId(defaultChain) {
|
|
261
264
|
const { storageChain, setStorageChain } = orderlyHooks.useStorageChain();
|
|
@@ -992,7 +995,7 @@ var ErrorBoundary = class extends react.Component {
|
|
|
992
995
|
}
|
|
993
996
|
render() {
|
|
994
997
|
if (this.state.hasError) {
|
|
995
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
998
|
+
return /* @__PURE__ */ jsxRuntime.jsx(orderlyI18n.Translation, { children: (t) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
996
999
|
orderlyUi.Flex,
|
|
997
1000
|
{
|
|
998
1001
|
direction: "column",
|
|
@@ -1012,7 +1015,7 @@ var ErrorBoundary = class extends react.Component {
|
|
|
1012
1015
|
),
|
|
1013
1016
|
intensity: 80,
|
|
1014
1017
|
weight: "bold",
|
|
1015
|
-
children: this.props.title ||
|
|
1018
|
+
children: this.props.title || t("errorBoundary.title")
|
|
1016
1019
|
}
|
|
1017
1020
|
),
|
|
1018
1021
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -1026,7 +1029,7 @@ var ErrorBoundary = class extends react.Component {
|
|
|
1026
1029
|
),
|
|
1027
1030
|
weight: "semibold",
|
|
1028
1031
|
intensity: 36,
|
|
1029
|
-
children: this.props.description ||
|
|
1032
|
+
children: this.props.description || t("errorBoundary.description")
|
|
1030
1033
|
}
|
|
1031
1034
|
),
|
|
1032
1035
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
@@ -1043,14 +1046,14 @@ var ErrorBoundary = class extends react.Component {
|
|
|
1043
1046
|
variant: "gradient",
|
|
1044
1047
|
size: "md",
|
|
1045
1048
|
children: [
|
|
1046
|
-
/* @__PURE__ */ jsxRuntime.jsx(RefreshIcon, { className: "oui-
|
|
1047
|
-
this.props.refreshButtonText ||
|
|
1049
|
+
/* @__PURE__ */ jsxRuntime.jsx(RefreshIcon, { className: "oui-me-1" }),
|
|
1050
|
+
this.props.refreshButtonText || t("errorBoundary.refresh")
|
|
1048
1051
|
]
|
|
1049
1052
|
}
|
|
1050
1053
|
)
|
|
1051
1054
|
]
|
|
1052
1055
|
}
|
|
1053
|
-
);
|
|
1056
|
+
) });
|
|
1054
1057
|
}
|
|
1055
1058
|
return this.props.children;
|
|
1056
1059
|
}
|
|
@@ -1264,21 +1267,49 @@ function useCanTrade() {
|
|
|
1264
1267
|
}
|
|
1265
1268
|
|
|
1266
1269
|
// src/constants/changesets.ts
|
|
1267
|
-
var SDK_VERSION = "2.9.
|
|
1270
|
+
var SDK_VERSION = "2.9.3";
|
|
1268
1271
|
var CHANGESETS = {
|
|
1272
|
+
"2.9.3": {
|
|
1273
|
+
date: "2026-06-05",
|
|
1274
|
+
title: "Orderly SDK 3.1.0 sync with right-to-left language support",
|
|
1275
|
+
summary: "Aligned the SDK with the Orderly SDK 3.1.0 update, headlined by full right-to-left (RTL) language support so Arabic, Hebrew, and Persian render with correctly mirrored layouts. Also improved max order quantity accuracy using the current order reference price and hardened account registration.",
|
|
1276
|
+
highlights: [
|
|
1277
|
+
"Right-to-left layout support \u2014 UI now mirrors correctly (document direction plus logical spacing/alignment) when the active language is Arabic, Hebrew, or Persian, across trading, charts, affiliate, and markets surfaces",
|
|
1278
|
+
"More accurate max order quantity \u2014 order entry now uses the current order reference price from the best bid/ask, improving max-size calculations for limit orders and isolated margin",
|
|
1279
|
+
"Hardened account registration with a dedicated registration-nonce flow",
|
|
1280
|
+
"Synced internal integrations and app surfaces to the new Orderly SDK 3.1.0 behavior"
|
|
1281
|
+
],
|
|
1282
|
+
packages: [
|
|
1283
|
+
"kodiak-orderly-i18n",
|
|
1284
|
+
"kodiak-orderly-ui",
|
|
1285
|
+
"kodiak-orderly-hooks",
|
|
1286
|
+
"kodiak-orderly-core",
|
|
1287
|
+
"kodiak-orderly-trading",
|
|
1288
|
+
"kodiak-orderly-chart",
|
|
1289
|
+
"kodiak-orderly-affiliate",
|
|
1290
|
+
"kodiak-orderly-markets",
|
|
1291
|
+
"kodiak-orderly-layout-split",
|
|
1292
|
+
"kodiak-orderly-app"
|
|
1293
|
+
],
|
|
1294
|
+
type: "improvement"
|
|
1295
|
+
},
|
|
1269
1296
|
"2.9.2": {
|
|
1270
1297
|
date: "2026-05-06",
|
|
1271
1298
|
title: "Orderly SDK 3.0.2 sync",
|
|
1272
1299
|
summary: "Aligned the SDK with the latest Orderly SDK 3.0.2 update and staged the release as the first alpha prerelease for the next patch version.",
|
|
1273
1300
|
highlights: [
|
|
1274
|
-
"Synced internal integrations and app surfaces to the new Orderly SDK 3.0.2 behavior"
|
|
1301
|
+
"Synced internal integrations and app surfaces to the new Orderly SDK 3.0.2 behavior",
|
|
1302
|
+
"Fixed leverage not updating after switching to isolated margin mode",
|
|
1303
|
+
"Fixed stale order-entry state causing incorrect symbol/margin-mode behavior when switching between cross and isolated margin",
|
|
1304
|
+
"Added support for deposits from exchanges / other wallets via an exclusive deposit flow"
|
|
1275
1305
|
],
|
|
1276
1306
|
packages: [
|
|
1277
1307
|
"kodiak-orderly-app",
|
|
1278
1308
|
"kodiak-orderly-core",
|
|
1279
1309
|
"kodiak-orderly-hooks",
|
|
1280
1310
|
"kodiak-orderly-types",
|
|
1281
|
-
"kodiak-orderly-ui"
|
|
1311
|
+
"kodiak-orderly-ui",
|
|
1312
|
+
"kodiak-orderly-trading"
|
|
1282
1313
|
],
|
|
1283
1314
|
type: "improvement"
|
|
1284
1315
|
},
|