@paperxyz/sdk-common-utilities
Advanced tools
Comparing version 0.0.0 to 0.0.1
declare const ChainToPublicRpc: Record<Chain, string>; | ||
type Chain = "Polygon" | "Mumbai" | "Goerli" | "Ethereum" | "Avalanche"; | ||
type SupportedChainName = Chain | "Rinkeby" | "Solana" | "SolanaDevnet"; | ||
@@ -17,3 +18,3 @@ type MessageType<T> = { | ||
type StyleObject = Partial<CSSStyleDeclaration>; | ||
type CustomizationOptionsType = { | ||
interface ICustomizationOptions { | ||
colorPrimary?: string; | ||
@@ -24,4 +25,17 @@ colorBackground?: string; | ||
fontFamily?: string; | ||
inputBackgroundColor?: string; | ||
inputBorderColor?: string; | ||
} | ||
type CustomizationOptionsType = { | ||
[key in keyof ICustomizationOptions]: string; | ||
}; | ||
type Locale = "en" | "fr" | "es" | "it" | "de" | "ja" | "ko" | "zh"; | ||
declare const DEFAULT_BRAND_OPTIONS: { | ||
colorPrimary: string; | ||
colorBackground: string; | ||
colorText: string; | ||
borderRadius: number; | ||
fontFamily: string; | ||
}; | ||
export { Chain, ChainToPublicRpc, CustomizationOptionsType, MessageType, StyleObject, getPaperOriginUrl }; | ||
export { Chain, ChainToPublicRpc, CustomizationOptionsType, DEFAULT_BRAND_OPTIONS, ICustomizationOptions, Locale, MessageType, StyleObject, SupportedChainName, getPaperOriginUrl }; |
@@ -1,2 +0,2 @@ | ||
"use strict";var n=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var s=Object.prototype.hasOwnProperty;var m=(t,e)=>{for(var i in e)n(t,i,{get:e[i],enumerable:!0})},h=(t,e,i,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of l(e))!s.call(t,o)&&o!==i&&n(t,o,{get:()=>e[o],enumerable:!(r=c(e,o))||r.enumerable});return t};var d=t=>h(n({},"__esModule",{value:!0}),t);var f={};m(f,{ChainToPublicRpc:()=>p,getPaperOriginUrl:()=>a});module.exports=d(f);var p={Ethereum:"https://rpc.ankr.com/eth",Goerli:"https://eth-goerli.g.alchemy.com/v2/demo",Mumbai:"https://rpc-mumbai.maticvigil.com",Polygon:"https://rpc-mainnet.maticvigil.com",Avalanche:"https://api.avax.network/ext/bc/C/rpc"};var g=()=>typeof window!="undefined"&&window.localStorage.getItem("IS_PAPER_DEV")==="true",u=()=>!!(typeof window!="undefined"&&window.location.origin.includes("zeet-paper.zeet.app")),w=()=>typeof window!="undefined"&&window.location.origin.includes("paper.xyz"),a=()=>{var t,e;return g()?(t=window.localStorage.getItem("PAPER_DEV_URL"))!=null?t:"http://localhost:3000":u()?(e=process==null?void 0:process.env)!=null&&e.ZEET_DEPLOYMENT_URL?`https://${process.env.ZEET_DEPLOYMENT_URL}`:typeof window!="undefined"?window.location.origin:"https://withpaper.com":w()?window.location.origin:"https://withpaper.com"};0&&(module.exports={ChainToPublicRpc,getPaperOriginUrl}); | ||
"use strict";var i=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var u=(o,t)=>{for(var r in t)i(o,r,{get:t[r],enumerable:!0})},g=(o,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of s(t))!m.call(o,e)&&e!==r&&i(o,e,{get:()=>t[e],enumerable:!(n=l(t,e))||n.enumerable});return o};var y=o=>g(i({},"__esModule",{value:!0}),o);var f={};u(f,{ChainToPublicRpc:()=>a,DEFAULT_BRAND_OPTIONS:()=>c,getPaperOriginUrl:()=>p});module.exports=y(f);var a={Ethereum:"https://rpc.ankr.com/eth",Goerli:"https://eth-goerli.g.alchemy.com/v2/demo",Mumbai:"https://rpc-mumbai.maticvigil.com",Polygon:"https://rpc-mainnet.maticvigil.com",Avalanche:"https://api.avax.network/ext/bc/C/rpc"};var h=()=>typeof window!="undefined"&&window.localStorage.getItem("IS_PAPER_DEV")==="true",d=()=>typeof window!="undefined"&&window.location.origin.includes("paper.xyz"),p=()=>{var o;return h()?(o=window.localStorage.getItem("PAPER_DEV_URL"))!=null?o:"http://localhost:3000":d()?window.location.origin:"https://withpaper.com"};var c={colorPrimary:"#cf3781",colorBackground:"#ffffff",colorText:"#1a202c",borderRadius:12,fontFamily:"Open Sans"};0&&(module.exports={ChainToPublicRpc,DEFAULT_BRAND_OPTIONS,getPaperOriginUrl}); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@paperxyz/sdk-common-utilities", | ||
"description": "Internal utilities for Paper's internal SDK", | ||
"version": "0.0.0", | ||
"version": "0.0.1", | ||
"license": "Apache-2.0", | ||
@@ -21,5 +21,7 @@ "main": "./dist/index.js", | ||
}, | ||
"author": "Paper.xyz <team@paper.xyz>", | ||
"author": "Paper <team@withpaper.com>", | ||
"scripts": { | ||
"build": "tsup src/index.ts --env.NODE_ENV production", | ||
"build-package-ews": "yarn build", | ||
"build-package-checkout": "yarn build", | ||
"dev": "tsup src/index.ts --env.NODE_ENV development --watch", | ||
@@ -26,0 +28,0 @@ "dev-ews": "yarn dev", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
10038
43