@berachain/config 0.1.19 → 0.1.20-beta.1

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.
Files changed (89) hide show
  1. package/dist/bepolia.cjs +8 -1
  2. package/dist/bepolia.mjs +8 -1
  3. package/dist/chunk-2XYRGOX3.mjs +64 -0
  4. package/dist/chunk-3K6IUX3G.mjs +25 -0
  5. package/dist/chunk-4H4HDUCC.mjs +179 -0
  6. package/dist/chunk-4WAGOEXT.mjs +91 -0
  7. package/dist/chunk-6TL5ZQOM.cjs +75 -0
  8. package/dist/chunk-6YB3DKEA.mjs +169 -0
  9. package/dist/chunk-75ZPJI57.cjs +9 -0
  10. package/dist/chunk-7P6ASYW6.mjs +9 -0
  11. package/dist/chunk-7RKCKAAC.cjs +138 -0
  12. package/dist/chunk-ADH7F47T.cjs +26 -0
  13. package/dist/chunk-B3NSVIEM.mjs +138 -0
  14. package/dist/chunk-BM46XQJA.mjs +55 -0
  15. package/dist/chunk-CAOMAWN5.mjs +26 -0
  16. package/dist/chunk-EYYJ2UZT.cjs +10 -0
  17. package/dist/chunk-FNTZIXS7.cjs +179 -0
  18. package/dist/chunk-KJXYSGNH.mjs +10 -0
  19. package/dist/chunk-LALEUPWL.mjs +8 -0
  20. package/dist/chunk-NFEXQHYQ.cjs +169 -0
  21. package/dist/chunk-NQ3UKQHW.mjs +75 -0
  22. package/dist/chunk-NX4FI7G3.cjs +64 -0
  23. package/dist/chunk-OA5M6XYF.cjs +91 -0
  24. package/dist/chunk-ONKAV4AG.cjs +25 -0
  25. package/dist/chunk-WRTYGXJM.cjs +55 -0
  26. package/dist/chunk-YT7WZDGI.cjs +8 -0
  27. package/dist/index.cjs +11 -1
  28. package/dist/index.mjs +11 -1
  29. package/dist/internal/edge-config/index.cjs +37 -1
  30. package/dist/internal/edge-config/index.d.cts +81 -6
  31. package/dist/internal/edge-config/index.d.ts +81 -6
  32. package/dist/internal/edge-config/index.mjs +37 -1
  33. package/dist/internal/flags/index.cjs +206 -1
  34. package/dist/internal/flags/index.mjs +206 -1
  35. package/dist/internal/header-sources.cjs +283 -11
  36. package/dist/internal/header-sources.mjs +283 -11
  37. package/dist/internal/index.cjs +40 -1
  38. package/dist/internal/index.mjs +40 -1
  39. package/dist/internal/maintenance.cjs +26 -1
  40. package/dist/internal/maintenance.mjs +26 -1
  41. package/dist/internal/nextjs/index.cjs +85 -1
  42. package/dist/internal/nextjs/index.mjs +85 -1
  43. package/dist/internal/nextjs/utils/index.cjs +39 -1
  44. package/dist/internal/nextjs/utils/index.mjs +39 -1
  45. package/dist/internal/sentry/index.cjs +11 -1
  46. package/dist/internal/sentry/index.mjs +11 -1
  47. package/dist/internal/sentry/sentry.client.config.cjs +67 -1
  48. package/dist/internal/sentry/sentry.client.config.mjs +67 -1
  49. package/dist/internal/tailwind/index.cjs +239 -1
  50. package/dist/internal/tailwind/index.mjs +239 -1
  51. package/dist/internal/tsup/index.cjs +73 -1
  52. package/dist/internal/tsup/index.mjs +73 -1
  53. package/dist/internal/wagmi/index.cjs +60 -1
  54. package/dist/internal/wagmi/index.mjs +60 -1
  55. package/dist/mainnet.cjs +10 -1
  56. package/dist/mainnet.mjs +10 -1
  57. package/dist/sentry.edge.config-F4334LEP.cjs +24 -0
  58. package/dist/sentry.edge.config-JU55FF2U.mjs +24 -0
  59. package/dist/sentry.server.config-KFRT37Q3.cjs +24 -0
  60. package/dist/sentry.server.config-M77KFJ6J.mjs +24 -0
  61. package/package.json +1 -1
  62. package/dist/chunk-276AZYTL.cjs +0 -1
  63. package/dist/chunk-2HIIMZE4.cjs +0 -1
  64. package/dist/chunk-2OLL4MUY.cjs +0 -1
  65. package/dist/chunk-3KQLFIHT.cjs +0 -2
  66. package/dist/chunk-3WZ7JUD6.cjs +0 -1
  67. package/dist/chunk-4EBBM3AH.mjs +0 -1
  68. package/dist/chunk-4EBC3WWP.mjs +0 -1
  69. package/dist/chunk-4VDLQK6F.cjs +0 -1
  70. package/dist/chunk-BWV5APOW.cjs +0 -1
  71. package/dist/chunk-DL645PXT.mjs +0 -1
  72. package/dist/chunk-DUO7UEQD.cjs +0 -1
  73. package/dist/chunk-DVULZ7ID.cjs +0 -1
  74. package/dist/chunk-FVNATITS.mjs +0 -1
  75. package/dist/chunk-FZ23S6ID.mjs +0 -1
  76. package/dist/chunk-JYSZ2GU3.cjs +0 -1
  77. package/dist/chunk-JZXLCA2E.mjs +0 -1
  78. package/dist/chunk-LCQFSMRO.mjs +0 -1
  79. package/dist/chunk-MB5HZZ3S.mjs +0 -1
  80. package/dist/chunk-MS6UGFXI.mjs +0 -1
  81. package/dist/chunk-O243TIHY.mjs +0 -1
  82. package/dist/chunk-S2A3Z34I.mjs +0 -2
  83. package/dist/chunk-S5CMEFTY.cjs +0 -1
  84. package/dist/chunk-VPOS7FPU.cjs +0 -1
  85. package/dist/chunk-XO2H4NRK.mjs +0 -1
  86. package/dist/sentry.edge.config-DS2KE3CX.cjs +0 -1
  87. package/dist/sentry.edge.config-OEQTPQ2L.mjs +0 -1
  88. package/dist/sentry.server.config-KRS7OUMO.mjs +0 -1
  89. package/dist/sentry.server.config-RNY6FTJT.cjs +0 -1
