@berachain/config 0.2.6 → 0.2.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.
Files changed (69) hide show
  1. package/dist/bepolia.cjs +1 -7
  2. package/dist/bepolia.mjs +1 -7
  3. package/dist/chunk-2GCBWNKH.mjs +1 -0
  4. package/dist/chunk-2OLL4MUY.cjs +1 -0
  5. package/dist/chunk-2RLHVELA.mjs +2 -0
  6. package/dist/chunk-5YLBFOPA.mjs +1 -0
  7. package/dist/chunk-6CZTBBJT.cjs +2 -0
  8. package/dist/chunk-DUO7UEQD.cjs +1 -0
  9. package/dist/chunk-HJ25KNL4.cjs +1 -0
  10. package/dist/chunk-HLFO7V5I.cjs +1 -0
  11. package/dist/chunk-ITASDGG4.cjs +1 -0
  12. package/dist/chunk-MS6UGFXI.mjs +1 -0
  13. package/dist/chunk-MW34QRNX.cjs +1 -0
  14. package/dist/chunk-N45AQAIZ.mjs +1 -0
  15. package/dist/chunk-O243TIHY.mjs +1 -0
  16. package/dist/chunk-QHBQ2EN5.mjs +1 -0
  17. package/dist/chunk-QYM6VRYU.mjs +1 -0
  18. package/dist/chunk-WMZLZQ6E.mjs +1 -0
  19. package/dist/chunk-X5MTSC5T.cjs +1 -0
  20. package/dist/chunk-YLWSSHG6.cjs +1 -0
  21. package/dist/index.cjs +1 -10
  22. package/dist/index.mjs +1 -10
  23. package/dist/internal/header-sources.cjs +13 -409
  24. package/dist/internal/header-sources.mjs +13 -409
  25. package/dist/internal/index.cjs +1 -37
  26. package/dist/internal/index.mjs +1 -37
  27. package/dist/internal/maintenance.cjs +1 -24
  28. package/dist/internal/maintenance.mjs +1 -24
  29. package/dist/internal/nextjs/index.cjs +1 -83
  30. package/dist/internal/nextjs/index.mjs +1 -83
  31. package/dist/internal/nextjs/utils/index.cjs +1 -40
  32. package/dist/internal/nextjs/utils/index.mjs +1 -40
  33. package/dist/internal/sentry/index.cjs +1 -10
  34. package/dist/internal/sentry/index.mjs +1 -10
  35. package/dist/internal/sentry/sentry.client.config.cjs +1 -65
  36. package/dist/internal/sentry/sentry.client.config.mjs +1 -65
  37. package/dist/internal/tailwind/index.cjs +1 -237
  38. package/dist/internal/tailwind/index.mjs +1 -237
  39. package/dist/internal/wagmi/index.cjs +1 -57
  40. package/dist/internal/wagmi/index.mjs +1 -57
  41. package/dist/mainnet.cjs +1 -8
  42. package/dist/mainnet.mjs +1 -8
  43. package/dist/sentry.edge.config-AU3IBVBN.cjs +1 -0
  44. package/dist/sentry.edge.config-PXSVFOH6.mjs +1 -0
  45. package/dist/sentry.server.config-IOCQ5KDF.cjs +1 -0
  46. package/dist/sentry.server.config-NEPRXZ2E.mjs +1 -0
  47. package/package.json +1 -1
  48. package/dist/chunk-2PVGTKBC.cjs +0 -144
  49. package/dist/chunk-4MO7T43D.mjs +0 -144
  50. package/dist/chunk-AU3LYJAB.cjs +0 -75
  51. package/dist/chunk-B2BTOQVP.cjs +0 -25
  52. package/dist/chunk-EYYJ2UZT.cjs +0 -10
  53. package/dist/chunk-F5UIDRP6.mjs +0 -77
  54. package/dist/chunk-KJXYSGNH.mjs +0 -10
  55. package/dist/chunk-KQFPH756.cjs +0 -135
  56. package/dist/chunk-LALEUPWL.mjs +0 -8
  57. package/dist/chunk-MNIORAK3.cjs +0 -148
  58. package/dist/chunk-NF5WIUL6.cjs +0 -77
  59. package/dist/chunk-OWAB24JG.mjs +0 -25
  60. package/dist/chunk-PPXWH3KC.mjs +0 -135
  61. package/dist/chunk-UKXTPLZ5.mjs +0 -148
  62. package/dist/chunk-VWRKCGMU.mjs +0 -75
  63. package/dist/chunk-XA5DMTFW.mjs +0 -75
  64. package/dist/chunk-YT7WZDGI.cjs +0 -8
  65. package/dist/chunk-ZTYHPIUW.cjs +0 -75
  66. package/dist/sentry.edge.config-3Y5ABKSB.cjs +0 -22
  67. package/dist/sentry.edge.config-SIWSKDGR.mjs +0 -22
  68. package/dist/sentry.server.config-HY6I2WQ5.mjs +0 -22
  69. package/dist/sentry.server.config-ZXGUVYT6.cjs +0 -22
