Skip to content

Commit e7042ab

Browse files
authored
Merge pull request #4987 from leather-wallet/release/fix-stamps
Release/fix stamps
2 parents e7d4899 + 384c947 commit e7042ab

File tree

366 files changed

+6727
-4364
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

366 files changed

+6727
-4364
lines changed

.dependency-cruiser.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/** @type {import('dependency-cruiser').IConfiguration} */
2-
module.exports = {
2+
export default {
33
extends: 'dependency-cruiser/configs/recommended',
44

55
forbidden: [
@@ -29,6 +29,8 @@ module.exports = {
2929
severity: 'error',
3030
from: {},
3131
to: {
32+
// Types only package falsely triggers this rule
33+
pathNot: ['@octokit'],
3234
// Depcruiser fails on some legitimate type imports, so allowing them there
3335
dependencyTypesNot: ['type-only'],
3436
couldNotResolve: true,
@@ -37,7 +39,10 @@ module.exports = {
3739
{
3840
name: 'no-orphans',
3941
severity: 'error',
40-
from: { orphan: true, pathNot: ['^src/shared/models/global-types.ts'] },
42+
from: {
43+
orphan: true,
44+
pathNot: ['^src/shared/models/global-types.ts', '^src/app/ui/icons/docs/icons-list.ts'],
45+
},
4146
to: {},
4247
},
4348
{
@@ -66,7 +71,7 @@ module.exports = {
6671
{
6772
name: 'component-cannot-import-pages-or-features',
6873
severity: 'error',
69-
from: { path: 'src/app/components*' },
74+
from: { path: ['src/app/components*', 'src/app/ui'] },
7075
to: { path: ['^src/app/pages*', '^src/app/features/*'] },
7176
},
7277
{

.eslintrc.js renamed to .eslintrc.cjs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,5 +126,9 @@ module.exports = {
126126
],
127127
},
128128
},
129+
{
130+
files: ['*.mdx'],
131+
extends: 'plugin:mdx/recommended',
132+
},
129133
],
130134
};

.github/actions/check-version-lock/check-version-lock.js

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
const core = require('@actions/core');
2-
const appPackage = require('../../../package.json');
1+
import core from '@actions/core';
2+
3+
import appPackage from '../../../package.json' assert { type: 'json' };
34

45
const illegalVersionSymbol = ['~', '^', '>', '<'];
56

@@ -15,8 +16,8 @@ function containsIllegalChar(input) {
1516
const allPackages = [...Object.entries(dependencies), ...Object.entries(devDependencies)];
1617

1718
const illegalPackages = allPackages
18-
.filter(([package, version]) => containsIllegalChar(version))
19-
.map(([package, version]) => ({ package, version }));
19+
.filter(([pkg, version]) => containsIllegalChar(version))
20+
.map(([pkg, version]) => ({ package: pkg, version }));
2021

2122
if (illegalPackages.length > 0) {
2223
core.setFailed(`

.prettierrc.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
const defaultConfig = require('@leather-wallet/prettier-config');
1+
import config from '@leather-wallet/prettier-config';
22

3-
module.exports = {
4-
...defaultConfig,
5-
};
3+
export default config;

.storybook/main.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ const config: StorybookConfig = {
77
'@storybook/addon-essentials',
88
'@storybook/addon-onboarding',
99
'@storybook/addon-interactions',
10+
{
11+
name: '@storybook/addon-docs',
12+
options: {
13+
csfPluginOptions: null,
14+
mdxPluginOptions: {},
15+
transcludeMarkdown: true,
16+
},
17+
},
1018
{
1119
name: '@storybook/addon-styling-webpack',
1220
options: {

.vscode/settings.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@
22
"prettier.documentSelectors": ["src/**/*.{ts,tsx}", "*.{js,json}"],
33
"vitest.include": ["src/**/*.spec.ts"],
44
"githubPullRequests.ignoredPullRequestBranches": ["dev"],
5-
"typescript.preferences.preferTypeOnlyAutoImports": true
5+
"typescript.preferences.preferTypeOnlyAutoImports": true,
6+
"files.associations": {
7+
"*.mdx": "markdown"
8+
}
69
}

package.json

Lines changed: 58 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@
66
"author": {
77
"name": "Leather Wallet LLC"
88
},
9+
"type": "module",
910
"scripts": {
1011
"dev": "concurrently --raw \"node webpack/dev-server.js\" \"redux-devtools --hostname=localhost --port=8000\"",
11-
"dev:test-app": "webpack serve --config test-app/webpack/webpack.config.dev.js",
12+
"dev:test-app": "webpack serve --config test-app/webpack/webpack.config.dev.cjs",
1213
"build": "webpack --config webpack/webpack.config.prod.js",
1314
"build:analyze": "cross-env ANALYZE=true webpack --config webpack/webpack.config.prod.js",
1415
"build:dev": "cross-env WALLET_ENVIRONMENT=development webpack --config webpack/webpack.config.dev.js",
1516
"build:ext:test": "cross-env WALLET_ENVIRONMENT=testing webpack --config webpack/webpack.config.prod.js",
1617
"build:ext:test:watch": "cross-env WALLET_ENVIRONMENT=testing webpack --config webpack/webpack.config.prod.js --watch",
17-
"build:test-app": "cross-env WALLET_ENVIRONMENT=production webpack --config ./test-app/webpack/webpack.config.prod.js",
18+
"build:test-app": "cross-env WALLET_ENVIRONMENT=production webpack --config ./test-app/webpack/webpack.config.prod.cjs",
1819
"build:test": "concurrently 'yarn build:ext:test' 'yarn build:test-app'",
1920
"build:test-api": "concurrently 'yarn build:ext:test' 'yarn build:test-app'",
2021
"build:test:watch": "cross-env WALLET_ENVIRONMENT=testing webpack --config webpack/webpack.config.prod.js",
@@ -26,7 +27,7 @@
2627
"lint:fix": "eslint \"src/**/*.{ts,tsx}\" --fix",
2728
"lint:prettier": "prettier --check \"{src,tests}/**/*.{ts,tsx}\" \"*.{js,json}\"",
2829
"lint:prettier:fix": "prettier --write \"{src,tests}/**/*.{ts,tsx}\" *.js",
29-
"lint:unused-exports": "ts-unused-exports tsconfig.json --ignoreFiles=leather-styles --ignoreFiles=tests --excludePathsFromReport=.*stories",
30+
"lint:unused-exports": "ts-unused-exports tsconfig.json --ignoreFiles=icons --ignoreFiles=leather-styles --ignoreFiles=tests --excludePathsFromReport=.*stories",
3031
"lint:remote-wallet-config": "npx ajv-cli validate -s config/wallet-config.schema.json -d config/wallet-config.json",
3132
"lint:deps": "dependency-cruise --config .dependency-cruiser.js \"src/**/*.{ts,tsx}\"",
3233
"prod:ext": "yarn build",
@@ -131,7 +132,7 @@
131132
"@dlc-link/dlc-tools": "1.1.1",
132133
"@fungible-systems/zone-file": "2.0.0",
133134
"@hirosystems/token-metadata-api-client": "1.2.0",
134-
"@leather-wallet/tokens": "0.0.6",
135+
"@leather-wallet/tokens": "0.0.8",
135136
"@ledgerhq/hw-transport-webusb": "6.27.19",
136137
"@noble/hashes": "1.3.2",
137138
"@noble/secp256k1": "2.0.0",
@@ -164,21 +165,21 @@
164165
"@stacks/transactions": "6.9.0",
165166
"@stacks/wallet-sdk": "6.9.0",
166167
"@stitches/react": "1.2.8",
167-
"@storybook/addon-styling-webpack": "0.0.5",
168+
"@storybook/addon-styling-webpack": "0.0.6",
168169
"@styled-system/theme-get": "5.1.2",
169170
"@tanstack/query-sync-storage-persister": "4.35.7",
170171
"@tanstack/react-query": "4.35.7",
171172
"@tanstack/react-query-devtools": "4.35.7",
172173
"@tanstack/react-query-persist-client": "4.35.7",
173174
"@types/lodash.uniqby": "4.7.7",
174-
"@typescript-eslint/eslint-plugin": "6.7.4",
175+
"@typescript-eslint/eslint-plugin": "7.0.2",
175176
"@vkontakte/vk-qr": "2.0.13",
176177
"@zondax/ledger-stacks": "1.0.4",
177-
"alex-sdk": "0.1.23",
178+
"alex-sdk": "0.1.24",
178179
"are-passive-events-supported": "1.1.1",
179180
"argon2-browser": "1.18.0",
180181
"assert": "2.0.0",
181-
"axios": "1.6.0",
182+
"axios": "1.6.7",
182183
"base64url": "3.0.1",
183184
"bignumber.js": "9.1.2",
184185
"bitcoin-address-validation": "2.2.1",
@@ -205,12 +206,12 @@
205206
"micro-packed": "0.3.2",
206207
"object-hash": "3.0.0",
207208
"observable-hooks": "4.2.3",
208-
"pino": "8.17.2",
209-
"postcss-preset-env": "9.3.0",
210-
"prism-react-renderer": "2.2.0",
209+
"pino": "8.19.0",
210+
"postcss-preset-env": "9.4.0",
211+
"prism-react-renderer": "2.3.1",
211212
"prismjs": "1.29.0",
212213
"promise-memoize": "1.2.1",
213-
"punycode": "2.3.0",
214+
"punycode": "2.3.1",
214215
"react": "18.2.0",
215216
"react-animate-height": "3.1.1",
216217
"react-async-hook": "4.0.0",
@@ -219,9 +220,9 @@
219220
"react-head": "3.4.2",
220221
"react-hot-toast": "2.4.1",
221222
"react-intersection-observer": "9.5.2",
222-
"react-lottie": "1.2.3",
223+
"react-lottie": "1.2.4",
223224
"react-redux": "8.1.3",
224-
"react-router-dom": "6.21.1",
225+
"react-router-dom": "6.22.1",
225226
"react-virtuoso": "4.6.0",
226227
"redux-persist": "6.0.0",
227228
"rxjs": "7.8.1",
@@ -234,15 +235,16 @@
234235
"valid-url": "1.0.9",
235236
"varuint-bitcoin": "1.1.2",
236237
"webextension-polyfill": "0.10.0",
237-
"yup": "1.3.2",
238+
"yup": "1.3.3",
238239
"zxcvbn": "4.4.2"
239240
},
240241
"devDependencies": {
241242
"@actions/core": "1.10.1",
242243
"@btckit/types": "0.0.19",
243244
"@leather-wallet/prettier-config": "0.0.1",
244245
"@ls-lint/ls-lint": "2.2.2",
245-
"@pandacss/dev": "0.26.2",
246+
"@mdx-js/loader": "3.0.0",
247+
"@pandacss/dev": "0.32.0",
246248
"@playwright/test": "1.40.1",
247249
"@pmmmwh/react-refresh-webpack-plugin": "0.5.11",
248250
"@redux-devtools/cli": "4.0.0",
@@ -251,96 +253,97 @@
251253
"@sentry/webpack-plugin": "2.10.2",
252254
"@stacks/connect-react": "22.2.0",
253255
"@stacks/stacks-blockchain-api-types": "6.3.4",
254-
"@storybook/addon-essentials": "7.6.10",
255-
"@storybook/addon-interactions": "7.6.10",
256-
"@storybook/addon-links": "7.6.10",
257-
"@storybook/addon-onboarding": "1.0.10",
258-
"@storybook/blocks": "7.6.10",
259-
"@storybook/react": "7.6.10",
260-
"@storybook/react-webpack5": "7.6.10",
261-
"@storybook/test": "7.6.10",
262-
"@types/argon2-browser": "1.18.2",
263-
"@types/chroma-js": "2.4.1",
264-
"@types/chrome": "0.0.246",
265-
"@types/dompurify": "3.0.3",
266-
"@types/download": "8.0.2",
267-
"@types/html-webpack-plugin": "3.2.7",
256+
"@storybook/addon-docs": "7.6.17",
257+
"@storybook/addon-essentials": "7.6.17",
258+
"@storybook/addon-interactions": "7.6.17",
259+
"@storybook/addon-links": "7.6.17",
260+
"@storybook/addon-onboarding": "1.0.11",
261+
"@storybook/blocks": "7.6.17",
262+
"@storybook/react": "7.6.17",
263+
"@storybook/react-webpack5": "7.6.17",
264+
"@storybook/test": "7.6.17",
265+
"@types/argon2-browser": "1.18.4",
266+
"@types/chrome": "0.0.260",
267+
"@types/dompurify": "3.0.5",
268+
"@types/download": "8.0.5",
269+
"@types/html-webpack-plugin": "3.2.9",
268270
"@types/jsdom": "21.1.3",
269271
"@types/lodash.get": "4.4.7",
270-
"@types/node": "20.8.2",
271-
"@types/object-hash": "3.0.4",
272-
"@types/prismjs": "1.26.1",
272+
"@types/node": "20.11.19",
273+
"@types/prismjs": "1.26.3",
273274
"@types/promise-memoize": "1.2.4",
274-
"@types/punycode": "2.1.3",
275+
"@types/punycode": "2.1.4",
275276
"@types/qrcode.react": "1.0.5",
276-
"@types/react": "18.2.47",
277-
"@types/react-dom": "18.2.18",
278-
"@types/react-lottie": "1.2.7",
277+
"@types/react": "18.2.57",
278+
"@types/react-dom": "18.2.19",
279+
"@types/react-lottie": "1.2.10",
279280
"@types/react-router-dom": "5.3.3",
280281
"@types/remote-redux-devtools": "0.5.8",
281282
"@types/valid-url": "1.0.7",
282283
"@types/webextension-polyfill": "0.10.4",
283284
"@types/webpack": "5.28.5",
284285
"@types/zxcvbn": "4.4.4",
285-
"@typescript-eslint/parser": "6.7.4",
286-
"@vitest/coverage-istanbul": "1.1.3",
286+
"@typescript-eslint/parser": "7.0.2",
287+
"@vitest/coverage-istanbul": "1.3.1",
287288
"audit-ci": "6.6.1",
288289
"base64-loader": "1.0.0",
289290
"bip32": "4.0.0",
290291
"blns": "2.0.4",
291-
"browserslist": "4.22.2",
292-
"chromatic": "10.2.0",
292+
"browserslist": "4.23.0",
293+
"chromatic": "10.9.6",
293294
"chrome-webstore-upload-cli": "2.2.2",
294295
"clean-webpack-plugin": "4.0.0",
295-
"concurrently": "8.0.1",
296+
"concurrently": "8.2.2",
296297
"conventional-changelog-conventionalcommits": "7.0.2",
297-
"copy-webpack-plugin": "11.0.0",
298+
"copy-webpack-plugin": "12.0.2",
298299
"cross-env": "7.0.3",
299300
"crypto-browserify": "3.12.0",
300301
"deepmerge": "4.3.1",
301-
"dependency-cruiser": "14.1.1",
302+
"dependency-cruiser": "16.2.1",
302303
"dotenv-webpack": "8.0.1",
303-
"esbuild": "0.19.11",
304-
"esbuild-loader": "4.0.2",
304+
"esbuild": "0.20.1",
305+
"esbuild-loader": "4.0.3",
305306
"eslint-plugin-deprecation": "2.0.0",
307+
"eslint-plugin-mdx": "3.1.5",
306308
"eslint-plugin-react": "7.33.2",
307309
"eslint-plugin-react-hooks": "4.6.0",
308-
"eslint-plugin-storybook": "0.6.15",
310+
"eslint-plugin-storybook": "0.8.0",
309311
"file-loader": "6.2.0",
310312
"generate-json-webpack-plugin": "2.0.0",
311313
"html-webpack-plugin": "5.6.0",
312314
"jsdom": "22.1.0",
313-
"postcss": "8.4.33",
314-
"postcss-loader": "7.3.4",
315-
"prettier": "3.0.3",
315+
"postcss": "8.4.35",
316+
"postcss-loader": "8.1.0",
317+
"prettier": "3.2.5",
316318
"process": "0.11.10",
317319
"progress-bar-webpack-plugin": "2.1.0",
318320
"react-dev-utils": "12.0.1",
319321
"react-refresh": "0.14.0",
320322
"schema-inspector": "2.0.2",
321323
"speed-measure-webpack-plugin": "1.5.0",
322-
"storybook": "7.6.12",
324+
"storybook": "7.6.17",
323325
"stream-browserify": "3.0.0",
324326
"svg-url-loader": "8.0.0",
325327
"ts-node": "10.9.2",
326328
"ts-unused-exports": "10.0.1",
327329
"tsconfig-paths-webpack-plugin": "4.1.0",
328330
"typescript": "5.3.3",
329-
"vitest": "1.1.3",
331+
"vitest": "1.3.1",
330332
"vm-browserify": "1.1.2",
331333
"web-ext": "7.8.0",
332334
"web-ext-submit": "7.8.0",
333-
"webpack": "5.89.0",
335+
"webpack": "5.90.3",
334336
"webpack-bundle-analyzer": "4.10.1",
335337
"webpack-cli": "5.1.4",
336338
"webpack-dev-server": "4.15.1",
337-
"webpack-hot-middleware": "2.26.0",
339+
"webpack-hot-middleware": "2.26.1",
338340
"webpack-shell-plugin": "0.5.0"
339341
},
340342
"resolutions": {
341343
"nanoid": "3.3.4",
342344
"socket.io-parser": "4.2.4",
343-
"**/**/bn.js": "5.2.1"
345+
"**/**/bn.js": "5.2.1",
346+
"wrap-ansi": "7.0.0"
344347
},
345348
"keywords": [
346349
"blockstack",

playwright.config.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import { defineConfig, devices } from '@playwright/test';
22

3-
console.log('Branch: ', process.env.BRANCH_NAME);
4-
53
/**
64
* See https://playwright.dev/docs/test-configuration
75
*/

public/assets/base.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,11 @@
4444
font-weight: 400;
4545
font-style: normal;
4646
}
47+
48+
#splash-screen {
49+
position: absolute;
50+
top: 0;
51+
left: 0;
52+
width: 100%;
53+
height: 100%;
54+
}

public/assets/splash-screen.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
var isDark = window.matchMedia('(prefers-color-scheme: dark)').matches;
2+
var splashScreen = document.getElementById('splash-screen');
3+
4+
// set ink.background-secondary
5+
if (isDark) {
6+
// background-secondary (_dark)
7+
splashScreen.style.backgroundColor = '#12100F';
8+
} else {
9+
// background-secondary (base)
10+
splashScreen.style.backgroundColor = '#F5F1ED';
11+
}

public/html/index.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
/>
3333
</head>
3434
<body>
35+
<div id="splash-screen"></div>
3536
<div id="app"></div>
37+
<script src="/assets/splash-screen.js"></script>
3638
<script src="browser-polyfill.js"></script>
3739
</body>
3840
</html>

public/html/popup.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
<link href="/assets/base.css" rel="stylesheet" />
77
</head>
88
<body>
9+
<div id="splash-screen"></div>
910
<div id="app"></div>
11+
<script src="/assets/splash-screen.js"></script>
1012
<script src="browser-polyfill.js"></script>
1113
</body>
1214
</html>

0 commit comments

Comments
 (0)