@@ -1 +1,239 @@
1
- import"../../chunk-JZXLCA2E.mjs";import i from"@tailwindcss/container-queries";import t from"@tailwindcss/typography";import o from"tailwindcss-animate";import e from"tailwindcss/colors";import{fontFamily as r}from"tailwindcss/defaultTheme";var a={darkMode:["class"],safelist:["dark","light"],content:["src/**/*.{js,ts,jsx,tsx,mdx}","../../packages/ui/src/*.{ts,tsx}","../../packages/ui/src/**/*.{ts,tsx}","../../packages/shared-ui/src/*.{ts,tsx}","../../packages/shared-ui/src/**/*.{ts,tsx}"],theme:{fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],md:["1rem",{lineHeight:"1.5rem",fontWeight:"600"}],sm:["0.875rem",{lineHeight:"1.5rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],lg:["1.125rem",{lineHeight:"2rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["2rem",{lineHeight:"3rem"}],"4xl":["2.5rem",{lineHeight:"3rem"}],"5xl":["3rem",{lineHeight:"1"}],"6xl":["3.75rem",{lineHeight:"1"}],"7xl":["4.5rem",{lineHeight:"1"}],"8xl":["6rem",{lineHeight:"1"}],"9xl":["8rem",{lineHeight:"1"}],h1:["3rem",{lineHeight:"3.5rem",fontWeight:"700",letterSpacing:"-0.125rem"}],h2:["1.875rem",{lineHeight:"2.5rem",fontWeight:"600",letterSpacing:"-0.01406rem"}],h3:["1.5rem",{lineHeight:"2rem",fontWeight:"600"}],h4:["1.25rem",{lineHeight:"1.5rem",fontWeight:"600",letterSpacing:"-0.0625rem"}],base:["0.875rem",{lineHeight:"1.25rem",fontWeight:"600"}],small:["0.75rem",{lineHeight:"1rem",fontWeight:"500"}]},spacing:{0:"0px","2xs":"0.25rem",xs:"0.5rem",sm:"0.75rem",md:"1rem",base:"1.5rem",lg:"2rem",xl:"2.5rem","2xl":"3rem","3xl":"3.5rem","4xl":"4rem","5xl":"6rem","6xl":"8rem"},borderRadius:{none:"0px","2xs":"0.125rem",xs:"0.25rem",sm:"0.5rem",md:"0.75rem",lg:"1rem",xl:"1.5rem","2xl":"2rem",full:"9999px"},aspectRatio:{auto:"auto",square:"1 / 1",video:"16 / 9",1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",10:"10",11:"11",12:"12",13:"13",14:"14",15:"15",16:"16"},container:{center:!0,padding:{DEFAULT:"1rem",md:"2rem",lg:"4rem"},screens:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px","2xl":"1536px"}},colors:{hover:"hsl(var(--hover) / <alpha-value>)",background:{DEFAULT:"hsl(var(--background) / <alpha-value>)",secondary:"hsl(var(--background-secondary) / <alpha-value>)"},foreground:"hsl(var(--foreground) / <alpha-value>)",muted:{DEFAULT:"hsl(var(--muted) / <alpha-value>)",foreground:"hsl(var(--muted-foreground) / <alpha-value>)"},primary:{DEFAULT:"hsl(var(--primary) / <alpha-value>)",foreground:"hsl(var(--primary-foreground) / <alpha-value>)"},accent:{DEFAULT:"hsl(var(--accent) / <alpha-value>)",foreground:"hsl(var(--accent-foreground) / <alpha-value>)",faucet:"#326FE5",beratrail:"#96532C",berps:"#41D6E0",bend:"#8C7FEB",honey:"#EC8A19",hub:"#FEDB71"},border:{DEFAULT:"hsl(var(--border) / <alpha-value>)",hover:"hsl(var(--border-hover) / <alpha-value>)"},input:"hsl(var(--input) / <alpha-value>)",destructive:{DEFAULT:"hsl(var(--destructive) / <alpha-value>)",foreground:"hsl(var(--destructive-foreground) / <alpha-value>)"},warning:{DEFAULT:"hsl(var(--warning) / <alpha-value>)",foreground:"hsl(var(--warning-foreground) / <alpha-value>)"},info:{DEFAULT:"hsl(var(--info) / <alpha-value>)",foreground:"hsl(var(--info-foreground) / <alpha-value>)"},success:{DEFAULT:"hsl(var(--success) / <alpha-value>)",foreground:"hsl(var(--success-foreground) / <alpha-value>)"},ring:"hsl(var(--ring) / <alpha-value>)",white:e.white,black:e.black,inherit:e.inherit,transparent:e.transparent,current:e.current},extend:{letterSpacing:{tight1:"-0.03125rem",tight2:"-0.0625rem"},minHeight:{minimum:"calc(100vh - 191px)","screen-250":"calc(100vh - 214px)"},maxWidth:{1280:"1280px"},borderColor:{DEFAULT:"hsl(var(--border) / <alpha-value>)"},padding:{start:"106px","start-lg":"154px"},fontFamily:{sans:["var(--font-sans)",...r.sans],honey:["var(--font-honey)",...r.sans]},keyframes:{"fade-in":{from:{opacity:"0"},to:{opacity:"1"}},"accordion-down":{from:{height:"0"},to:{height:"var(--radix-accordion-content-height)"}},"accordion-up":{from:{height:"var(--radix-accordion-content-height)"},to:{height:"0"}}},animation:{"fade-in":"fade-in 0.5s linear forwards","accordion-down":"accordion-down 0.2s ease-out","accordion-up":"accordion-up 0.2s ease-out"}}}};var n={...a,plugins:[o,i,t]},p=n;export{n as config,p as default};
1
+ import "../../chunk-7P6ASYW6.mjs";
2
+
3
+ // src/internal/tailwind/index.ts
4
+ import containerQueries from "@tailwindcss/container-queries";
5
+ import typography from "@tailwindcss/typography";
6
+ import animate from "tailwindcss-animate";
7
+
8
+ // src/internal/tailwind/config.ts
9
+ import colors from "tailwindcss/colors";
10
+ import { fontFamily } from "tailwindcss/defaultTheme";
11
+ var configWithNoPlugins = {
12
+ darkMode: ["class"],
13
+ safelist: ["dark", "light"],
14
+ // These are relative to the project using the config
15
+ content: [
16
+ "src/**/*.{js,ts,jsx,tsx,mdx}",
17
+ "../../packages/ui/src/*.{ts,tsx}",
18
+ "../../packages/ui/src/**/*.{ts,tsx}",
19
+ "../../packages/shared-ui/src/*.{ts,tsx}",
20
+ "../../packages/shared-ui/src/**/*.{ts,tsx}"
21
+ ],
22
+ theme: {
23
+ fontSize: {
24
+ xs: ["0.75rem", { lineHeight: "1rem" }],
25
+ md: ["1rem", { lineHeight: "1.5rem", fontWeight: "600" }],
26
+ sm: ["0.875rem", { lineHeight: "1.5rem" }],
27
+ xl: ["1.25rem", { lineHeight: "1.75rem" }],
28
+ lg: ["1.125rem", { lineHeight: "2rem" }],
29
+ "2xl": ["1.5rem", { lineHeight: "2rem" }],
30
+ "3xl": ["2rem", { lineHeight: "3rem" }],
31
+ "4xl": ["2.5rem", { lineHeight: "3rem" }],
32
+ "5xl": ["3rem", { lineHeight: "1" }],
33
+ "6xl": ["3.75rem", { lineHeight: "1" }],
34
+ "7xl": ["4.5rem", { lineHeight: "1" }],
35
+ "8xl": ["6rem", { lineHeight: "1" }],
36
+ "9xl": ["8rem", { lineHeight: "1" }],
37
+ /**
38
+ * Typography sizes
39
+ */
40
+ h1: [
41
+ "3rem",
42
+ { lineHeight: "3.5rem", fontWeight: "700", letterSpacing: "-0.125rem" }
43
+ ],
44
+ h2: [
45
+ "1.875rem",
46
+ {
47
+ lineHeight: "2.5rem",
48
+ fontWeight: "600",
49
+ letterSpacing: "-0.01406rem"
50
+ }
51
+ ],
52
+ h3: ["1.5rem", { lineHeight: "2rem", fontWeight: "600" }],
53
+ h4: [
54
+ "1.25rem",
55
+ {
56
+ lineHeight: "1.5rem",
57
+ fontWeight: "600",
58
+ letterSpacing: "-0.0625rem"
59
+ }
60
+ ],
61
+ base: ["0.875rem", { lineHeight: "1.25rem", fontWeight: "600" }],
62
+ small: ["0.75rem", { lineHeight: "1rem", fontWeight: "500" }]
63
+ },
64
+ spacing: {
65
+ 0: "0px",
66
+ "2xs": "0.25rem",
67
+ xs: "0.5rem",
68
+ sm: "0.75rem",
69
+ md: "1rem",
70
+ base: "1.5rem",
71
+ lg: "2rem",
72
+ xl: "2.5rem",
73
+ "2xl": "3rem",
74
+ "3xl": "3.5rem",
75
+ "4xl": "4rem",
76
+ "5xl": "6rem",
77
+ "6xl": "8rem"
78
+ },
79
+ borderRadius: {
80
+ none: "0px",
81
+ "2xs": "0.125rem",
82
+ xs: "0.25rem",
83
+ sm: "0.5rem",
84
+ md: "0.75rem",
85
+ lg: "1rem",
86
+ xl: "1.5rem",
87
+ "2xl": "2rem",
88
+ full: "9999px"
89
+ },
90
+ aspectRatio: {
91
+ auto: "auto",
92
+ square: "1 / 1",
93
+ video: "16 / 9",
94
+ 1: "1",
95
+ 2: "2",
96
+ 3: "3",
97
+ 4: "4",
98
+ 5: "5",
99
+ 6: "6",
100
+ 7: "7",
101
+ 8: "8",
102
+ 9: "9",
103
+ 10: "10",
104
+ 11: "11",
105
+ 12: "12",
106
+ 13: "13",
107
+ 14: "14",
108
+ 15: "15",
109
+ 16: "16"
110
+ },
111
+ container: {
112
+ center: true,
113
+ padding: {
114
+ DEFAULT: "1rem",
115
+ md: "2rem",
116
+ lg: "4rem"
117
+ },
118
+ screens: {
119
+ // xs: "360px",
120
+ sm: "640px",
121
+ md: "768px",
122
+ lg: "1024px",
123
+ xl: "1280px",
124
+ "2xl": "1536px"
125
+ }
126
+ },
127
+ colors: {
128
+ hover: "hsl(var(--hover) / <alpha-value>)",
129
+ background: {
130
+ DEFAULT: "hsl(var(--background) / <alpha-value>)",
131
+ secondary: "hsl(var(--background-secondary) / <alpha-value>)"
132
+ },
133
+ foreground: "hsl(var(--foreground) / <alpha-value>)",
134
+ muted: {
135
+ DEFAULT: "hsl(var(--muted) / <alpha-value>)",
136
+ foreground: "hsl(var(--muted-foreground) / <alpha-value>)"
137
+ },
138
+ primary: {
139
+ DEFAULT: "hsl(var(--primary) / <alpha-value>)",
140
+ foreground: "hsl(var(--primary-foreground) / <alpha-value>)"
141
+ },
142
+ accent: {
143
+ DEFAULT: "hsl(var(--accent) / <alpha-value>)",
144
+ foreground: "hsl(var(--accent-foreground) / <alpha-value>)",
145
+ faucet: "#326FE5",
146
+ beratrail: "#96532C",
147
+ berps: "#41D6E0",
148
+ bend: "#8C7FEB",
149
+ honey: "#EC8A19",
150
+ hub: "#FEDB71"
151
+ },
152
+ border: {
153
+ DEFAULT: "hsl(var(--border) / <alpha-value>)",
154
+ hover: "hsl(var(--border-hover) / <alpha-value>)"
155
+ },
156
+ input: "hsl(var(--input) / <alpha-value>)",
157
+ destructive: {
158
+ DEFAULT: "hsl(var(--destructive) / <alpha-value>)",
159
+ foreground: "hsl(var(--destructive-foreground) / <alpha-value>)"
160
+ },
161
+ warning: {
162
+ DEFAULT: "hsl(var(--warning) / <alpha-value>)",
163
+ foreground: "hsl(var(--warning-foreground) / <alpha-value>)"
164
+ },
165
+ info: {
166
+ DEFAULT: "hsl(var(--info) / <alpha-value>)",
167
+ foreground: "hsl(var(--info-foreground) / <alpha-value>)"
168
+ },
169
+ success: {
170
+ DEFAULT: "hsl(var(--success) / <alpha-value>)",
171
+ foreground: "hsl(var(--success-foreground) / <alpha-value>)"
172
+ },
173
+ ring: "hsl(var(--ring) / <alpha-value>)",
174
+ white: colors.white,
175
+ black: colors.black,
176
+ inherit: colors.inherit,
177
+ transparent: colors.transparent,
178
+ current: colors.current
179
+ },
180
+ extend: {
181
+ letterSpacing: {
182
+ tight1: "-0.03125rem",
183
+ tight2: "-0.0625rem"
184
+ },
185
+ minHeight: {
186
+ minimum: "calc(100vh - 191px)",
187
+ "screen-250": "calc(100vh - 214px)"
188
+ },
189
+ maxWidth: {
190
+ "1280": "1280px"
191
+ },
192
+ borderColor: {
193
+ DEFAULT: "hsl(var(--border) / <alpha-value>)"
194
+ },
195
+ padding: {
196
+ start: "106px",
197
+ "start-lg": "154px"
198
+ },
199
+ fontFamily: {
200
+ sans: ["var(--font-sans)", ...fontFamily.sans],
201
+ honey: ["var(--font-honey)", ...fontFamily.sans]
202
+ },
203
+ keyframes: {
204
+ "fade-in": {
205
+ from: {
206
+ opacity: "0"
207
+ },
208
+ to: {
209
+ opacity: "1"
210
+ }
211
+ },
212
+ "accordion-down": {
213
+ from: { height: "0" },
214
+ to: { height: "var(--radix-accordion-content-height)" }
215
+ },
216
+ "accordion-up": {
217
+ from: { height: "var(--radix-accordion-content-height)" },
218
+ to: { height: "0" }
219
+ }
220
+ },
221
+ animation: {
222
+ "fade-in": "fade-in 0.5s linear forwards",
223
+ "accordion-down": "accordion-down 0.2s ease-out",
224
+ "accordion-up": "accordion-up 0.2s ease-out"
225
+ }
226
+ }
227
+ }
228
+ };
229
+
230
+ // src/internal/tailwind/index.ts
231
+ var config = {
232
+ ...configWithNoPlugins,
233
+ plugins: [animate, containerQueries, typography]
234
+ };
235
+ var tailwind_default = config;
236
+ export {
237
+ config,
238
+ tailwind_default as default
239
+ };
@@ -1 +1,73 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }require('../../chunk-4VDLQK6F.cjs');var _child_process = require('child_process');var _tsup = require('tsup');function r(e,t){if(Array.isArray(e))return e.map(i=>r(i,t));let s=process.argv.includes("--prepublish"),n=process.argv.includes("--sourcemap"),a=s||process.argv.includes("--cjs"),p=s||!a||process.argv.includes("--esm"),o=[];p&&o.push("esm"),a&&o.push("cjs");let c=s||process.argv.includes("--minify"),u=typeof t.dts=="object"&&t.dts.only;return{...{format:o,clean:!t.watch&&!u,splitting:!0,outExtension({format:i}){return{js:i==="esm"?".mjs":".cjs"}},outDir:"dist",skipNodeModulesBundle:!0,noExternal:["@berachain/utils"],minify:c,sourcemap:process.env.UPLOAD_SOURCEMAPS==="true"||n,dts:process.env.VERCEL!=="1",async onSuccess(){_child_process.execSync.call(void 0, `find dist -name "*.cjs" -exec perl -pi -e 's/return await /return await /g' {} +`)},esbuildOptions:(i,m)=>{i.jsx="automatic",i.sourceRoot="",_optionalChain([e, 'access', _ => _.esbuildOptions, 'optionalCall', _2 => _2(i,m)])}},...e}}var j=e=>_tsup.defineConfig.call(void 0, async t=>{let s;return typeof e=="function"?s=await e(t):s=e,Array.isArray(s)?s.map(n=>r(n,t)):r(s,t)});exports.beraTsupConfig = j;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }require('../../chunk-75ZPJI57.cjs');
2
+
3
+ // src/internal/tsup/index.ts
4
+ var _child_process = require('child_process');
5
+ var _tsup = require('tsup');
6
+ function applyDefaultConfig(userConfig, opts) {
7
+ if (Array.isArray(userConfig)) {
8
+ return userConfig.map((c) => applyDefaultConfig(c, opts));
9
+ }
10
+ const isPrepublish = process.argv.includes("--prepublish");
11
+ const sourcemap = process.argv.includes("--sourcemap");
12
+ const hasCjs = isPrepublish || process.argv.includes("--cjs");
13
+ const hasEsm = isPrepublish || !hasCjs || process.argv.includes("--esm");
14
+ const format = [];
15
+ if (hasEsm) {
16
+ format.push("esm");
17
+ }
18
+ if (hasCjs) {
19
+ format.push("cjs");
20
+ }
21
+ const minify = isPrepublish || process.argv.includes("--minify");
22
+ const isDeclarationOnly = typeof opts.dts === "object" && opts.dts.only;
23
+ const defaultConfig = {
24
+ format,
25
+ clean: !opts.watch && // if we're only running check-types, we won't clean dist so that running processes are not interrupted
26
+ !isDeclarationOnly,
27
+ splitting: true,
28
+ outExtension({ format: format2 }) {
29
+ return { js: format2 === "esm" ? ".mjs" : ".cjs" };
30
+ },
31
+ outDir: "dist",
32
+ skipNodeModulesBundle: true,
33
+ noExternal: ["@berachain/utils"],
34
+ minify,
35
+ // Whether to minify the output
36
+ sourcemap: process.env.UPLOAD_SOURCEMAPS === "true" || sourcemap,
37
+ // Whether to generate sourcemaps
38
+ // Whether to generate TypeScript declaration files.
39
+ // Be careful and add this to turbo.json or some builds might fail when using turbo remote cache
40
+ dts: process.env.VERCEL !== "1",
41
+ async onSuccess() {
42
+ _child_process.execSync.call(void 0,
43
+ `find dist -name "*.cjs" -exec perl -pi -e 's/return await /return await /g' {} +`
44
+ );
45
+ },
46
+ esbuildOptions: (esbuildOptions, o) => {
47
+ esbuildOptions.jsx = "automatic";
48
+ esbuildOptions.sourceRoot = "";
49
+ _optionalChain([userConfig, 'access', _ => _.esbuildOptions, 'optionalCall', _2 => _2(esbuildOptions, o)]);
50
+ }
51
+ };
52
+ return {
53
+ ...defaultConfig,
54
+ ...userConfig
55
+ };
56
+ }
57
+ var beraTsupConfig = (config) => {
58
+ return _tsup.defineConfig.call(void 0, async (opts) => {
59
+ let userConfig;
60
+ if (typeof config === "function") {
61
+ userConfig = await config(opts);
62
+ } else {
63
+ userConfig = config;
64
+ }
65
+ if (Array.isArray(userConfig)) {
66
+ return userConfig.map((c) => applyDefaultConfig(c, opts));
67
+ }
68
+ return applyDefaultConfig(userConfig, opts);
69
+ });
70
+ };
71
+
72
+
73
+ exports.beraTsupConfig = beraTsupConfig;
@@ -1 +1,73 @@
1
- import"../../chunk-JZXLCA2E.mjs";import{execSync as l}from"child_process";import{defineConfig as O}from"tsup";function r(e,t){if(Array.isArray(e))return e.map(i=>r(i,t));let s=process.argv.includes("--prepublish"),n=process.argv.includes("--sourcemap"),a=s||process.argv.includes("--cjs"),p=s||!a||process.argv.includes("--esm"),o=[];p&&o.push("esm"),a&&o.push("cjs");let c=s||process.argv.includes("--minify"),u=typeof t.dts=="object"&&t.dts.only;return{...{format:o,clean:!t.watch&&!u,splitting:!0,outExtension({format:i}){return{js:i==="esm"?".mjs":".cjs"}},outDir:"dist",skipNodeModulesBundle:!0,noExternal:["@berachain/utils"],minify:c,sourcemap:process.env.UPLOAD_SOURCEMAPS==="true"||n,dts:process.env.VERCEL!=="1",async onSuccess(){l(`find dist -name "*.cjs" -exec perl -pi -e 's/returnawait /return await /g' {} +`)},esbuildOptions:(i,m)=>{i.jsx="automatic",i.sourceRoot="",e.esbuildOptions?.(i,m)}},...e}}var j=e=>O(async t=>{let s;return typeof e=="function"?s=await e(t):s=e,Array.isArray(s)?s.map(n=>r(n,t)):r(s,t)});export{j as beraTsupConfig};
1
+ import "../../chunk-7P6ASYW6.mjs";
2
+
3
+ // src/internal/tsup/index.ts
4
+ import { execSync } from "child_process";
5
+ import { defineConfig } from "tsup";
6
+ function applyDefaultConfig(userConfig, opts) {
7
+ if (Array.isArray(userConfig)) {
8
+ return userConfig.map((c) => applyDefaultConfig(c, opts));
9
+ }
10
+ const isPrepublish = process.argv.includes("--prepublish");
11
+ const sourcemap = process.argv.includes("--sourcemap");
12
+ const hasCjs = isPrepublish || process.argv.includes("--cjs");
13
+ const hasEsm = isPrepublish || !hasCjs || process.argv.includes("--esm");
14
+ const format = [];
15
+ if (hasEsm) {
16
+ format.push("esm");
17
+ }
18
+ if (hasCjs) {
19
+ format.push("cjs");
20
+ }
21
+ const minify = isPrepublish || process.argv.includes("--minify");
22
+ const isDeclarationOnly = typeof opts.dts === "object" && opts.dts.only;
23
+ const defaultConfig = {
24
+ format,
25
+ clean: !opts.watch && // if we're only running check-types, we won't clean dist so that running processes are not interrupted
26
+ !isDeclarationOnly,
27
+ splitting: true,
28
+ outExtension({ format: format2 }) {
29
+ return { js: format2 === "esm" ? ".mjs" : ".cjs" };
30
+ },
31
+ outDir: "dist",
32
+ skipNodeModulesBundle: true,
33
+ noExternal: ["@berachain/utils"],
34
+ minify,
35
+ // Whether to minify the output
36
+ sourcemap: process.env.UPLOAD_SOURCEMAPS === "true" || sourcemap,
37
+ // Whether to generate sourcemaps
38
+ // Whether to generate TypeScript declaration files.
39
+ // Be careful and add this to turbo.json or some builds might fail when using turbo remote cache
40
+ dts: process.env.VERCEL !== "1",
41
+ async onSuccess() {
42
+ execSync(
43
+ `find dist -name "*.cjs" -exec perl -pi -e 's/returnawait /return await /g' {} +`
44
+ );
45
+ },
46
+ esbuildOptions: (esbuildOptions, o) => {
47
+ esbuildOptions.jsx = "automatic";
48
+ esbuildOptions.sourceRoot = "";
49
+ userConfig.esbuildOptions?.(esbuildOptions, o);
50
+ }
51
+ };
52
+ return {
53
+ ...defaultConfig,
54
+ ...userConfig
55
+ };
56
+ }
57
+ var beraTsupConfig = (config) => {
58
+ return defineConfig(async (opts) => {
59
+ let userConfig;
60
+ if (typeof config === "function") {
61
+ userConfig = await config(opts);
62
+ } else {
63
+ userConfig = config;
64
+ }
65
+ if (Array.isArray(userConfig)) {
66
+ return userConfig.map((c) => applyDefaultConfig(c, opts));
67
+ }
68
+ return applyDefaultConfig(userConfig, opts);
69
+ });
70
+ };
71
+ export {
72
+ beraTsupConfig
73
+ };
@@ -1 +1,60 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-BWV5APOW.cjs');require('../../chunk-S5CMEFTY.cjs');require('../../chunk-2HIIMZE4.cjs');var _chunk276AZYTLcjs = require('../../chunk-276AZYTL.cjs');var _chunk3KQLFIHTcjs = require('../../chunk-3KQLFIHT.cjs');require('../../chunk-2OLL4MUY.cjs');require('../../chunk-4VDLQK6F.cjs');var _chains = require('viem/chains');var x=_chunk3KQLFIHTcjs.a===_chains.berachain.id?_chains.berachain:_chains.berachainBepolia,g= exports.urls =[_chunk276AZYTLcjs.g,_chunk276AZYTLcjs.e,_chunk276AZYTLcjs.f,_chunk276AZYTLcjs.d].filter(Boolean),b= exports.externalChains =[_chains.mainnet,_chains.polygon,_chains.optimism,_chains.base,_chains.bsc,_chains.avalanche,_chains.arbitrum],U= exports.chainIdToName =[...b,_chains.berachain,_chains.berachainBepolia].reduce((n,r)=>(n[r.id]=r.name,n),{});exports.chainIdToName = U; exports.defaultChain = x; exports.externalChains = b; exports.urls = g;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});require('../../chunk-7RKCKAAC.cjs');
2
+ require('../../chunk-FNTZIXS7.cjs');
3
+ require('../../chunk-NFEXQHYQ.cjs');
4
+
5
+
6
+
7
+
8
+
9
+ var _chunkWRTYGXJMcjs = require('../../chunk-WRTYGXJM.cjs');
10
+
11
+
12
+ var _chunkADH7F47Tcjs = require('../../chunk-ADH7F47T.cjs');
13
+ require('../../chunk-EYYJ2UZT.cjs');
14
+ require('../../chunk-75ZPJI57.cjs');
15
+
16
+ // src/internal/wagmi/index.ts
17
+
18
+
19
+
20
+
21
+
22
+
23
+
24
+
25
+
26
+
27
+ var _chains = require('viem/chains');
28
+ var defaultChain = _chunkADH7F47Tcjs.defaultChainId === _chains.berachain.id ? _chains.berachain : _chains.berachainBepolia;
29
+ var urls = [
30
+ _chunkWRTYGXJMcjs.privateRcpUrl,
31
+ _chunkWRTYGXJMcjs.jsonRpcUrl,
32
+ _chunkWRTYGXJMcjs.alchemyJsonRpcUrl,
33
+ _chunkWRTYGXJMcjs.publicJsonRpcUrl
34
+ ].filter(Boolean);
35
+ var externalChains = [
36
+ _chains.mainnet,
37
+ _chains.polygon,
38
+ _chains.optimism,
39
+ _chains.base,
40
+ _chains.bsc,
41
+ _chains.avalanche,
42
+ _chains.arbitrum
43
+ ];
44
+ var chainIdToName = [
45
+ ...externalChains,
46
+ _chains.berachain,
47
+ _chains.berachainBepolia
48
+ ].reduce(
49
+ (acc, chain) => {
50
+ acc[chain.id] = chain.name;
51
+ return acc;
52
+ },
53
+ {}
54
+ );
55
+
56
+
57
+
58
+
59
+
60
+ exports.chainIdToName = chainIdToName; exports.defaultChain = defaultChain; exports.externalChains = externalChains; exports.urls = urls;
@@ -1 +1,60 @@
1
- import"../../chunk-MB5HZZ3S.mjs";import"../../chunk-LCQFSMRO.mjs";import"../../chunk-4EBC3WWP.mjs";import{d as e,e as o,f as t,g as s}from"../../chunk-4EBBM3AH.mjs";import{a as i}from"../../chunk-S2A3Z34I.mjs";import"../../chunk-MS6UGFXI.mjs";import"../../chunk-JZXLCA2E.mjs";import{arbitrum as c,avalanche as l,base as h,berachain as a,berachainBepolia as p,bsc as d,mainnet as m,optimism as C,polygon as u}from"viem/chains";var x=i===a.id?a:p,g=[s,o,t,e].filter(Boolean),b=[m,u,C,h,d,l,c],U=[...b,a,p].reduce((n,r)=>(n[r.id]=r.name,n),{});export{U as chainIdToName,x as defaultChain,b as externalChains,g as urls};
1
+ import "../../chunk-B3NSVIEM.mjs";
2
+ import "../../chunk-4H4HDUCC.mjs";
3
+ import "../../chunk-6YB3DKEA.mjs";
4
+ import {
5
+ alchemyJsonRpcUrl,
6
+ jsonRpcUrl,
7
+ privateRcpUrl,
8
+ publicJsonRpcUrl
9
+ } from "../../chunk-BM46XQJA.mjs";
10
+ import {
11
+ defaultChainId
12
+ } from "../../chunk-CAOMAWN5.mjs";
13
+ import "../../chunk-KJXYSGNH.mjs";
14
+ import "../../chunk-7P6ASYW6.mjs";
15
+
16
+ // src/internal/wagmi/index.ts
17
+ import {
18
+ arbitrum,
19
+ avalanche,
20
+ base,
21
+ berachain,
22
+ berachainBepolia,
23
+ bsc,
24
+ mainnet,
25
+ optimism,
26
+ polygon
27
+ } from "viem/chains";
28
+ var defaultChain = defaultChainId === berachain.id ? berachain : berachainBepolia;
29
+ var urls = [
30
+ privateRcpUrl,
31
+ jsonRpcUrl,
32
+ alchemyJsonRpcUrl,
33
+ publicJsonRpcUrl
34
+ ].filter(Boolean);
35
+ var externalChains = [
36
+ mainnet,
37
+ polygon,
38
+ optimism,
39
+ base,
40
+ bsc,
41
+ avalanche,
42
+ arbitrum
43
+ ];
44
+ var chainIdToName = [
45
+ ...externalChains,
46
+ berachain,
47
+ berachainBepolia
48
+ ].reduce(
49
+ (acc, chain) => {
50
+ acc[chain.id] = chain.name;
51
+ return acc;
52
+ },
53
+ {}
54
+ );
55
+ export {
56
+ chainIdToName,
57
+ defaultChain,
58
+ externalChains,
59
+ urls
60
+ };
package/dist/mainnet.cjs CHANGED
@@ -1 +1,10 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk2HIIMZE4cjs = require('./chunk-2HIIMZE4.cjs');require('./chunk-276AZYTL.cjs');require('./chunk-3KQLFIHT.cjs');require('./chunk-2OLL4MUY.cjs');require('./chunk-4VDLQK6F.cjs');exports.mainnet = _chunk2HIIMZE4cjs.a;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkNFEXQHYQcjs = require('./chunk-NFEXQHYQ.cjs');
4
+ require('./chunk-WRTYGXJM.cjs');
5
+ require('./chunk-ADH7F47T.cjs');
6
+ require('./chunk-EYYJ2UZT.cjs');
7
+ require('./chunk-75ZPJI57.cjs');
8
+
9
+
10
+ exports.mainnet = _chunkNFEXQHYQcjs.mainnet;
package/dist/mainnet.mjs CHANGED
@@ -1 +1,10 @@
1
- import{a}from"./chunk-4EBC3WWP.mjs";import"./chunk-4EBBM3AH.mjs";import"./chunk-S2A3Z34I.mjs";import"./chunk-MS6UGFXI.mjs";import"./chunk-JZXLCA2E.mjs";export{a as mainnet};
1
+ import {
2
+ mainnet
3
+ } from "./chunk-6YB3DKEA.mjs";
4
+ import "./chunk-BM46XQJA.mjs";
5
+ import "./chunk-CAOMAWN5.mjs";
6
+ import "./chunk-KJXYSGNH.mjs";
7
+ import "./chunk-7P6ASYW6.mjs";
8
+ export {
9
+ mainnet
10
+ };
@@ -0,0 +1,24 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkONKAV4AGcjs = require('./chunk-ONKAV4AG.cjs');
5
+ require('./chunk-WRTYGXJM.cjs');
6
+ require('./chunk-ADH7F47T.cjs');
7
+ require('./chunk-EYYJ2UZT.cjs');
8
+ require('./chunk-75ZPJI57.cjs');
9
+
10
+ // src/internal/sentry/sentry.edge.config.ts
11
+ function initSentryEdge(Sentry, opt = {}) {
12
+ return Sentry.init({
13
+ dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
14
+ // Adjust this value in production, or use tracesSampler for greater control
15
+ tracesSampleRate: _chunkONKAV4AGcjs.tracesSampleRate,
16
+ environment: _chunkONKAV4AGcjs.sentryEnvironment,
17
+ // Setting this option to true will print useful information to the console while you're setting up Sentry.
18
+ debug: false,
19
+ ...opt
20
+ });
21
+ }
22
+
23
+
24
+ exports.initSentryEdge = initSentryEdge;
@@ -0,0 +1,24 @@
1
+ import {
2
+ sentryEnvironment,
3
+ tracesSampleRate
4
+ } from "./chunk-3K6IUX3G.mjs";
5
+ import "./chunk-BM46XQJA.mjs";
6
+ import "./chunk-CAOMAWN5.mjs";
7
+ import "./chunk-KJXYSGNH.mjs";
8
+ import "./chunk-7P6ASYW6.mjs";
9
+
10
+ // src/internal/sentry/sentry.edge.config.ts
11
+ function initSentryEdge(Sentry, opt = {}) {
12
+ return Sentry.init({
13
+ dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
14
+ // Adjust this value in production, or use tracesSampler for greater control
15
+ tracesSampleRate,
16
+ environment: sentryEnvironment,
17
+ // Setting this option to true will print useful information to the console while you're setting up Sentry.
18
+ debug: false,
19
+ ...opt
20
+ });
21
+ }
22
+ export {
23
+ initSentryEdge
24
+ };
@@ -0,0 +1,24 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+ var _chunkONKAV4AGcjs = require('./chunk-ONKAV4AG.cjs');
5
+ require('./chunk-WRTYGXJM.cjs');
6
+ require('./chunk-ADH7F47T.cjs');
7
+ require('./chunk-EYYJ2UZT.cjs');
8
+ require('./chunk-75ZPJI57.cjs');
9
+
10
+ // src/internal/sentry/sentry.server.config.ts
11
+ function initSentryServer(Sentry, opt = {}) {
12
+ return Sentry.init({
13
+ dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
14
+ // Adjust this value in production, or use tracesSampler for greater control
15
+ tracesSampleRate: _chunkONKAV4AGcjs.tracesSampleRate,
16
+ environment: _chunkONKAV4AGcjs.sentryEnvironment,
17
+ // Setting this option to true will print useful information to the console while you're setting up Sentry.
18
+ debug: false,
19
+ ...opt
20
+ });
21
+ }
22
+
23
+
24
+ exports.initSentryServer = initSentryServer;
@@ -0,0 +1,24 @@
1
+ import {
2
+ sentryEnvironment,
3
+ tracesSampleRate
4
+ } from "./chunk-3K6IUX3G.mjs";
5
+ import "./chunk-BM46XQJA.mjs";
6
+ import "./chunk-CAOMAWN5.mjs";
7
+ import "./chunk-KJXYSGNH.mjs";
8
+ import "./chunk-7P6ASYW6.mjs";
9
+
10
+ // src/internal/sentry/sentry.server.config.ts
11
+ function initSentryServer(Sentry, opt = {}) {
12
+ return Sentry.init({
13
+ dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
14
+ // Adjust this value in production, or use tracesSampler for greater control
15
+ tracesSampleRate,
16
+ environment: sentryEnvironment,
17
+ // Setting this option to true will print useful information to the console while you're setting up Sentry.
18
+ debug: false,
19
+ ...opt
20
+ });
21
+ }
22
+ export {
23
+ initSentryServer
24
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@berachain/config",
3
- "version": "0.1.19",
3
+ "version": "0.1.20-beta.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var _chunk3KQLFIHTcjs = require('./chunk-3KQLFIHT.cjs');if(_chunk3KQLFIHTcjs.a!==80094&&_chunk3KQLFIHTcjs.a!==80069)throw new Error(`Invalid chainId: ${_chunk3KQLFIHTcjs.a}`);var _=_chunk3KQLFIHTcjs.a,l= exports.a ="https://imagedelivery.net/qNj7Q3MCke89zoKzav7eDQ",R= exports.b ="https://api.goldsky.com/api/public/project_clq1h5ct0g4a201x18tfte5iv/subgraphs/";function p(e=_){if(e===80069&&process.env.NEXT_PUBLIC_80069_ANVIL_RPC_URL||e===80094&&process.env.NEXT_PUBLIC_80094_ANVIL_RPC_URL){let s=e===80069?process.env.NEXT_PUBLIC_80069_ANVIL_RPC_URL:process.env.NEXT_PUBLIC_80094_ANVIL_RPC_URL;return process.env.VITEST_WORKER_ID?s=`${s}/${_nullishCoalesce(process.env.VITEST_WORKER_ID, () => (1))}`:console.log("Using anvil RPC for bepolia",s),{publicJsonRpcUrl:s,jsonRpcUrl:s,alchemyJsonRpcUrl:void 0,privateRcpUrl:void 0,isAnvil:!0}}return{publicJsonRpcUrl:e===80069?_nullishCoalesce(process.env.NEXT_PUBLIC_80069_PUBLIC_JSON_RPC_URL, () => ("https://bepolia.rpc.berachain.com")):_nullishCoalesce(process.env.NEXT_PUBLIC_80094_PUBLIC_JSON_RPC_URL, () => ("https://rpc.berachain.com")),jsonRpcUrl:e===80069?_nullishCoalesce(process.env.NEXT_PUBLIC_80069_JSON_RPC_URL, () => ("https://bepolia.rpc.berachain.com")):_nullishCoalesce(process.env.NEXT_PUBLIC_80094_JSON_RPC_URL, () => ("https://rpc.berachain.com")),alchemyJsonRpcUrl:e===80069?process.env.NEXT_PUBLIC_80069_ALCHEMY_JSON_RPC_URL:process.env.NEXT_PUBLIC_80094_ALCHEMY_JSON_RPC_URL,privateRcpUrl:e===80069?process.env.PRIVATE_80069_JSON_RPC_URL:process.env.PRIVATE_80094_JSON_RPC_URL,isAnvil:!1}}var{publicJsonRpcUrl:t,jsonRpcUrl:i,alchemyJsonRpcUrl:U,privateRcpUrl:L}=p(_chunk3KQLFIHTcjs.a);exports.a = l; exports.b = R; exports.c = p; exports.d = t; exports.e = i; exports.f = U; exports.g = L;