Skip to content

Commit f43be4a

Browse files
authored
feat: add new modal ui package with cleaned styles and code. (#1333)
* wip * fix: implementing new designs for modal package v2 * fix: only include used assets * fix: remove test for screenshots * fix: changelog * fix: no need to add externals plugin to externals that will not work * fix: correct layout translation texts * fix: new fox design and resize svg * fix: replace corner colors for more vivid * fix: typo
1 parent 5681cdb commit f43be4a

28 files changed

+1345
-0
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"workspaces": [
1010
"packages/sdk-socket-server-next",
1111
"packages/sdk-install-modal-web",
12+
"packages/sdk-multichain-ui",
1213
"packages/sdk-communication-layer",
1314
"packages/sdk",
1415
"packages/sdk-react",

packages/sdk-multichain-ui/.change

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.30.2
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
/** @type {import('eslint').Linter.Config} */
2+
module.exports = {
3+
root: true,
4+
5+
// extends: ['@metamask/eslint-config'],
6+
// TODO check if we can integrate to @metamask/eslint-config
7+
extends: ['eslint:recommended'],
8+
9+
parser: '@typescript-eslint/parser',
10+
11+
ignorePatterns: [
12+
'.eslintrc.js',
13+
'dist',
14+
'rollup.config.js',
15+
'**/coverage/**',
16+
'postcss.config.js',
17+
'jest-preload.js',
18+
'loader',
19+
'.stencil',
20+
'stencil.config.ts',
21+
],
22+
23+
parserOptions: {
24+
project: true,
25+
// sourceType: 'module',
26+
ecmaFeatures: {
27+
jsx: true,
28+
},
29+
// ecmaVersion: 2018,
30+
tsconfigRootDir: __dirname,
31+
},
32+
33+
plugins: ['@typescript-eslint', 'react'],
34+
35+
env: {
36+
browser: true,
37+
node: true,
38+
'shared-node-browser': true,
39+
},
40+
41+
overrides: [
42+
{
43+
files: ['**/*.ts', '**/*.tsx'],
44+
rules: {
45+
'no-restricted-syntax': 'off',
46+
'no-unused-vars': 'off',
47+
'@typescript-eslint/no-unused-vars': ['error'],
48+
'@typescript-eslint/consistent-type-exports': [
49+
'error',
50+
{
51+
fixMixedExportsWithInlineTypeSpecifier: true,
52+
},
53+
],
54+
'@typescript-eslint/consistent-type-definitions': [
55+
'error',
56+
'interface',
57+
],
58+
'import/no-named-as-default': 0,
59+
},
60+
},
61+
],
62+
};
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
packages/*/yarn.lock
2+
packages/*/package-lock.json
3+
4+
# Logs
5+
logs
6+
*.log
7+
8+
# Runtime data
9+
pids
10+
*.pid
11+
*.seed
12+
13+
# Directory for instrumented libs generated by jscoverage/JSCover
14+
lib-cov
15+
16+
# Coverage directory used by tools like istanbul
17+
coverage
18+
junit.xml
19+
20+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
21+
.grunt
22+
23+
# node-waf configuration
24+
.lock-wscript
25+
26+
# Compiled binary addons (http://nodejs.org/api/addons.html)
27+
build/Release
28+
29+
# Dependency directory
30+
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
31+
node_modules
32+
examples/biz-website/public/
33+
examples/blog/public/
34+
*.un~
35+
dist
36+
bin/published.js
37+
38+
39+
test/**/public
40+
.gatsby-context.js
41+
.DS_Store
42+
node_modules/
43+
.cache/
44+
.netlify
45+
46+
# IDE specific
47+
.idea/
48+
.vscode/
49+
*.sw*
50+
51+
# misc
52+
.serverless/
53+
54+
# lock files
55+
yarn.lock
56+
package-lock.json
57+
58+
# == Stencil ==
59+
dist/
60+
www/
61+
loader/
62+
63+
*~
64+
*.sw[mnpcod]
65+
*.log
66+
*.lock
67+
*.tmp
68+
*.tmp.*
69+
log.txt
70+
*.sublime-project
71+
*.sublime-workspace
72+
73+
.stencil/
74+
.idea/
75+
.vscode/
76+
.sass-cache/
77+
.versions/
78+
node_modules/
79+
$RECYCLE.BIN/
80+
81+
.DS_Store
82+
Thumbs.db
83+
UserInterfaceState.xcuserstate
84+
.env
85+
# ====
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
// All of these are defaults except singleQuote, but we specify them
2+
// for explicitness
3+
module.exports = {
4+
quoteProps: 'as-needed',
5+
singleQuote: true,
6+
tabWidth: 2,
7+
trailingComma: 'all',
8+
};
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[
2+
{
3+
"path": "dist/components/*.js",
4+
"limit": "30 KB"
5+
}
6+
]
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Changelog
2+
All notable changes to this project will be documented in this file.
3+
4+
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6+
7+
## [Unreleased]
8+
9+
[Unreleased]: https://github.com/MetaMask/metamask-sdk/

packages/sdk-multichain-ui/LICENSE

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
Copyright ConsenSys Software Inc. 2022. All rights reserved.
2+
3+
You acknowledge and agree that ConsenSys Software Inc. (“ConsenSys”) (or ConsenSys’s licensors) own all legal right, title and interest in and to the work, software, application, source code, documentation and any other documents in this repository (collectively, the “Program”), including any intellectual property rights which subsist in the Program (whether those rights happen to be registered or not, and wherever in the world those rights may exist), whether in source code or any other form.
4+
5+
Subject to the limited license below, you may not (and you may not permit anyone else to) distribute, publish, copy, modify, merge, combine with another program, create derivative works of, reverse engineer, decompile or otherwise attempt to extract the source code of, the Program or any part thereof, except that you may contribute to this repository.
6+
7+
You are granted a non-exclusive, non-transferable, non-sublicensable license to distribute, publish, copy, modify, merge, combine with another program or create derivative works of the Program (such resulting program, collectively, the “Resulting Program”) solely for Non-Commercial Use as long as you:
8+
1. give prominent notice (“Notice”) with each copy of the Resulting Program that the Program is used in the Resulting Program and that the Program is the copyright of ConsenSys; and
9+
2. subject the Resulting Program and any distribution, publication, copy, modification, merger therewith, combination with another program or derivative works thereof to the same Notice requirement and Non-Commercial Use restriction set forth herein.
10+
11+
“Non-Commercial Use” means each use as described in clauses (1)-(3) below, as reasonably determined by ConsenSys in its sole discretion:
12+
1. personal use for research, personal study, private entertainment, hobby projects or amateur pursuits, in each case without any anticipated commercial application;
13+
2. use by any charitable organization, educational institution, public research organization, public safety or health organization, environmental protection organization or government institution; or
14+
3. the number of monthly active users of the Resulting Program across all versions thereof and platforms globally do not exceed 10,000 at any time.
15+
16+
You will not use any trade mark, service mark, trade name, logo of ConsenSys or any other company or organization in a way that is likely or intended to cause confusion about the owner or authorized user of such marks, names or logos.
17+
18+
If you have any questions, comments or interest in pursuing any other use cases, please reach out to us at [email protected].
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# sdk-install-modal-web
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
global.console = {
2+
...console,
3+
log: jest.fn(),
4+
debug: jest.fn(),
5+
info: jest.fn(),
6+
warn: jest.fn(),
7+
error: jest.fn(),
8+
};

0 commit comments

Comments
 (0)