@orderly.network/trading 2.6.0-alpha.0 → 2.6.1-alpha.0

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 CHANGED
@@ -419,6 +419,8 @@ declare const FundingRateModalWidget: react__default.FC<{
419
419
  declare const FundingRateDialogId = "FundingRateDialogId";
420
420
  declare const FundingRateSheetId = "FundingRateSheetId";
421
421
 
422
+ type LayoutPosition = "left" | "right";
423
+
422
424
  type TradingState = ReturnType<typeof useTradingScript>;
423
425
  declare const useTradingScript: () => TradingPageState & {
424
426
  marketsWidth: number;
@@ -463,13 +465,13 @@ declare const useTradingScript: () => TradingPageState & {
463
465
  positions: number[];
464
466
  showPositionIcon: boolean;
465
467
  updatePositions: (currentIdx: number, targetIdx: number) => void;
466
- collapsable: boolean;
467
- collapsed: any;
468
- onCollapse: (collapsed: boolean) => void;
468
+ resizeable: boolean;
469
+ panelSize: "middle" | "small" | "large";
470
+ onPanelSizeChange: (collapsed: "small" | "middle" | "large") => void;
469
471
  animating: boolean;
470
472
  setAnimating: react.Dispatch<react.SetStateAction<boolean>>;
471
473
  layout: any;
472
- onLayout: (value: string) => void;
474
+ onLayout: (value: LayoutPosition) => void;
473
475
  max2XL: boolean;
474
476
  min3XL: boolean;
475
477
  max4XL: boolean;
@@ -481,7 +483,7 @@ declare const useTradingScript: () => TradingPageState & {
481
483
 
482
484
  declare const Trading: FC<TradingState>;
483
485
 
484
- declare const TradingWidget: () => react_jsx_runtime.JSX.Element;
486
+ declare const TradingWidget: react__default.FC;
485
487
 
486
488
  declare const TradingPage: (props: TradingPageProps) => react_jsx_runtime.JSX.Element;
487
489
 
package/dist/index.d.ts CHANGED
@@ -419,6 +419,8 @@ declare const FundingRateModalWidget: react__default.FC<{
419
419
  declare const FundingRateDialogId = "FundingRateDialogId";
420
420
  declare const FundingRateSheetId = "FundingRateSheetId";
421
421
 
422
+ type LayoutPosition = "left" | "right";
423
+
422
424
  type TradingState = ReturnType<typeof useTradingScript>;
423
425
  declare const useTradingScript: () => TradingPageState & {
424
426
  marketsWidth: number;
@@ -463,13 +465,13 @@ declare const useTradingScript: () => TradingPageState & {
463
465
  positions: number[];
464
466
  showPositionIcon: boolean;
465
467
  updatePositions: (currentIdx: number, targetIdx: number) => void;
466
- collapsable: boolean;
467
- collapsed: any;
468
- onCollapse: (collapsed: boolean) => void;
468
+ resizeable: boolean;
469
+ panelSize: "middle" | "small" | "large";
470
+ onPanelSizeChange: (collapsed: "small" | "middle" | "large") => void;
469
471
  animating: boolean;
470
472
  setAnimating: react.Dispatch<react.SetStateAction<boolean>>;
471
473
  layout: any;
472
- onLayout: (value: string) => void;
474
+ onLayout: (value: LayoutPosition) => void;
473
475
  max2XL: boolean;
474
476
  min3XL: boolean;
475
477
  max4XL: boolean;
@@ -481,7 +483,7 @@ declare const useTradingScript: () => TradingPageState & {
481
483
 
482
484
  declare const Trading: FC<TradingState>;
483
485
 
484
- declare const TradingWidget: () => react_jsx_runtime.JSX.Element;
486
+ declare const TradingWidget: react__default.FC;
485
487
 
486
488
  declare const TradingPage: (props: TradingPageProps) => react_jsx_runtime.JSX.Element;
487
489