@ape.swap/bonds-sdk 2.0.7-test.1 → 2.0.7-test.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/main.js CHANGED
@@ -70802,6 +70802,28 @@ const remove0xPrefix = (str) => {
70802
70802
  return str;
70803
70803
  };
70804
70804
 
70805
+ const styles$a = {
70806
+ linkShareButton: {
70807
+ background: 'migration',
70808
+ width: '36px',
70809
+ height: '26px',
70810
+ justifyContent: 'center',
70811
+ alignItems: 'center',
70812
+ borderRadius: '8px',
70813
+ cursor: 'pointer',
70814
+ },
70815
+ containerLinksShare: {
70816
+ position: 'absolute',
70817
+ height: '28px',
70818
+ right: '8.5px',
70819
+ top: '9px',
70820
+ justifyContent: 'center',
70821
+ alignItems: 'center',
70822
+ gap: '10px',
70823
+ zIndex: 3,
70824
+ },
70825
+ };
70826
+
70805
70827
  var domToImage = {exports: {}};
70806
70828
 
70807
70829
  (function (module) {
@@ -71663,28 +71685,6 @@ function getTemplateHTML(data) {
71663
71685
  `;
71664
71686
  }
71665
71687
 
71666
- const styles$a = {
71667
- linkShareButton: {
71668
- background: 'migration',
71669
- width: '36px',
71670
- height: '26px',
71671
- justifyContent: 'center',
71672
- alignItems: 'center',
71673
- borderRadius: '8px',
71674
- cursor: 'pointer',
71675
- },
71676
- containerLinksShare: {
71677
- position: 'absolute',
71678
- height: '28px',
71679
- right: '8.5px',
71680
- top: '9px',
71681
- justifyContent: 'center',
71682
- alignItems: 'center',
71683
- gap: '10px',
71684
- zIndex: 3,
71685
- }
71686
- };
71687
-
71688
71688
  function generateImageFromTemplate(bondNFTData, link, apiUrl) {
71689
71689
  return __awaiter$9(this, void 0, void 0, function* () {
71690
71690
  var _a;
@@ -71740,7 +71740,8 @@ function checkImageExists(fileName) {
71740
71740
  return existImg;
71741
71741
  });
71742
71742
  }
71743
- const LinkShare = ({ bondNFTData, userBill }) => {
71743
+
71744
+ const LinkShare = ({ bondNFTData, userBill, }) => {
71744
71745
  var _a;
71745
71746
  const mainUrl = useURLByEnvironment('mainUrl');
71746
71747
  const apiUrl = useURLByEnvironment('apiV2');
@@ -1,16 +1,10 @@
1
- declare const defaultUrls: {
2
- apiV2: string;
3
- realTimeApi: string;
4
- apeswapLists: string;
5
- mainUrl: string;
6
- };
7
1
  export interface SDKProps {
8
2
  config: {
9
3
  referenceId: string;
10
4
  chains: number[];
11
5
  useRainbowKit: boolean;
12
6
  modalVariant: 'alt' | 'standard';
13
- urls?: Partial<Record<keyof typeof defaultUrls, string>>;
7
+ urls?: Partial<Record<URLKeys, string>>;
14
8
  };
15
9
  }
16
10
  export declare const useSDKConfig: (config?: SDKProps) => {
@@ -27,4 +21,3 @@ export declare const useSDKConfig: (config?: SDKProps) => {
27
21
  };
28
22
  export type URLKeys = 'apiV2' | 'realTimeApi' | 'apeswapLists' | 'mainUrl';
29
23
  export declare const useURLByEnvironment: (key: URLKeys) => string;
30
- export {};
package/dist/styles.css CHANGED
@@ -1673,7 +1673,7 @@ span.flex-inline {
1673
1673
  }
1674
1674
 
1675
1675
  .sharebondimage-nft {
1676
- margin-top: 60px;
1676
+ margin-top: 10px;
1677
1677
  flex-direction: column;
1678
1678
  align-items: center;
1679
1679
  }
@@ -1,5 +1,5 @@
1
1
  import { UserBill, UserBillNftData } from '../../../../types/yourbonds';
2
- declare const LinkShare: ({ bondNFTData, userBill }: {
2
+ declare const LinkShare: ({ bondNFTData, userBill, }: {
3
3
  bondNFTData: UserBillNftData | undefined;
4
4
  userBill: UserBill | undefined;
5
5
  }) => import("react").JSX.Element;
@@ -1,2 +1,2 @@
1
- import { UserBillNftData } from "../../../../types/yourbonds";
1
+ import { UserBillNftData } from '../../../../types/yourbonds';
2
2
  export declare function getTemplateHTML(data: UserBillNftData): string;
@@ -0,0 +1,2 @@
1
+ import { UserBillNftData } from "../../../../types/yourbonds";
2
+ export declare function generateImageFromTemplate(bondNFTData: UserBillNftData | undefined, link: string, apiUrl: string): Promise<void>;
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.7-test.1",
6
+ "version": "2.0.7-test.3",
7
7
  "module": "dist/main.js",
8
8
  "type": "module",
9
9
  "types": "dist/main.d.ts",