Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version v12.7.0 RC #28235

Merged
merged 120 commits into from
Nov 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
134d9a6
fix(deps): gridplus-sdk@2.5.1->~2.6.0 (#27973)
legobeat Oct 22, 2024
d8f786b
fix(snaps): Adjust alignment of custom UI links (#27957)
GuillaumeRx Oct 22, 2024
c926f96
fix: updated event name for site cell component (#27981)
NidhiKJha Oct 22, 2024
528f2f5
test: update notification date tests to be timezone agnostic (#27925)
Prithpal-Sooriya Oct 22, 2024
088983a
feat: removed feature flag for confirmations screen (#27877)
NidhiKJha Oct 22, 2024
b87b4e5
feat: add ape token mainnet (#27974)
sahar-fehri Oct 22, 2024
80cfcf7
fix: prevent scrolling to account list item on send page (#27934)
bfullam Oct 22, 2024
6b94992
fix: Allow users to remove linea from networks list (#27512)
gambinish Oct 22, 2024
d473e13
refactor: remove circular dependency between `ui/ducks/custom-gas.js`…
davidmurdoch Oct 22, 2024
ad6d1b3
refactor: remove relative imports to `selectors/index.js` from other …
davidmurdoch Oct 22, 2024
eb77786
fix: @metamask/eth-json-rpc-filters@^7.0.0->^8.0.0 (#27917)
legobeat Oct 22, 2024
a1a62aa
refactor: routes.component.js and creation of ToastMaster (#27735)
HowardBraham Oct 22, 2024
5fcb31b
fix: Fix stream re-initialization (#28024)
Gudahtt Oct 23, 2024
4d26e24
feat(NOTIFY-1245): add account syncing E2E helpers & basic tests (#28…
mathieuartu Oct 23, 2024
08cf2a7
chore: updated package (#28002)
albertolive Oct 23, 2024
e63b7eb
refactor: remove global network usage from petnames (#27946)
matthewwalsh0 Oct 23, 2024
05a2875
feat: bump @metamask/notification-services-controller from 0.7.0 to 0…
matteoscurati Oct 23, 2024
eb5b2b2
fix: storybook `getManifest` issue (#28010)
Prithpal-Sooriya Oct 23, 2024
3195e3d
refactor: use `reselect`'s `createSelector` instead of going through …
davidmurdoch Oct 23, 2024
e6f3c67
feat: enable preview token (#27809)
matteoscurati Oct 23, 2024
266990b
fix: adjust spacing of quote rate in swaps (#28016)
martahj Oct 23, 2024
a91c2d0
fix: Gas changes for low Max base fee and Priority fee (#28037)
pedronfigueiredo Oct 23, 2024
5668333
fix(deps): @keystonehq/metamask-airgapped-keyring@^0.13.1->^0.14.1 (#…
legobeat Oct 23, 2024
be68e2c
feat: new phishing warning UI with metrics (#27942)
AugmentedMode Oct 23, 2024
fa895e5
chore: Bump gridplus-sdk to 2.7.1 (#28008)
legobeat Oct 24, 2024
2cc3f2c
fix(deps): @metamask/eth-json-rpc-filters@^8.0.0->^9.0.0 (#27956)
legobeat Oct 24, 2024
266da07
fix: Fix limited visibility of decrypt message (#27622)
OGPoyraz Oct 24, 2024
fa97321
feat: :sparkles: show a notification item in the settings page (#26843)
matteoscurati Oct 24, 2024
b7a79d0
fix: flaky anti-pattern getText + assert 2 (#28043)
seaona Oct 24, 2024
4e25617
fix: Fall back to token list for the token symbol (#28003)
pedronfigueiredo Oct 24, 2024
2ae9236
fix: Support dynamic native token name on gas component (#28048)
pedronfigueiredo Oct 24, 2024
1698011
docs: update debugging sentry step 3 (#28034)
Unik0rnMaggie Oct 24, 2024
639e46f
test: [POM] Create onboarding related page object modal base pages an…
devin-ai-integration[bot] Oct 24, 2024
4fe3a9f
feat: add support for external links in feature announcements (#26491)
matteoscurati Oct 24, 2024
5983dc1
fix: flaky anti-pattern getText + assert 3 (#28062)
seaona Oct 24, 2024
f1db383
chore: update stories for name component (#28049)
matthewwalsh0 Oct 24, 2024
f0aad1c
fix: disable notifications when basic functionality off (#28045)
matteoscurati Oct 24, 2024
da377be
test: notifications integration tests (#28022)
cmd-ob Oct 24, 2024
cbfd131
feat: NFT token transfer (#27955)
pedronfigueiredo Oct 24, 2024
27a3c01
test: NOTIFY-1256 - Extending E2E tests for Account Sync (#28067)
cmd-ob Oct 24, 2024
1e55692
feat: design changes in signature paged message section (#28038)
jpuri Oct 24, 2024
5695921
fix: c2 bypass (#28057)
AugmentedMode Oct 24, 2024
82eb8ff
test: Added e2e for switch network (#27967)
hjetpoluru Oct 24, 2024
7d75226
feat(3419): sensitive text component (#28056)
vinnyhoward Oct 24, 2024
a6734d6
test: Complete missing step for add a contact to the address book in …
benjisclowder Oct 25, 2024
684689e
fix: broken test `Vault Decryptor Page is able to decrypt the vault u…
seaona Oct 25, 2024
91ec3f8
fix: update storybook to support NFT images (#28105)
Prithpal-Sooriya Oct 25, 2024
aa6dd41
feat: better storybook stories for the notification pages (#27861)
matteoscurati Oct 25, 2024
440a0fa
fix(devDeps): babel@7.23.2->7.25.9 (#28068)
legobeat Oct 25, 2024
c4727d9
fix: json-rpc-middleware-stream@^5 -> @metamask/json-rpc-middleware-s…
legobeat Oct 25, 2024
32a3b07
test: allow more simple findElement by data-testid (#28065)
HowardBraham Oct 25, 2024
d7d3b6d
feat: improved way to trigger mmi e2e tests (#27932)
albertolive Oct 25, 2024
317d2ef
feat: convert MetaMetricsController to typescript (#28072)
cryptodev-2s Oct 28, 2024
99e8e77
chore: Using button icon component for clikable icons (#28082)
jpuri Oct 28, 2024
4be7b4a
feat: share the same user storage mock instance in tests (#28119)
mathieuartu Oct 28, 2024
b6639fc
test: [POM] Migrate onboarding infura call privacy e2e tests (#28079)
devin-ai-integration[bot] Oct 28, 2024
46532ad
fix: Reduce usage of scientific notation (#27992)
pedronfigueiredo Oct 28, 2024
3624df4
test: blockaid update version and reenable specs (#28121)
seaona Oct 28, 2024
499de20
fix: broken not existing type file import (#28055)
georgewrmarshall Oct 28, 2024
42e2aa4
feat: update phishing controller version (#28131)
AugmentedMode Oct 28, 2024
6343b34
chore: bridge-api fetchBridgeQuotes util (#28027)
micaelae Oct 28, 2024
7169a28
feat(NOTIFY-1260): enable account syncing (#28120)
mathieuartu Oct 28, 2024
3ecc7f4
chore: small storybook and docs updates to SensitiveText component (#…
georgewrmarshall Oct 28, 2024
0c74bf6
chore: update @metamask/bitcoin-wallet-snap to 0.8.2 (#28135)
ccharly Oct 28, 2024
03196a8
feat: added test network as selected network if globally selected for…
NidhiKJha Oct 29, 2024
b649acf
test: [Snaps E2E] Unified methods and clean up snaps e2e tests (#27684)
bowensanders Oct 29, 2024
3a35385
chore: ignore warning for ethereumjs-wallet (#28145)
sahar-fehri Oct 29, 2024
6eae9bc
refactor: clean up profile sync hooks (#28132)
Prithpal-Sooriya Oct 29, 2024
1fd9510
fix: 0 token balance in send flow (#28136)
bergeron Oct 29, 2024
f6b9e79
fix: Reduce gas limit fallback from 95% to 35% of the block gas limit…
OGPoyraz Oct 29, 2024
6b321c8
test(ramps): fixes btc native token test (#27601)
georgeweiler Oct 29, 2024
54ae12f
refactor: remove global network usage from transaction simulation (#2…
matthewwalsh0 Oct 29, 2024
8ae8561
feat: Capture 3 existing properties within non-anonymous transaction …
pedronfigueiredo Oct 29, 2024
54b110a
fix: incorrect standard swap gas fee estimation (#28127)
matthewwalsh0 Oct 29, 2024
acb79ec
chore: bump asset controllers to 39 + polling API (#28025)
bergeron Oct 29, 2024
f1c9130
fix: Updated network message on Review Permission and Connections pag…
NidhiKJha Oct 29, 2024
7df5cef
chore: update bridge quote request on input change (#28028)
micaelae Oct 29, 2024
2c86162
feat: Add re-simulation logic (#28104)
OGPoyraz Oct 30, 2024
f6ccbfc
feat: enable security alerts api (#28040)
vinistevam Oct 30, 2024
41d7505
chore: upgrade signature controller to remove global network (#28063)
matthewwalsh0 Oct 30, 2024
d6c1df4
feat(snaps): Add `useDisplayName` hook (#27868)
GuillaumeRx Oct 30, 2024
62cc460
chore: update confirmations code ownership (#27862)
matthewwalsh0 Oct 30, 2024
05da3f7
feat: add privacy mode (#28021)
jonybur Oct 30, 2024
9cc7b41
fix: Fix #28097 - Prevent redirect after adding network in Onboarding…
darkwing Oct 30, 2024
3d4bab3
fix: Prevent coercing small spending caps to zero (#28179)
pedronfigueiredo Oct 30, 2024
7e765c3
chore: poll for bridge quotes (#28029)
micaelae Oct 30, 2024
5bb3885
feat: Native asset send (#27979)
pedronfigueiredo Oct 30, 2024
5227d6f
fix: flaky test `BTC Account - Overview has balance` (#28181)
seaona Oct 30, 2024
c04c119
feat: Token Network Filter UI [Extension] (#27884)
gambinish Oct 30, 2024
d61b77e
feat: Copy updates to satisfy UK regulation requirements (#28157)
georgeweiler Oct 30, 2024
d9328f6
chore: Add a new transaction event prop (#28153)
dan437 Oct 30, 2024
956f99a
feat: Bump `QueuedRequestController` from `^2.0.0` to `^7.0.0`  (#28090)
jiexi Oct 30, 2024
f301604
test: Fix data deletion e2e tests (#28221)
Gudahtt Oct 31, 2024
70ba803
feat: poll native currency prices across chains (#28196)
bergeron Oct 31, 2024
741aa96
test: add ui render for debug ui integration tests (#27621)
cryptotavares Oct 31, 2024
630352a
fix: Fix left-aligned fullscreen UI (#28218)
Gudahtt Oct 31, 2024
dd03cc2
feat: Improve provider method metrics for add/switch chain (#28214)
Gudahtt Oct 31, 2024
1cf8791
refactor: move `getSelectedInternalAccount` from `selectors.js` to `a…
davidmurdoch Nov 1, 2024
fd66efb
Merge origin/develop into master-sync
danjm Nov 1, 2024
7166b79
Merge pull request #28222 from MetaMask/master-sync (following 12.5.1…
danjm Nov 1, 2024
4b6c97e
Version v12.7.0
metamaskbot Nov 1, 2024
7798ef4
chore: Modify changelog title to fix ci job (#28237)
benjisclowder Nov 1, 2024
18f97b8
cherry pick: fix: smart transactions in redesigned confirmations (#28…
dan437 Nov 7, 2024
4c3a355
cherry pick: chore: add the gas_included prop into Quotes Received ev…
dan437 Nov 7, 2024
8219df5
Cherrypick v12.7.0 feat: Enable simulation metrics for redesign trans…
digiwand Nov 7, 2024
3b597d9
Cherrypick v12.7.0 feat: Add simulation metrics to "Transaction Submi…
digiwand Nov 7, 2024
7c12d69
fix (Cherrypick v12.7.0 ): disable account syncing (#28361)
Prithpal-Sooriya Nov 7, 2024
a40cb29
fix: Bug 28347 - Privacy mode tweaks (#28367) (#28372)
gambinish Nov 8, 2024
e33eebd
fix (cherry-pick): gas limit estimation (#28327) (#28378)
matthewwalsh0 Nov 8, 2024
ae779d0
cherry-pick: bump `@metamask/queued-request-controller` with patch fi…
adonesky1 Nov 8, 2024
54588f9
fix: cherry-pick: Return to send page with different asset types (#28…
pedronfigueiredo Nov 11, 2024
d876ccb
fix(snaps): Patch `@metamask/snaps-utils` (#28377)
GuillaumeRx Nov 11, 2024
f042d84
fix (cherry-pick): get `supportedChains` to avoid blocking the confir…
vinistevam Nov 13, 2024
5e7e9c2
fix: fix network client ID used on the useGasFeeInputs hook (#28391) …
salimtb Nov 13, 2024
f0d2588
fix: ui customizations for redesigned transactions (#28443) (#28457)
cryptotavares Nov 14, 2024
b86383d
fix (cherry-pick): add simulation metrics when simulation UI is not v…
vinistevam Nov 14, 2024
495eb87
Merge remote-tracking branch 'origin/master' into resolve-conflicts-v…
hjetpoluru Nov 14, 2024
a428b7d
Fixed lint
hjetpoluru Nov 14, 2024
2ab2215
Merge pull request #28468 from MetaMask/resolve-conflicts-v12.7.0-master
danjm Nov 15, 2024
76d48fa
chore: V12.7.0 changelog (#28458)
benjisclowder Nov 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
75 changes: 28 additions & 47 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,15 +87,15 @@ aliases:
cat ${HOME}/project/.circleci/scripts/enable-vnc.sh >> ~/.bashrc
fi

# Check if MMI Optional tests should run
- &check-mmi-optional
name: Check if MMI Optional tests should run
# Check if MMI tests should run
- &check-mmi-trigger
name: Check if MMI tests should run
command: |
RUN_MMI_OPTIONAL=$(cat ./RUN_MMI_OPTIONAL)
if [[ "${RUN_MMI_OPTIONAL}" == "true" ]]; then
echo "Running MMI Optional tests"
source mmi_trigger.env
if [ "${run_mmi_tests}" == "true" ]; then
echo "Running MMI tests"
else
echo "Skipping MMI Optional tests"
echo "Skipping MMI tests"
circleci step halt
fi

Expand All @@ -114,7 +114,7 @@ workflows:
- trigger-beta-build:
requires:
- prep-deps
- check-pr-tag
- check-mmi-trigger
- prep-deps
- get-changed-files-with-git-diff:
filters:
Expand Down Expand Up @@ -179,7 +179,7 @@ workflows:
- prep-build-test-mmi-playwright:
requires:
- prep-deps
- check-pr-tag
- check-mmi-trigger
- prep-build-storybook:
requires:
- prep-deps
Expand Down Expand Up @@ -231,7 +231,7 @@ workflows:
requires:
- prep-build-test-mmi
- get-changed-files-with-git-diff
- test-e2e-mmi-playwright - OPTIONAL:
- test-e2e-mmi-playwright:
requires:
- prep-build-test-mmi-playwright
- test-e2e-chrome-rpc-mmi:
Expand Down Expand Up @@ -421,39 +421,6 @@ jobs:
name: Create GitHub Pull Request for version
command: .circleci/scripts/release-create-release-pr.sh

check-pr-tag:
docker:
- image: cimg/base:stable
steps:
- run:
name: Check for MMI Team Tag
command: |
#!/bin/bash

GH_LABEL=team-mmi
if [ -z "$CIRCLE_PULL_REQUESTS" ]; then
echo "Skipping tag check; this is not a PR."
echo "false" > ./RUN_MMI_OPTIONAL
exit 0
fi

echo $CIRCLE_PULL_REQUESTS | sed 's/,/\n/g'

# See if any associated PRs have matching label
HAS_MATCHING_PR=$(echo $CIRCLE_PULL_REQUESTS \
| sed -e 's#,#\n#g' -e 's#/github.com/#/api.github.com/repos/#g' -e 's#/pull/#/pulls/#g' \
| xargs -n1 curl -s \
| jq -s "map((.labels|map(select(.name==\"${GH_LABEL}\"))))|flatten|length > 0")

echo "${GH_LABEL} tag presence: ${HAS_MATCHING_PR}"

# assign the RUN_MMI_OPTIONAL variable
echo "${HAS_MATCHING_PR}" > ./RUN_MMI_OPTIONAL
- persist_to_workspace:
root: .
paths:
- RUN_MMI_OPTIONAL

prep-deps:
executor: node-browsers-medium
steps:
Expand Down Expand Up @@ -839,7 +806,7 @@ jobs:
- run: corepack enable
- attach_workspace:
at: .
- run: *check-mmi-optional
- run: *check-mmi-trigger
- run:
name: Build MMI extension for Playwright e2e
command: |
Expand All @@ -854,7 +821,6 @@ jobs:
- persist_to_workspace:
root: .
paths:
- RUN_MMI_OPTIONAL
- dist-test-mmi-playwright
- builds-test-mmi-playwright
- store_artifacts:
Expand Down Expand Up @@ -1306,15 +1272,15 @@ jobs:
- store_test_results:
path: test/test-results/e2e

test-e2e-mmi-playwright - OPTIONAL:
test-e2e-mmi-playwright:
executor: playwright
parallelism: 2
steps:
- run: *shallow-git-clone-and-enable-vnc
- run: corepack enable
- attach_workspace:
at: .
- run: *check-mmi-optional
- run: *check-mmi-trigger
- run:
name: Move test build to dist
command: mv ./dist-test-mmi-playwright ./dist
Expand Down Expand Up @@ -1743,3 +1709,18 @@ jobs:
- run:
name: All Tests Passed
command: echo 'whew - everything passed!'

check-mmi-trigger:
executor: node-browsers-medium
steps:
- checkout
- run:
name: Check for MMI Team Label or Reviewer
command: ./.circleci/scripts/check_mmi_trigger.sh
- store_artifacts:
path: mmi_trigger.env
destination: mmi_trigger.env
- persist_to_workspace:
root: .
paths:
- mmi_trigger.env
60 changes: 60 additions & 0 deletions .circleci/scripts/check_mmi_trigger.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#!/bin/bash
set -eo pipefail

# Ensure required environment variables are set
if [ -z "$CIRCLE_PULL_REQUEST" ] || [ -z "$GITHUB_TOKEN" ]; then
echo "This appears to be a fork or required environment variables are not set."
echo "Skipping MMI tests."
echo "run_mmi_tests=false" > mmi_trigger.env
exit 0
fi

# Extract PR number from the pull request URL
PR_NUMBER=$(echo "$CIRCLE_PULL_REQUEST" | awk -F'/' '{print $NF}')

# Define repository details
REPO_OWNER="$CIRCLE_PROJECT_USERNAME"
REPO_NAME=$(basename "$CIRCLE_REPOSITORY_URL" .git)

# Fetch PR details using GitHub API
PR_DETAILS=$(curl -s -H "Authorization: token $GITHUB_TOKEN" \
"https://api.github.com/repos/$REPO_OWNER/$REPO_NAME/pulls/$PR_NUMBER")

# Fetch submitted reviews
SUBMITTED_REVIEWS=$(curl -s -H "Authorization: token $GITHUB_TOKEN" \
"https://api.github.com/repos/$REPO_OWNER/$REPO_NAME/pulls/$PR_NUMBER/reviews")

# Check for label 'team-mmi'
LABEL_EXISTS=$(jq -r '.labels[]? | select(.name == "team-mmi") | length > 0' <<< "$PR_DETAILS")

# Check for individual reviewer 'mmi'
REVIEWER_REQUESTED=$(jq -r '.requested_reviewers[]? | select(.login == "mmi") | length > 0' <<< "$PR_DETAILS")

# Check for team reviewer 'mmi'
TEAM_REQUESTED=$(jq -r '.requested_teams[]? | select(.slug == "mmi") | length > 0' <<< "$PR_DETAILS")

# Check if 'mmi' submitted a review
REVIEWER_SUBMITTED=$(jq -r '.[]? | select(.user.login == "mmi") | length > 0' <<< "$SUBMITTED_REVIEWS")

# Determine which condition was met and trigger tests if needed
if [[ "$LABEL_EXISTS" == "true" || "$REVIEWER_REQUESTED" == "true" || "$TEAM_REQUESTED" == "true" || "$REVIEWER_SUBMITTED" == "true" ]]; then
echo "run_mmi_tests=true" > mmi_trigger.env

# Log exactly which condition was met
echo "Conditions met:"
if [[ "$LABEL_EXISTS" == "true" ]]; then
echo "- Label 'team-mmi' found."
fi
if [[ "$REVIEWER_REQUESTED" == "true" ]]; then
echo "- Reviewer 'mmi' requested."
fi
if [[ "$TEAM_REQUESTED" == "true" ]]; then
echo "- Team 'mmi' requested."
fi
if [[ "$REVIEWER_SUBMITTED" == "true" ]]; then
echo "- Reviewer 'mmi' submitted a review."
fi
else
echo "run_mmi_tests=false" > mmi_trigger.env
echo "Skipping MMI tests: Neither the 'team-mmi' label was found nor a reviewer from the 'MetaMask/mmi' team was assigned."
fi
2 changes: 2 additions & 0 deletions .depcheckrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,8 @@ ignores:
# trezor
- 'ts-mixer'
- '@testing-library/dom'
- 'mini-css-extract-plugin'
- 'webpack-cli'

# files depcheck should not parse
ignorePatterns:
Expand Down
7 changes: 6 additions & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ privacy-snapshot.json @MetaMask/extension-privacy-reviewers
.devcontainer/ @MetaMask/library-admins @HowardBraham @plasmacorral

# Confirmations team to own code for confirmations on UI.
ui/pages/confirmations @MetaMask/confirmations
app/scripts/lib/ppom @MetaMask/confirmations
app/scripts/lib/signature @MetaMask/confirmations
app/scripts/lib/transaction/decode @MetaMask/confirmations
app/scripts/lib/transaction/metrics.* @MetaMask/confirmations
app/scripts/lib/transaction/util.* @MetaMask/confirmations
ui/pages/confirmations @MetaMask/confirmations

# MMI team is responsible for code related with Institutioanl version of MetaMask
ui/pages/institutional @MetaMask/mmi
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,6 @@ html-report/

/app/images/branding
/changed-files

# UI Integration tests
test/integration/config/assets
4 changes: 4 additions & 0 deletions .metamaskrc.dist
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
; This variable is required
INFURA_PROJECT_ID=00000000000

; This variable is not required but it's necessary for the storybook
; to render stories that use onchain data.
INFURA_STORYBOOK_PROJECT_ID=

;PASSWORD=METAMASK PASSWORD
;SEGMENT_WRITE_KEY=
;BRIDGE_USE_DEV_APIS=
Expand Down
19 changes: 12 additions & 7 deletions .storybook/main.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
const path = require('path');
const { ProvidePlugin } = require('webpack');
const CopyWebpackPlugin = require('copy-webpack-plugin');
const dotenv = require('dotenv');
dotenv.config({ path: path.resolve(__dirname, '../.metamaskrc') });

module.exports = {
core: {
disableTelemetry: true,
Expand Down Expand Up @@ -29,6 +32,7 @@ module.exports = {
env: (config) => ({
...config,
ENABLE_CONFIRMATION_REDESIGN: true,
INFURA_PROJECT_ID: process.env.INFURA_STORYBOOK_PROJECT_ID || '',
}),
// Uses babel.config.js settings and prevents "Missing class properties transform" error
babel: async (options) => ({
Expand All @@ -48,10 +52,16 @@ module.exports = {
config.resolve.alias['../../../../../../store/actions'] = require.resolve(
'../ui/__mocks__/actions.js',
);
config.resolve.alias['../../../store/actions'] = require.resolve(
'../ui/__mocks__/actions.js',
);
// Import within controller-utils crashes storybook.
config.resolve.alias['@ethereumjs/util'] = require.resolve(
'../ui/__mocks__/ethereumjs-util.js',
);
config.resolve.alias['./useNftCollectionsMetadata'] = require.resolve(
'../ui/__mocks__/useNftCollectionsMetadata.js',
);
config.resolve.fallback = {
child_process: false,
constants: false,
Expand Down Expand Up @@ -86,7 +96,7 @@ module.exports = {
sourceMap: true,
implementation: require('sass-embedded'),
sassOptions: {
includePaths: ['ui/css/', 'node_modules/',],
includePaths: ['ui/css/', 'node_modules/'],
},
},
},
Expand All @@ -96,12 +106,7 @@ module.exports = {
new CopyWebpackPlugin({
patterns: [
{
from: path.join(
'ui',
'css',
'utilities',
'fonts/',
),
from: path.join('ui', 'css', 'utilities', 'fonts/'),
to: 'fonts',
},
{
Expand Down
1 change: 1 addition & 0 deletions .storybook/test-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -1596,6 +1596,7 @@ const state = {
},
},
},
openSeaEnabled: true,
},
appState: {
shouldClose: false,
Expand Down
12 changes: 0 additions & 12 deletions .yarn/patches/@babel-core-npm-7.23.2-b93f586907.patch

This file was deleted.

12 changes: 12 additions & 0 deletions .yarn/patches/@babel-core-npm-7.25.9-4ae3bff7f3.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
diff --git a/lib/index.js b/lib/index.js
index 55b58e10eef589ff80ae33ebd1f1efe488b01153..e919c190d33ab9563f1364667fb4f5894bb6435d 100644
--- a/lib/index.js
+++ b/lib/index.js
@@ -211,7 +211,6 @@ var _transform = require("./transform.js");
var _transformFile = require("./transform-file.js");
var _transformAst = require("./transform-ast.js");
var _parse = require("./parse.js");
-var thisFile = require("./index.js");
;
const version = exports.version = "7.25.9";
const resolvePlugin = (name, dirname) => resolvers.resolvePlugin(name, dirname, false).filepath;
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
diff --git a/helpers/construct.js b/helpers/construct.js
index 771e1d7952e80f11619424fbabb3744b959ffa49..5fe152bc1129bd8c8b7bb217ca1972ac4e089051 100644
index aee8e70448824f509d6605e2dfa4455167442f21..00a69eba8d4c15a1f9aa318a50abb96c2ec447d9 100644
--- a/helpers/construct.js
+++ b/helpers/construct.js
@@ -1,10 +1,21 @@
@@ -1,10 +1,22 @@
var isNativeReflectConstruct = require("./isNativeReflectConstruct.js");
-var setPrototypeOf = require("./setPrototypeOf.js");
-var isNativeReflectConstruct = require("./isNativeReflectConstruct.js");
-function _construct(t, e, r) {
- if (isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
- var o = [null];
Expand Down
26 changes: 26 additions & 0 deletions .yarn/patches/@metamask-snaps-utils-npm-8.4.1-90481bac4b.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
diff --git a/dist/json-rpc.cjs b/dist/json-rpc.cjs
index 6061f7b8b42f0521b0718d616e5a12a1a7520068..11d0233a7bd4b610a99da6a3d105840e88e108e6 100644
--- a/dist/json-rpc.cjs
+++ b/dist/json-rpc.cjs
@@ -68,7 +68,7 @@ function createOriginRegExp(matcher) {
const escaped = matcher.replace(/[.*+?^${}()|[\]\\]/gu, '\\$&');
// Support wildcards
const regex = escaped.replace(/\\\*/gu, '.*');
- return RegExp(`${regex}$`, 'u');
+ return RegExp(`^${regex}$`, 'u');
}
/**
* Check whether an origin is allowed or not using a matcher string.
diff --git a/dist/json-rpc.mjs b/dist/json-rpc.mjs
index bfa1c2dbbed46a2221ef708afdb97b15db84bc1b..81bc2150cf5d6a9bdabe8d43b04352b299bc1c4d 100644
--- a/dist/json-rpc.mjs
+++ b/dist/json-rpc.mjs
@@ -63,7 +63,7 @@ function createOriginRegExp(matcher) {
const escaped = matcher.replace(/[.*+?^${}()|[\]\\]/gu, '\\$&');
// Support wildcards
const regex = escaped.replace(/\\\*/gu, '.*');
- return RegExp(`${regex}$`, 'u');
+ return RegExp(`^${regex}$`, 'u');
}
/**
* Check whether an origin is allowed or not using a matcher string.
Loading
Loading