@@ -1,83 +1 @@
1
- import {
2
- IMAGE_REMOTE_PATTERNS
3
- } from "../../chunk-F5UIDRP6.mjs";
4
- import {
5
- appConfig
6
- } from "../../chunk-PPXWH3KC.mjs";
7
- import "../../chunk-UKXTPLZ5.mjs";
8
- import "../../chunk-4MO7T43D.mjs";
9
- import "../../chunk-VWRKCGMU.mjs";
10
- import "../../chunk-KJXYSGNH.mjs";
11
- import {
12
- withSentryConfig
13
- } from "../../chunk-XA5DMTFW.mjs";
14
-
15
- // src/internal/nextjs/index.ts
16
- import dotenv from "dotenv";
17
- dotenv.config({ path: ["../../.env.local", "../../.env"] });
18
- function withBeraConfig(config, {
19
- withSentry = true,
20
- withPostHogReverseProxy = true,
21
- appName
22
- }) {
23
- const nextConfig = {
24
- reactStrictMode: true,
25
- trailingSlash: true,
26
- pageExtensions: ["ts", "tsx"],
27
- env: {
28
- // this is used to check if component is running in nextjs inside the package folder
29
- NEXT_PUBLIC_IS_NEXTJS: "true",
30
- NEXT_PUBLIC_BERA_APP_NAME: appName
31
- },
32
- turbopack: {
33
- rules: {
34
- "*.svg": {
35
- as: "*.js",
36
- loaders: ["@svgr/webpack"]
37
- }
38
- }
39
- },
40
- experimental: {
41
- webpackBuildWorker: true
42
- // optimizePackageImports: [
43
- // "@berachain/ui",
44
- // "@berachain/shared-ui",
45
- // "@berachain/berajs",
46
- // "@berachain/wagmi",
47
- // "@berachain/config",
48
- // "@berachain/graphql",
49
- // ],
50
- },
51
- /** We already do linting and typechecking as separate tasks in CI */
52
- typescript: { ignoreBuildErrors: true },
53
- ...config,
54
- images: {
55
- ...config.images,
56
- remotePatterns: [...IMAGE_REMOTE_PATTERNS]
57
- },
58
- async rewrites() {
59
- if (!withPostHogReverseProxy) {
60
- return [];
61
- }
62
- return [
63
- {
64
- source: "/ph/static/:path*",
65
- destination: `https://${appConfig.urls.postHog.region}-assets.i.posthog.com/static/:path*`
66
- },
67
- {
68
- source: "/ph/:path*",
69
- destination: `https://${appConfig.urls.postHog.region}.i.posthog.com/:path*`
70
- }
71
- ];
72
- }
73
- };
74
- if (withPostHogReverseProxy) {
75
- nextConfig.env.NEXT_PUBLIC_PH_REVERSE_PROXY_PATH = "/ph";
76
- nextConfig.skipTrailingSlashRedirect = true;
77
- }
78
- if (withSentry) return withSentryConfig(nextConfig);
79
- return nextConfig;
80
- }
81
- export {
82
- withBeraConfig
83
- };
1
+ import{a as n}from"../../chunk-WMZLZQ6E.mjs";import{b as e}from"../../chunk-QHBQ2EN5.mjs";import"../../chunk-QYM6VRYU.mjs";import"../../chunk-2GCBWNKH.mjs";import"../../chunk-2RLHVELA.mjs";import"../../chunk-MS6UGFXI.mjs";import{b as i}from"../../chunk-5YLBFOPA.mjs";import p from"dotenv";p.config({path:["../../.env.local","../../.env"]});function c(r,{withSentry:a=!0,withPostHogReverseProxy:o=!0,appName:s}){let t={reactStrictMode:!0,trailingSlash:!0,pageExtensions:["ts","tsx"],env:{NEXT_PUBLIC_IS_NEXTJS:"true",NEXT_PUBLIC_BERA_APP_NAME:s},turbopack:{rules:{"*.svg":{as:"*.js",loaders:["@svgr/webpack"]}}},experimental:{webpackBuildWorker:!0},typescript:{ignoreBuildErrors:!0},...r,images:{...r.images,remotePatterns:[...n]},async rewrites(){return o?[{source:"/ph/static/:path*",destination:`https://${e.urls.postHog.region}-assets.i.posthog.com/static/:path*`},{source:"/ph/:path*",destination:`https://${e.urls.postHog.region}.i.posthog.com/:path*`}]:[]}};return o&&(t.env.NEXT_PUBLIC_PH_REVERSE_PROXY_PATH="/ph",t.skipTrailingSlashRedirect=!0),a?i(t):t}export{c as withBeraConfig};
@@ -1,40 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
- var _chunkNF5WIUL6cjs = require('../../../chunk-NF5WIUL6.cjs');
4
-
5
- // src/internal/nextjs/utils/index.ts
6
- function globToRegExp(glob) {
7
- let re = glob.replace(/([.+?^=!:${}()|[\]/\\])/g, "\\$1");
8
- re = re.replace(/\*\*/g, "___DOUBLE_STAR___");
9
- re = re.replace(/\*/g, "[^/]+");
10
- re = re.replace(/___DOUBLE_STAR___/g, ".*");
11
- if (!re.startsWith("^")) re = `^${re}`;
12
- if (!re.endsWith("$")) re = `${re}$`;
13
- return new RegExp(re);
14
- }
15
- function normalizeHostname(hostname) {
16
- return hostname.replace(/^https?:\/\//, "");
17
- }
18
- function isAllowedImageUrl(urlString) {
19
- try {
20
- if (!urlString) return false;
21
- const url = new URL(urlString);
22
- for (const pattern of _chunkNF5WIUL6cjs.IMAGE_REMOTE_PATTERNS) {
23
- if (pattern.protocol && url.protocol.replace(":", "") !== pattern.protocol)
24
- continue;
25
- if (normalizeHostname(url.hostname) !== normalizeHostname(pattern.hostname))
26
- continue;
27
- if (!pattern.pathname) return true;
28
- const pathnameRegex = globToRegExp(pattern.pathname);
29
- if (pathnameRegex.test(url.pathname)) {
30
- return true;
31
- }
32
- }
33
- return false;
34
- } catch (e) {
35
- return false;
36
- }
37
- }
38
-
39
-
40
- exports.isAllowedImageUrl = isAllowedImageUrl;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkYLWSSHG6cjs = require('../../../chunk-YLWSSHG6.cjs');function a(t){let e=t.replace(/([.+?^=!:${}()|[\]/\\])/g,"\\$1");return e=e.replace(/\*\*/g,"___DOUBLE_STAR___"),e=e.replace(/\*/g,"[^/]+"),e=e.replace(/___DOUBLE_STAR___/g,".*"),e.startsWith("^")||(e=`^${e}`),e.endsWith("$")||(e=`${e}$`),new RegExp(e)}function o(t){return t.replace(/^https?:\/\//,"")}function c(t){try{if(!t)return!1;let e=new URL(t);for(let n of _chunkYLWSSHG6cjs.a){if(n.protocol&&e.protocol.replace(":","")!==n.protocol||o(e.hostname)!==o(n.hostname))continue;if(!n.pathname||a(n.pathname).test(e.pathname))return!0}return!1}catch (e2){return!1}}exports.isAllowedImageUrl = c;
@@ -1,40 +1 @@
1
- import {
2
- IMAGE_REMOTE_PATTERNS
3
- } from "../../../chunk-F5UIDRP6.mjs";
4
-
5
- // src/internal/nextjs/utils/index.ts
6
- function globToRegExp(glob) {
7
- let re = glob.replace(/([.+?^=!:${}()|[\]/\\])/g, "\\$1");
8
- re = re.replace(/\*\*/g, "___DOUBLE_STAR___");
9
- re = re.replace(/\*/g, "[^/]+");
10
- re = re.replace(/___DOUBLE_STAR___/g, ".*");
11
- if (!re.startsWith("^")) re = `^${re}`;
12
- if (!re.endsWith("$")) re = `${re}$`;
13
- return new RegExp(re);
14
- }
15
- function normalizeHostname(hostname) {
16
- return hostname.replace(/^https?:\/\//, "");
17
- }
18
- function isAllowedImageUrl(urlString) {
19
- try {
20
- if (!urlString) return false;
21
- const url = new URL(urlString);
22
- for (const pattern of IMAGE_REMOTE_PATTERNS) {
23
- if (pattern.protocol && url.protocol.replace(":", "") !== pattern.protocol)
24
- continue;
25
- if (normalizeHostname(url.hostname) !== normalizeHostname(pattern.hostname))
26
- continue;
27
- if (!pattern.pathname) return true;
28
- const pathnameRegex = globToRegExp(pattern.pathname);
29
- if (pathnameRegex.test(url.pathname)) {
30
- return true;
31
- }
32
- }
33
- return false;
34
- } catch {
35
- return false;
36
- }
37
- }
38
- export {
39
- isAllowedImageUrl
40
- };
1
+ import{a as r}from"../../../chunk-WMZLZQ6E.mjs";function a(t){let e=t.replace(/([.+?^=!:${}()|[\]/\\])/g,"\\$1");return e=e.replace(/\*\*/g,"___DOUBLE_STAR___"),e=e.replace(/\*/g,"[^/]+"),e=e.replace(/___DOUBLE_STAR___/g,".*"),e.startsWith("^")||(e=`^${e}`),e.endsWith("$")||(e=`${e}$`),new RegExp(e)}function o(t){return t.replace(/^https?:\/\//,"")}function c(t){try{if(!t)return!1;let e=new URL(t);for(let n of r){if(n.protocol&&e.protocol.replace(":","")!==n.protocol||o(e.hostname)!==o(n.hostname))continue;if(!n.pathname||a(n.pathname).test(e.pathname))return!0}return!1}catch{return!1}}export{c as isAllowedImageUrl};
@@ -1,10 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
-
3
-
4
-
5
- var _chunkZTYHPIUWcjs = require('../../chunk-ZTYHPIUW.cjs');
6
-
7
-
8
-
9
-
10
- exports.onRequestError = _chunkZTYHPIUWcjs.onRequestError; exports.registerSentry = _chunkZTYHPIUWcjs.registerSentry; exports.withSentryConfig = _chunkZTYHPIUWcjs.withSentryConfig;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunkITASDGG4cjs = require('../../chunk-ITASDGG4.cjs');exports.onRequestError = _chunkITASDGG4cjs.c; exports.registerSentry = _chunkITASDGG4cjs.a; exports.withSentryConfig = _chunkITASDGG4cjs.b;
@@ -1,10 +1 @@
1
- import {
2
- onRequestError,
3
- registerSentry,
4
- withSentryConfig
5
- } from "../../chunk-XA5DMTFW.mjs";
6
- export {
7
- onRequestError,
8
- registerSentry,
9
- withSentryConfig
10
- };
1
+ import{a,b,c}from"../../chunk-5YLBFOPA.mjs";export{c as onRequestError,a as registerSentry,b as withSentryConfig};
@@ -1,65 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
-
3
-
4
-
5
- var _chunkB2BTOQVPcjs = require('../../chunk-B2BTOQVP.cjs');
6
- require('../../chunk-AU3LYJAB.cjs');
7
- require('../../chunk-EYYJ2UZT.cjs');
8
-
9
- // src/internal/sentry/sentry.client.config.ts
10
- if (_chunkB2BTOQVPcjs.sentryDebug) {
11
- console.log(
12
- "[@berachain/config] sentryDebug init",
13
- process.env.NEXT_PUBLIC_SENTRY_DSN
14
- );
15
- }
16
- function initSentryClient(Sentry, opt = {}) {
17
- return Sentry.init({
18
- dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
19
- tunnel: "/monitoring-tunnel",
20
- // Adjust this value in production, or use tracesSampler for greater control
21
- tracesSampleRate: _chunkB2BTOQVPcjs.tracesSampleRate,
22
- // Setting this option to true will print useful information to the console while you're setting up Sentry.
23
- debug: _chunkB2BTOQVPcjs.sentryDebug,
24
- environment: _chunkB2BTOQVPcjs.sentryEnvironment,
25
- ...opt,
26
- // You can remove this option if you're not planning to use the Sentry Session Replay feature:
27
- // integrations: [],
28
- ignoreErrors: [
29
- ..._nullishCoalesce(opt.ignoreErrors, () => ( [])),
30
- // Browser extension - window global injection conflicts (ethereum, tron, solana, etc.)
31
- /Cannot (set|assign to read only) property .+ of (object )?'?#<Window>/,
32
- // Browser extension - proxy trap conflicts (e.g. TronLink tronlinkParams)
33
- /'set' on proxy: trap returned falsish for property/,
34
- // Browser extension - property descriptor redefinition
35
- /Invalid property descriptor\. Cannot both specify accessors and a value or writable attribute/,
36
- // Chrome extension messaging called from page context
37
- /chrome\.runtime\.sendMessage\(\) called from a webpage/,
38
- // Chrome extension port errors
39
- "Could not establish connection. Receiving end does not exist.",
40
- "Attempting to use a disconnected port object",
41
- // WalletConnect authorization / session errors
42
- /The source .+ has not been authorized yet/,
43
- /No matching key\. session topic doesn't exist/,
44
- // Wallet connection failures
45
- /Failed to connect to MetaMask/,
46
- "not found rainbowkit",
47
- // WalletConnect
48
- "Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.",
49
- // wagmi
50
- "The provider is disconnected from all chains.",
51
- "Cannot destructure property 'register' of 'undefined' as it is undefined.",
52
- // Browser extension - injected provider event API (e.g. window.<wallet>.addListener)
53
- /\.addListener is not a function/,
54
- // Wallet extension - locked keyring state (Keplr/MetaMask), not actionable by us
55
- "KeyRing is locked",
56
- // Wallet-injected provider rate limiting (extension, not our API)
57
- "The requested method has been rate limited.",
58
- // Wallet extension - provider race accessing getDefaultChain before init
59
- /getDefaultChain[\s\S]*this\.getProvider\(\.\.\.\) is undefined/
60
- ]
61
- });
62
- }
63
-
64
-
65
- exports.initSentryClient = initSentryClient;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }var _chunkHLFO7V5Icjs = require('../../chunk-HLFO7V5I.cjs');require('../../chunk-6CZTBBJT.cjs');require('../../chunk-2OLL4MUY.cjs');_chunkHLFO7V5Icjs.d&&console.log("[@berachain/config] sentryDebug init",process.env.NEXT_PUBLIC_SENTRY_DSN);function s(r,n={}){return r.init({dsn:process.env.NEXT_PUBLIC_SENTRY_DSN,tunnel:"/monitoring-tunnel",tracesSampleRate:_chunkHLFO7V5Icjs.b,debug:_chunkHLFO7V5Icjs.d,environment:_chunkHLFO7V5Icjs.a,...n,ignoreErrors:[..._nullishCoalesce(n.ignoreErrors, () => ([])),/Cannot (set|assign to read only) property .+ of (object )?'?#<Window>/,/'set' on proxy: trap returned falsish for property/,/Invalid property descriptor\. Cannot both specify accessors and a value or writable attribute/,/chrome\.runtime\.sendMessage\(\) called from a webpage/,"Could not establish connection. Receiving end does not exist.","Attempting to use a disconnected port object",/The source .+ has not been authorized yet/,/No matching key\. session topic doesn't exist/,/Failed to connect to MetaMask/,"not found rainbowkit","Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.","The provider is disconnected from all chains.","Cannot destructure property 'register' of 'undefined' as it is undefined.",/\.addListener is not a function/,"KeyRing is locked","The requested method has been rate limited.",/getDefaultChain[\s\S]*this\.getProvider\(\.\.\.\) is undefined/]})}exports.initSentryClient = s;
@@ -1,65 +1 @@
1
- import {
2
- sentryDebug,
3
- sentryEnvironment,
4
- tracesSampleRate
5
- } from "../../chunk-OWAB24JG.mjs";
6
- import "../../chunk-VWRKCGMU.mjs";
7
- import "../../chunk-KJXYSGNH.mjs";
8
-
9
- // src/internal/sentry/sentry.client.config.ts
10
- if (sentryDebug) {
11
- console.log(
12
- "[@berachain/config] sentryDebug init",
13
- process.env.NEXT_PUBLIC_SENTRY_DSN
14
- );
15
- }
16
- function initSentryClient(Sentry, opt = {}) {
17
- return Sentry.init({
18
- dsn: process.env.NEXT_PUBLIC_SENTRY_DSN,
19
- tunnel: "/monitoring-tunnel",
20
- // Adjust this value in production, or use tracesSampler for greater control
21
- tracesSampleRate,
22
- // Setting this option to true will print useful information to the console while you're setting up Sentry.
23
- debug: sentryDebug,
24
- environment: sentryEnvironment,
25
- ...opt,
26
- // You can remove this option if you're not planning to use the Sentry Session Replay feature:
27
- // integrations: [],
28
- ignoreErrors: [
29
- ...opt.ignoreErrors ?? [],
30
- // Browser extension - window global injection conflicts (ethereum, tron, solana, etc.)
31
- /Cannot (set|assign to read only) property .+ of (object )?'?#<Window>/,
32
- // Browser extension - proxy trap conflicts (e.g. TronLink tronlinkParams)
33
- /'set' on proxy: trap returned falsish for property/,
34
- // Browser extension - property descriptor redefinition
35
- /Invalid property descriptor\. Cannot both specify accessors and a value or writable attribute/,
36
- // Chrome extension messaging called from page context
37
- /chrome\.runtime\.sendMessage\(\) called from a webpage/,
38
- // Chrome extension port errors
39
- "Could not establish connection. Receiving end does not exist.",
40
- "Attempting to use a disconnected port object",
41
- // WalletConnect authorization / session errors
42
- /The source .+ has not been authorized yet/,
43
- /No matching key\. session topic doesn't exist/,
44
- // Wallet connection failures
45
- /Failed to connect to MetaMask/,
46
- "not found rainbowkit",
47
- // WalletConnect
48
- "Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.",
49
- // wagmi
50
- "The provider is disconnected from all chains.",
51
- "Cannot destructure property 'register' of 'undefined' as it is undefined.",
52
- // Browser extension - injected provider event API (e.g. window.<wallet>.addListener)
53
- /\.addListener is not a function/,
54
- // Wallet extension - locked keyring state (Keplr/MetaMask), not actionable by us
55
- "KeyRing is locked",
56
- // Wallet-injected provider rate limiting (extension, not our API)
57
- "The requested method has been rate limited.",
58
- // Wallet extension - provider race accessing getDefaultChain before init
59
- /getDefaultChain[\s\S]*this\.getProvider\(\.\.\.\) is undefined/
60
- ]
61
- });
62
- }
63
- export {
64
- initSentryClient
65
- };
1
+ import{a as t,b as o,d as e}from"../../chunk-N45AQAIZ.mjs";import"../../chunk-2RLHVELA.mjs";import"../../chunk-MS6UGFXI.mjs";e&&console.log("[@berachain/config] sentryDebug init",process.env.NEXT_PUBLIC_SENTRY_DSN);function s(r,n={}){return r.init({dsn:process.env.NEXT_PUBLIC_SENTRY_DSN,tunnel:"/monitoring-tunnel",tracesSampleRate:o,debug:e,environment:t,...n,ignoreErrors:[...n.ignoreErrors??[],/Cannot (set|assign to read only) property .+ of (object )?'?#<Window>/,/'set' on proxy: trap returned falsish for property/,/Invalid property descriptor\. Cannot both specify accessors and a value or writable attribute/,/chrome\.runtime\.sendMessage\(\) called from a webpage/,"Could not establish connection. Receiving end does not exist.","Attempting to use a disconnected port object",/The source .+ has not been authorized yet/,/No matching key\. session topic doesn't exist/,/Failed to connect to MetaMask/,"not found rainbowkit","Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.","The provider is disconnected from all chains.","Cannot destructure property 'register' of 'undefined' as it is undefined.",/\.addListener is not a function/,"KeyRing is locked","The requested method has been rate limited.",/getDefaultChain[\s\S]*this\.getProvider\(\.\.\.\) is undefined/]})}export{s as initSentryClient};
@@ -1,237 +1 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }// src/internal/tailwind/index.ts
2
- var _containerqueries = require('@tailwindcss/container-queries'); var _containerqueries2 = _interopRequireDefault(_containerqueries);
3
- var _typography = require('@tailwindcss/typography'); var _typography2 = _interopRequireDefault(_typography);
4
- var _tailwindcssanimate = require('tailwindcss-animate'); var _tailwindcssanimate2 = _interopRequireDefault(_tailwindcssanimate);
5
-
6
- // src/internal/tailwind/config.ts
7
- var _colors = require('tailwindcss/colors'); var _colors2 = _interopRequireDefault(_colors);
8
- var _defaultTheme = require('tailwindcss/defaultTheme');
9
- var configWithNoPlugins = {
10
- darkMode: ["class"],
11
- safelist: ["dark", "light"],
12
- // These are relative to the project using the config
13
- content: [
14
- "src/**/*.{js,ts,jsx,tsx,mdx}",
15
- "../../packages/ui/src/*.{ts,tsx}",
16
- "../../packages/ui/src/**/*.{ts,tsx}",
17
- "../../packages/shared-ui/src/*.{ts,tsx}",
18
- "../../packages/shared-ui/src/**/*.{ts,tsx}"
19
- ],
20
- theme: {
21
- fontSize: {
22
- xs: ["0.75rem", { lineHeight: "1rem" }],
23
- md: ["1rem", { lineHeight: "1.5rem", fontWeight: "600" }],
24
- sm: ["0.875rem", { lineHeight: "1.5rem" }],
25
- xl: ["1.25rem", { lineHeight: "1.75rem" }],
26
- lg: ["1.125rem", { lineHeight: "2rem" }],
27
- "2xl": ["1.5rem", { lineHeight: "2rem" }],
28
- "3xl": ["2rem", { lineHeight: "3rem" }],
29
- "4xl": ["2.5rem", { lineHeight: "3rem" }],
30
- "5xl": ["3rem", { lineHeight: "1" }],
31
- "6xl": ["3.75rem", { lineHeight: "1" }],
32
- "7xl": ["4.5rem", { lineHeight: "1" }],
33
- "8xl": ["6rem", { lineHeight: "1" }],
34
- "9xl": ["8rem", { lineHeight: "1" }],
35
- /**
36
- * Typography sizes
37
- */
38
- h1: [
39
- "3rem",
40
- { lineHeight: "3.5rem", fontWeight: "700", letterSpacing: "-0.125rem" }
41
- ],
42
- h2: [
43
- "1.875rem",
44
- {
45
- lineHeight: "2.5rem",
46
- fontWeight: "600",
47
- letterSpacing: "-0.01406rem"
48
- }
49
- ],
50
- h3: ["1.5rem", { lineHeight: "2rem", fontWeight: "600" }],
51
- h4: [
52
- "1.25rem",
53
- {
54
- lineHeight: "1.5rem",
55
- fontWeight: "600",
56
- letterSpacing: "-0.0625rem"
57
- }
58
- ],
59
- base: ["0.875rem", { lineHeight: "1.25rem", fontWeight: "600" }],
60
- small: ["0.75rem", { lineHeight: "1rem", fontWeight: "500" }]
61
- },
62
- spacing: {
63
- 0: "0px",
64
- "2xs": "0.25rem",
65
- xs: "0.5rem",
66
- sm: "0.75rem",
67
- md: "1rem",
68
- base: "1.5rem",
69
- lg: "2rem",
70
- xl: "2.5rem",
71
- "2xl": "3rem",
72
- "3xl": "3.5rem",
73
- "4xl": "4rem",
74
- "5xl": "6rem",
75
- "6xl": "8rem"
76
- },
77
- borderRadius: {
78
- none: "0px",
79
- "2xs": "0.125rem",
80
- xs: "0.25rem",
81
- sm: "0.5rem",
82
- md: "0.75rem",
83
- lg: "1rem",
84
- xl: "1.5rem",
85
- "2xl": "2rem",
86
- full: "9999px"
87
- },
88
- aspectRatio: {
89
- auto: "auto",
90
- square: "1 / 1",
91
- video: "16 / 9",
92
- 1: "1",
93
- 2: "2",
94
- 3: "3",
95
- 4: "4",
96
- 5: "5",
97
- 6: "6",
98
- 7: "7",
99
- 8: "8",
100
- 9: "9",
101
- 10: "10",
102
- 11: "11",
103
- 12: "12",
104
- 13: "13",
105
- 14: "14",
106
- 15: "15",
107
- 16: "16"
108
- },
109
- container: {
110
- center: true,
111
- padding: {
112
- DEFAULT: "1rem",
113
- md: "2rem",
114
- lg: "4rem"
115
- },
116
- screens: {
117
- // xs: "360px",
118
- sm: "640px",
119
- md: "768px",
120
- lg: "1024px",
121
- xl: "1280px",
122
- "2xl": "1536px"
123
- }
124
- },
125
- colors: {
126
- hover: "hsl(var(--hover) / <alpha-value>)",
127
- background: {
128
- DEFAULT: "hsl(var(--background) / <alpha-value>)",
129
- secondary: "hsl(var(--background-secondary) / <alpha-value>)"
130
- },
131
- foreground: "hsl(var(--foreground) / <alpha-value>)",
132
- muted: {
133
- DEFAULT: "hsl(var(--muted) / <alpha-value>)",
134
- foreground: "hsl(var(--muted-foreground) / <alpha-value>)"
135
- },
136
- primary: {
137
- DEFAULT: "hsl(var(--primary) / <alpha-value>)",
138
- foreground: "hsl(var(--primary-foreground) / <alpha-value>)"
139
- },
140
- accent: {
141
- DEFAULT: "hsl(var(--accent) / <alpha-value>)",
142
- foreground: "hsl(var(--accent-foreground) / <alpha-value>)",
143
- faucet: "#326FE5",
144
- beratrail: "#96532C",
145
- berps: "#41D6E0",
146
- bend: "#8C7FEB",
147
- honey: "#EC8A19",
148
- hub: "#FEDB71"
149
- },
150
- border: {
151
- DEFAULT: "hsl(var(--border) / <alpha-value>)",
152
- hover: "hsl(var(--border-hover) / <alpha-value>)"
153
- },
154
- input: "hsl(var(--input) / <alpha-value>)",
155
- destructive: {
156
- DEFAULT: "hsl(var(--destructive) / <alpha-value>)",
157
- foreground: "hsl(var(--destructive-foreground) / <alpha-value>)"
158
- },
159
- warning: {
160
- DEFAULT: "hsl(var(--warning) / <alpha-value>)",
161
- foreground: "hsl(var(--warning-foreground) / <alpha-value>)"
162
- },
163
- info: {
164
- DEFAULT: "hsl(var(--info) / <alpha-value>)",
165
- foreground: "hsl(var(--info-foreground) / <alpha-value>)"
166
- },
167
- success: {
168
- DEFAULT: "hsl(var(--success) / <alpha-value>)",
169
- foreground: "hsl(var(--success-foreground) / <alpha-value>)"
170
- },
171
- ring: "hsl(var(--ring) / <alpha-value>)",
172
- white: _colors2.default.white,
173
- black: _colors2.default.black,
174
- inherit: _colors2.default.inherit,
175
- transparent: _colors2.default.transparent,
176
- current: _colors2.default.current
177
- },
178
- extend: {
179
- letterSpacing: {
180
- tight1: "-0.03125rem",
181
- tight2: "-0.0625rem"
182
- },
183
- minHeight: {
184
- minimum: "calc(100vh - 191px)",
185
- "screen-250": "calc(100vh - 214px)"
186
- },
187
- maxWidth: {
188
- "1280": "1280px"
189
- },
190
- borderColor: {
191
- DEFAULT: "hsl(var(--border) / <alpha-value>)"
192
- },
193
- padding: {
194
- start: "106px",
195
- "start-lg": "154px"
196
- },
197
- fontFamily: {
198
- sans: ["var(--font-sans)", ..._defaultTheme.fontFamily.sans],
199
- honey: ["var(--font-honey)", ..._defaultTheme.fontFamily.sans]
200
- },
201
- keyframes: {
202
- "fade-in": {
203
- from: {
204
- opacity: "0"
205
- },
206
- to: {
207
- opacity: "1"
208
- }
209
- },
210
- "accordion-down": {
211
- from: { height: "0" },
212
- to: { height: "var(--radix-accordion-content-height)" }
213
- },
214
- "accordion-up": {
215
- from: { height: "var(--radix-accordion-content-height)" },
216
- to: { height: "0" }
217
- }
218
- },
219
- animation: {
220
- "fade-in": "fade-in 0.5s linear forwards",
221
- "accordion-down": "accordion-down 0.2s ease-out",
222
- "accordion-up": "accordion-up 0.2s ease-out"
223
- }
224
- }
225
- }
226
- };
227
-
228
- // src/internal/tailwind/index.ts
229
- var config = {
230
- ...configWithNoPlugins,
231
- plugins: [_tailwindcssanimate2.default, _containerqueries2.default, _typography2.default]
232
- };
233
- var tailwind_default = config;
234
-
235
-
236
-
237
- exports.config = config; exports.default = tailwind_default;
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }var _containerqueries = require('@tailwindcss/container-queries'); var _containerqueries2 = _interopRequireDefault(_containerqueries);var _typography = require('@tailwindcss/typography'); var _typography2 = _interopRequireDefault(_typography);var _tailwindcssanimate = require('tailwindcss-animate'); var _tailwindcssanimate2 = _interopRequireDefault(_tailwindcssanimate);var _colors = require('tailwindcss/colors'); var _colors2 = _interopRequireDefault(_colors);var _defaultTheme = require('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:_colors2.default.white,black:_colors2.default.black,inherit:_colors2.default.inherit,transparent:_colors2.default.transparent,current:_colors2.default.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)",..._defaultTheme.fontFamily.sans],honey:["var(--font-honey)",..._defaultTheme.fontFamily.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:[_tailwindcssanimate2.default,_containerqueries2.default,_typography2.default]},p= exports.default =n;exports.config = n; exports.default = p;