@metamask/browser-playground 0.1.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/index.js ADDED
@@ -0,0 +1,3 @@
1
+ throw new Error(
2
+ 'This package is published to npm so that the static files can be hosted locally for testing. This package cannot be run directly.',
3
+ );
package/package.json ADDED
@@ -0,0 +1,127 @@
1
+ {
2
+ "name": "@metamask/browser-playground",
3
+ "version": "0.1.0",
4
+ "description": "A browser test dapp for multichain api",
5
+ "keywords": [
6
+ "MetaMask",
7
+ "Ethereum"
8
+ ],
9
+ "homepage": ".",
10
+ "bugs": {
11
+ "url": "https://github.com/MetaMask/connect-monorepo/issues"
12
+ },
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://github.com/MetaMask/connect-monorepo.git"
16
+ },
17
+ "license": "MIT",
18
+ "exports": {
19
+ ".": "./index.js",
20
+ "./package.json": "./package.json"
21
+ },
22
+ "main": "./index.js",
23
+ "files": [
24
+ "build/"
25
+ ],
26
+ "scripts": {
27
+ "copy-wagmi-connector": "node scripts/copy-wagmi-connector.js",
28
+ "build": "yarn copy-wagmi-connector && DISABLE_ESLINT_PLUGIN=true craco build",
29
+ "build:docs": "typedoc",
30
+ "changelog:format": "../../scripts/format-changelog.sh @metamask/browser-playground",
31
+ "changelog:update": "../../scripts/update-changelog.sh @metamask/browser-playground",
32
+ "changelog:validate": "../../scripts/validate-changelog.sh @metamask/browser-playground",
33
+ "deploy": "serve -s build",
34
+ "prepack": "./scripts/prepack.sh",
35
+ "start": "yarn copy-wagmi-connector && DISABLE_ESLINT_PLUGIN=true craco start",
36
+ "publish:preview": "yarn npm publish --tag preview",
37
+ "since-latest-release": "../../scripts/since-latest-release.sh",
38
+ "test": "echo \"No test specified\"",
39
+ "test:verbose": "yarn test"
40
+ },
41
+ "browserslist": {
42
+ "production": [
43
+ ">0.2%",
44
+ "not dead",
45
+ "not op_mini all"
46
+ ],
47
+ "development": [
48
+ "last 1 chrome version",
49
+ "last 1 firefox version",
50
+ "last 1 safari version"
51
+ ]
52
+ },
53
+ "resolutions": {
54
+ "@metamask/utils": "^11.8.1"
55
+ },
56
+ "dependencies": {
57
+ "@metamask/chain-agnostic-permission": "^1.2.2",
58
+ "@metamask/connect": "^0.2.0",
59
+ "@metamask/utils": "^11.8.1",
60
+ "@tanstack/query-sync-storage-persister": "5.0.5",
61
+ "@tanstack/react-query": ">=5.45.1",
62
+ "@tanstack/react-query-persist-client": "5.0.5",
63
+ "@wagmi/core": "^2.22.1",
64
+ "react": "19.1.0",
65
+ "react-dom": "19.1.0",
66
+ "viem": "2.*",
67
+ "wagmi": "^2.19.2"
68
+ },
69
+ "devDependencies": {
70
+ "@craco/craco": "^7.1.0",
71
+ "@lavamoat/allow-scripts": "^3.0.4",
72
+ "@lavamoat/preinstall-always-fail": "^2.0.0",
73
+ "@metamask/api-specs": "^0.14.0",
74
+ "@metamask/auto-changelog": "^3.4.4",
75
+ "@metamask/playground-ui": "^0.0.0",
76
+ "@open-rpc/meta-schema": "^1.14.9",
77
+ "@open-rpc/schema-utils-js": "^2.0.5",
78
+ "@solana/web3.js": "^1.98.0",
79
+ "@tailwindcss/postcss": "^4.0.0",
80
+ "@tanstack/react-query-devtools": "5.0.5",
81
+ "@testing-library/jest-dom": "^5.17.0",
82
+ "@testing-library/react": "^13.4.0",
83
+ "@types/chrome": "^0.0.279",
84
+ "@types/jest": "^29.5.14",
85
+ "@types/node": "^22.9.0",
86
+ "@types/react": "19.1.0",
87
+ "@yarnpkg/types": "^4.0.0",
88
+ "autoprefixer": "^10.4.21",
89
+ "buffer": "^6.0.3",
90
+ "deepmerge": "^4.2.2",
91
+ "depcheck": "^1.4.7",
92
+ "dotenv": "^17.2.3",
93
+ "jest": "^29.6.4",
94
+ "postcss": "^8.5.6",
95
+ "prettier": "^3.3.3",
96
+ "prettier-plugin-packagejson": "^2.4.5",
97
+ "process": "^0.11.10",
98
+ "react-scripts": "5.0.1",
99
+ "serve": "^14.2.5",
100
+ "tailwindcss": "^4.1.11",
101
+ "ts-jest": "^27.1.4",
102
+ "ts-node": "^10.9.1",
103
+ "typedoc": "^0.28.14",
104
+ "typedoc-plugin-missing-exports": "^4.1.2",
105
+ "typescript": "^5.9.3"
106
+ },
107
+ "packageManager": "yarn@4.1.1",
108
+ "engines": {
109
+ "node": ">=20.19.0"
110
+ },
111
+ "publishConfig": {
112
+ "access": "public",
113
+ "registry": "https://registry.npmjs.org/"
114
+ },
115
+ "lavamoat": {
116
+ "allowScripts": {
117
+ "@lavamoat/preinstall-always-fail": false,
118
+ "react-scripts>@pmmmwh/react-refresh-webpack-plugin>core-js-pure": false,
119
+ "react-scripts>react-app-polyfill>core-js": false,
120
+ "@solana/web3.js>bigint-buffer": false,
121
+ "@solana/web3.js>rpc-websockets>bufferutil": false,
122
+ "@solana/web3.js>rpc-websockets>utf-8-validate": false,
123
+ "@metamask/connect>@metamask/mobile-wallet-protocol-dapp-client>@metamask/mobile-wallet-protocol-core>centrifuge>protobufjs": false,
124
+ "@metamask/connect>@metamask/mobile-wallet-protocol-core>centrifuge>protobufjs": false
125
+ }
126
+ }
127
+ }