@cetusprotocol/terminal 2.0.5 → 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/cetus-swap.cjs.js +39 -62
- package/dist/cetus-swap.cjs.js.gz +0 -0
- package/dist/cetus-swap.es.js +14036 -14566
- package/dist/cetus-swap.es.js.gz +0 -0
- package/dist/cetus-swap.umd.js +39 -62
- package/dist/cetus-swap.umd.js.gz +0 -0
- package/dist/components/common/Tooltip.d.ts +3 -1
- package/dist/components/common/TooltipV2.d.ts +3 -1
- package/dist/config/provider.d.ts +2 -1
- package/dist/shims/react-jsx-runtime.d.ts +8 -0
- package/package.json +4 -4
|
Binary file
|
|
@@ -7,6 +7,8 @@ interface TooltipProps {
|
|
|
7
7
|
backgroundColor?: string;
|
|
8
8
|
marginTop?: string;
|
|
9
9
|
borderRadius?: string;
|
|
10
|
+
/** 触发器占满父级宽度(用于内部 flex 左右分布等);默认 inline-block 会随内容收缩 */
|
|
11
|
+
fullWidthTrigger?: boolean;
|
|
10
12
|
}
|
|
11
|
-
export default function Tooltip({ content, children, position, marginTop, borderRadius, delay, backgroundColor, }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default function Tooltip({ content, children, position, marginTop, borderRadius, delay, backgroundColor, fullWidthTrigger, }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
12
14
|
export {};
|
|
@@ -5,6 +5,8 @@ interface TooltipProps {
|
|
|
5
5
|
position?: "top" | "bottom" | "left" | "right";
|
|
6
6
|
autoSwitchTooltip?: boolean;
|
|
7
7
|
borderRadius?: string;
|
|
8
|
+
/** 与 Tooltip 一致:触发器占满父级宽度 */
|
|
9
|
+
fullWidthTrigger?: boolean;
|
|
8
10
|
}
|
|
9
|
-
export default function TooltipV2({ content, children, position, autoSwitchTooltip, borderRadius, }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export default function TooltipV2({ content, children, position, autoSwitchTooltip, borderRadius, fullWidthTrigger, }: TooltipProps): import("react/jsx-runtime").JSX.Element;
|
|
10
12
|
export {};
|
|
@@ -30,7 +30,8 @@ export declare enum AggregatorProvider {
|
|
|
30
30
|
CETUSDLMM = "CETUSDLMM",
|
|
31
31
|
FERRACLMM = "FERRACLMM",
|
|
32
32
|
FERRADLMM = "FERRADLMM",
|
|
33
|
-
BOLT = "BOLT"
|
|
33
|
+
BOLT = "BOLT",
|
|
34
|
+
MAGMAPROPAMM = "MAGMAPROPAMM"
|
|
34
35
|
}
|
|
35
36
|
export type MarketType = "pyth" | "coingecko" | "birdeye" | "Cetus";
|
|
36
37
|
export type AggregatorDex = {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { createElement, Fragment, Key } from 'react';
|
|
2
|
+
type JsxProps = Record<string, unknown> | null;
|
|
3
|
+
type JsxType = Parameters<typeof createElement>[0];
|
|
4
|
+
declare function createJsxElement(type: JsxType, props: JsxProps, key?: Key): import('react').ReactElement<{}, string | import('react').JSXElementConstructor<any>>;
|
|
5
|
+
export { Fragment };
|
|
6
|
+
export declare const jsx: typeof createJsxElement;
|
|
7
|
+
export declare const jsxs: typeof createJsxElement;
|
|
8
|
+
export declare const jsxDEV: typeof createJsxElement;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cetusprotocol/terminal",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "dist/cetus-swap.cjs.js",
|
|
6
6
|
"module": "dist/cetus-swap.es.js",
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
"peerDependencies": {
|
|
10
10
|
"@mysten/dapp-kit": ">=1.0.3",
|
|
11
11
|
"@mysten/sui": ">=2.6.0",
|
|
12
|
-
"react": "
|
|
13
|
-
"react-dom": "
|
|
12
|
+
"react": "^18.2.0 || ^19.0.0",
|
|
13
|
+
"react-dom": "^18.2.0 || ^19.0.0"
|
|
14
14
|
},
|
|
15
15
|
"scripts": {
|
|
16
16
|
"dev": "vite --config html.vite.config.ts",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"publish:lib": "npm run manifest:npm && npm run build:lib && npm publish"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@cetusprotocol/aggregator-sdk": "1.5.
|
|
30
|
+
"@cetusprotocol/aggregator-sdk": "1.5.4",
|
|
31
31
|
"@radix-ui/colors": "^3.0.0",
|
|
32
32
|
"@radix-ui/react-icons": "^1.3.0",
|
|
33
33
|
"@radix-ui/themes": "^2.0.0",
|