@ape.swap/bonds-sdk 2.0.6 → 2.0.7-test.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/components/uikit-sdk/Svg/Icons/Farcaster.d.ts +4 -0
- package/dist/components/uikit-sdk/Svg/Icons/index.d.ts +1 -0
- package/dist/components/uikit-sdk/Svg/types.d.ts +2 -1
- package/dist/main.js +1029 -58
- package/dist/state/useSDKConfig.d.ts +20 -8
- package/dist/styles.css +182 -1
- package/dist/views/YourBondsModal/components/LinkShare/LinkShare.d.ts +6 -0
- package/dist/views/YourBondsModal/components/LinkShare/styles.d.ts +2 -0
- package/dist/views/YourBondsModal/components/LinkShare/templateImageShare.d.ts +2 -0
- package/package.json +14 -12
|
@@ -1,18 +1,30 @@
|
|
|
1
|
+
declare const defaultUrls: {
|
|
2
|
+
apiV2: string;
|
|
3
|
+
realTimeApi: string;
|
|
4
|
+
apeswapLists: string;
|
|
5
|
+
mainUrl: string;
|
|
6
|
+
};
|
|
1
7
|
export interface SDKProps {
|
|
2
8
|
config: {
|
|
3
9
|
referenceId: string;
|
|
4
|
-
environment: 'main' | 'staging';
|
|
5
10
|
chains: number[];
|
|
6
11
|
useRainbowKit: boolean;
|
|
7
12
|
modalVariant: 'alt' | 'standard';
|
|
13
|
+
urls?: Partial<Record<keyof typeof defaultUrls, string>>;
|
|
8
14
|
};
|
|
9
15
|
}
|
|
10
16
|
export declare const useSDKConfig: (config?: SDKProps) => {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
17
|
+
urls: {
|
|
18
|
+
apiV2: string;
|
|
19
|
+
realTimeApi: string;
|
|
20
|
+
apeswapLists: string;
|
|
21
|
+
mainUrl: string;
|
|
22
|
+
};
|
|
23
|
+
referenceId?: string | undefined;
|
|
24
|
+
chains?: number[] | undefined;
|
|
25
|
+
useRainbowKit?: boolean | undefined;
|
|
26
|
+
modalVariant?: "alt" | "standard" | undefined;
|
|
27
|
+
};
|
|
28
|
+
export type URLKeys = 'apiV2' | 'realTimeApi' | 'apeswapLists' | 'mainUrl';
|
|
18
29
|
export declare const useURLByEnvironment: (key: URLKeys) => string;
|
|
30
|
+
export {};
|
package/dist/styles.css
CHANGED
|
@@ -1562,7 +1562,6 @@ span.flex-inline {
|
|
|
1562
1562
|
display: flex;
|
|
1563
1563
|
justify-content: space-between;
|
|
1564
1564
|
flex-direction: column;
|
|
1565
|
-
gap: 20px;
|
|
1566
1565
|
}
|
|
1567
1566
|
@media screen and (min-width: 1000px) {
|
|
1568
1567
|
.yourbondinfo.button-container {
|
|
@@ -1659,3 +1658,185 @@ span.flex-inline {
|
|
|
1659
1658
|
left: 10px;
|
|
1660
1659
|
}
|
|
1661
1660
|
}
|
|
1661
|
+
|
|
1662
|
+
.sharebondimage-card {
|
|
1663
|
+
flex-direction: column;
|
|
1664
|
+
width: 768px;
|
|
1665
|
+
height: 768px;
|
|
1666
|
+
align-items: center;
|
|
1667
|
+
background-image: url(/images/bills/bg.png);
|
|
1668
|
+
background-size: cover;
|
|
1669
|
+
background-position: bottom center;
|
|
1670
|
+
background-repeat: no-repeat;
|
|
1671
|
+
justify-content: center;
|
|
1672
|
+
display: flex;
|
|
1673
|
+
}
|
|
1674
|
+
|
|
1675
|
+
.sharebondimage-nft {
|
|
1676
|
+
margin-top: 60px;
|
|
1677
|
+
flex-direction: column;
|
|
1678
|
+
align-items: center;
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1681
|
+
.sharebondimage-nft-id {
|
|
1682
|
+
display: flex;
|
|
1683
|
+
position: absolute;
|
|
1684
|
+
top: 15px;
|
|
1685
|
+
right: -61px;
|
|
1686
|
+
min-width: 60px;
|
|
1687
|
+
height: 28px;
|
|
1688
|
+
border-radius: 0px 6px 6px 0px;
|
|
1689
|
+
justify-content: center;
|
|
1690
|
+
align-items: center;
|
|
1691
|
+
background-color: rgba(255, 255, 255, 0.1);
|
|
1692
|
+
backdrop-filter: blur(34px);
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1695
|
+
.sharebondimage-nft-id span {
|
|
1696
|
+
font-size: 14px;
|
|
1697
|
+
color: text;
|
|
1698
|
+
line-height: 8px;
|
|
1699
|
+
}
|
|
1700
|
+
|
|
1701
|
+
.sharebondimage-nft img {
|
|
1702
|
+
width: 319px;
|
|
1703
|
+
height: 180px;
|
|
1704
|
+
border-radius: 10px 10px 0px 0px;
|
|
1705
|
+
}
|
|
1706
|
+
|
|
1707
|
+
.sharebondimage-container-info {
|
|
1708
|
+
display: flex;
|
|
1709
|
+
width: 381px;
|
|
1710
|
+
height: 147px;
|
|
1711
|
+
background-color: rgba(255, 255, 255, 0.1);
|
|
1712
|
+
backdrop-filter: blur(34px);
|
|
1713
|
+
border-radius: 10px;
|
|
1714
|
+
justify-content: start;
|
|
1715
|
+
align-items: start;
|
|
1716
|
+
flex-direction: column;
|
|
1717
|
+
padding: 10px 8px 10px 8px;
|
|
1718
|
+
margin-top: -3px;
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1721
|
+
.sharebondimage-container-discount {
|
|
1722
|
+
display: flex;
|
|
1723
|
+
justify-content: start;
|
|
1724
|
+
align-items: center;
|
|
1725
|
+
width: 100%;
|
|
1726
|
+
background-color: rgba(255, 255, 255, 0.05);
|
|
1727
|
+
border-radius: 7px;
|
|
1728
|
+
padding: 10px;
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
.sharebondimage-container-off {
|
|
1732
|
+
display: flex;
|
|
1733
|
+
margin-left: 30px;
|
|
1734
|
+
width: 110px;
|
|
1735
|
+
height: 27px;
|
|
1736
|
+
border-radius: 5px;
|
|
1737
|
+
border: 1px solid rgba(56, 166, 17, 0.2);
|
|
1738
|
+
justify-content: center;
|
|
1739
|
+
align-items: center;
|
|
1740
|
+
background-color: rgba(56, 166, 17, 0.0509803922);
|
|
1741
|
+
}
|
|
1742
|
+
|
|
1743
|
+
.sharebondimage-container-off span {
|
|
1744
|
+
color: #38A611;
|
|
1745
|
+
font-size: 16px;
|
|
1746
|
+
font-weight: 700;
|
|
1747
|
+
}
|
|
1748
|
+
|
|
1749
|
+
.sharebondimage-container-discount-price {
|
|
1750
|
+
flex-direction: column;
|
|
1751
|
+
margin-left: 13px;
|
|
1752
|
+
}
|
|
1753
|
+
|
|
1754
|
+
.sharebondimage-container-discount-token {
|
|
1755
|
+
display: flex;
|
|
1756
|
+
gap: 4px;
|
|
1757
|
+
color: rgba(255, 255, 255, 0.5);
|
|
1758
|
+
}
|
|
1759
|
+
|
|
1760
|
+
.sharebondimage-container-discount-token span {
|
|
1761
|
+
font-size: 14px;
|
|
1762
|
+
font-weight: 400;
|
|
1763
|
+
}
|
|
1764
|
+
|
|
1765
|
+
.sharebondimage-container-discount-price-discount {
|
|
1766
|
+
color: #49B423;
|
|
1767
|
+
font-size: 22px;
|
|
1768
|
+
font-weight: 700;
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1771
|
+
.sharebondimage-container-tokens {
|
|
1772
|
+
display: flex;
|
|
1773
|
+
width: 100%;
|
|
1774
|
+
padding-top: 6px;
|
|
1775
|
+
gap: 5px;
|
|
1776
|
+
justify-content: center;
|
|
1777
|
+
align-items: center;
|
|
1778
|
+
}
|
|
1779
|
+
|
|
1780
|
+
.sharebondimage-container-token {
|
|
1781
|
+
display: flex;
|
|
1782
|
+
gap: 5px;
|
|
1783
|
+
justify-content: center;
|
|
1784
|
+
align-items: center;
|
|
1785
|
+
width: 100%;
|
|
1786
|
+
background-color: rgba(255, 255, 255, 0.05);
|
|
1787
|
+
border-radius: 7px;
|
|
1788
|
+
padding: 10px;
|
|
1789
|
+
}
|
|
1790
|
+
|
|
1791
|
+
.sharebondimage-container-token img {
|
|
1792
|
+
width: 26px;
|
|
1793
|
+
height: 26px;
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
.sharebondimage-amount-deposit {
|
|
1797
|
+
color: #FAFAFA;
|
|
1798
|
+
font-size: 14px;
|
|
1799
|
+
font-weight: 700;
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
.sharebondimage-dollarvalue {
|
|
1803
|
+
color: rgba(255, 255, 255, 0.5);
|
|
1804
|
+
font-size: 12px;
|
|
1805
|
+
font-weight: 400;
|
|
1806
|
+
}
|
|
1807
|
+
|
|
1808
|
+
.sharebondimage-container-earntoken {
|
|
1809
|
+
display: flex;
|
|
1810
|
+
flex-direction: column;
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
.sharebondimage-amount-earntoken {
|
|
1814
|
+
display: flex;
|
|
1815
|
+
gap: 5px;
|
|
1816
|
+
justify-content: center;
|
|
1817
|
+
align-items: center;
|
|
1818
|
+
}
|
|
1819
|
+
|
|
1820
|
+
.sharebondimage-profit {
|
|
1821
|
+
justify-content: center;
|
|
1822
|
+
align-items: center;
|
|
1823
|
+
}
|
|
1824
|
+
|
|
1825
|
+
.sharebondimage-profit span {
|
|
1826
|
+
color: #38A611;
|
|
1827
|
+
font-size: 10px;
|
|
1828
|
+
font-weight: 400;
|
|
1829
|
+
line-height: 4px;
|
|
1830
|
+
}
|
|
1831
|
+
|
|
1832
|
+
.sharebondimage-amount-payout {
|
|
1833
|
+
color: #38A611;
|
|
1834
|
+
font-size: 14px;
|
|
1835
|
+
font-weight: 700;
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
.sharebondimage-amount-dollarvalue {
|
|
1839
|
+
color: #38A611;
|
|
1840
|
+
font-size: 12px;
|
|
1841
|
+
font-weight: 400;
|
|
1842
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { UserBill, UserBillNftData } from '../../../../types/yourbonds';
|
|
2
|
+
declare const LinkShare: ({ bondNFTData, userBill }: {
|
|
3
|
+
bondNFTData: UserBillNftData | undefined;
|
|
4
|
+
userBill: UserBill | undefined;
|
|
5
|
+
}) => import("react").JSX.Element;
|
|
6
|
+
export default LinkShare;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Ape Bond SDK",
|
|
4
4
|
"author": "Ape Bond",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "2.0.
|
|
6
|
+
"version": "2.0.7-test.0",
|
|
7
7
|
"module": "dist/main.js",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"types": "dist/main.d.ts",
|
|
@@ -20,20 +20,22 @@
|
|
|
20
20
|
"lint": "eslint && tsc --noEmit"
|
|
21
21
|
},
|
|
22
22
|
"peerDependencies": {
|
|
23
|
+
"@rainbow-me/rainbowkit": "^2.1.6",
|
|
24
|
+
"@tanstack/react-query": "5.51.5",
|
|
25
|
+
"axios": "1.7.2",
|
|
23
26
|
"react": "^18.2.0",
|
|
24
27
|
"react-dom": "^17.0.0 || ^18.0.0",
|
|
25
|
-
"
|
|
26
|
-
"wagmi": "2.12.17",
|
|
27
|
-
"@tanstack/react-query": "5.51.5",
|
|
28
|
-
"@rainbow-me/rainbowkit": "^2.1.6"
|
|
28
|
+
"wagmi": "2.12.17"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@eslint/js": "^9.10.0",
|
|
32
|
+
"@rainbow-me/rainbowkit": "^2.1.6",
|
|
32
33
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
33
34
|
"@rollup/plugin-json": "^6.1.0",
|
|
34
35
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
35
36
|
"@rollup/plugin-typescript": "^11.1.6",
|
|
36
37
|
"@tanstack/react-query-devtools": "5.51.5",
|
|
38
|
+
"@types/dom-to-image": "^2.6.7",
|
|
37
39
|
"@types/lodash": "^4.17.6",
|
|
38
40
|
"@types/react": "^18.3.3",
|
|
39
41
|
"@types/react-dom": "^18.3.0",
|
|
@@ -47,26 +49,26 @@
|
|
|
47
49
|
"rimraf": "5.0.10",
|
|
48
50
|
"rollup": "^4.14.0",
|
|
49
51
|
"rollup-plugin-scss": "^4.0.0",
|
|
52
|
+
"sass": "^1.77.7",
|
|
50
53
|
"typescript": "^5.0.0",
|
|
51
54
|
"typescript-eslint": "^8.5.0",
|
|
52
55
|
"vite": "^5.4.4",
|
|
53
|
-
"yalc": "^1.0.0-pre.53"
|
|
54
|
-
"sass": "^1.77.7",
|
|
55
|
-
"@rainbow-me/rainbowkit": "^2.1.6"
|
|
56
|
+
"yalc": "^1.0.0-pre.53"
|
|
56
57
|
},
|
|
57
58
|
"dependencies": {
|
|
58
59
|
"@ape.swap/apeswap-lists": "3.70.1",
|
|
59
60
|
"@emotion/react": "^11.11.4",
|
|
60
61
|
"bignumber.js": "^9.1.2",
|
|
62
|
+
"chart.js": "4.2.0",
|
|
63
|
+
"dom-to-image": "^2.6.0",
|
|
61
64
|
"framer-motion": "^11.3.2",
|
|
65
|
+
"lightweight-charts": "4.1.5",
|
|
62
66
|
"lodash": "^4.17.21",
|
|
63
67
|
"numbro": "^2.5.0",
|
|
64
|
-
"swiper": "8.4.7",
|
|
65
|
-
"theme-ui": "0.16.2",
|
|
66
68
|
"primereact": "10.6.2",
|
|
67
|
-
"chart.js": "4.2.0",
|
|
68
69
|
"react-chartjs-2": "5.2.0",
|
|
69
|
-
"
|
|
70
|
+
"swiper": "8.4.7",
|
|
71
|
+
"theme-ui": "0.16.2"
|
|
70
72
|
},
|
|
71
73
|
"browserslist": {
|
|
72
74
|
"production": [
|