Skip to content

Commit

Permalink
v1.17.4
Browse files Browse the repository at this point in the history
  • Loading branch information
mytonwalletorg committed Dec 25, 2023
1 parent c684f72 commit d1f8edb
Show file tree
Hide file tree
Showing 54 changed files with 624 additions and 542 deletions.
1 change: 1 addition & 0 deletions changelogs/1.17.4.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Some hotfixes
21 changes: 0 additions & 21 deletions deploy/update_version.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,22 @@ public class BottomSheetPlugin: CAPPlugin, FloatingPanelControllerDelegate {
fpc.track(scrollView: capVc!.webView!.scrollView)
// Fix redunant scroll offsets
fpc.contentInsetAdjustmentBehavior = .never
// Fix warning "Unable to simultaneously satisfy constraints."
// https://github.com/scenee/FloatingPanel/issues/557
fpc.invalidateLayout()

setupScrollReducers()

let topVc = bridge!.viewController!
topVc.view.clipsToBounds = true
topVc.present(fpc, animated: false) {
// Check if the view controller is already being presented
if fpc.presentingViewController != nil {
call.resolve()
} else {
// Present the view controller modally
topVc.present(fpc, animated: false) {
call.resolve()
}
}
}
}
Expand Down
157 changes: 7 additions & 150 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mytonwallet",
"version": "1.17.2",
"version": "1.17.4",
"description": "The most feature-rich web wallet and browser extension for TON – with support of multi-accounts, tokens (jettons), NFT, TON DNS, TON Sites, TON Proxy, and TON Magic.",
"main": "index.js",
"scripts": {
Expand Down Expand Up @@ -38,8 +38,7 @@
"test:record": "playwright codegen localhost:1235",
"prepare": "husky install",
"statoscope:validate-diff": "statoscope validate --input input.json --reference reference.json",
"update_version": "node ./deploy/update_version.js",
"postversion": "rm -rf .patch-version && npm run update_version"
"postversion": "echo $(node -p \"require('./package.json').version\") > public/version.txt && git commit --amend --no-verify --no-edit public/version.txt"
},
"engines": {
"node": "^18",
Expand Down Expand Up @@ -192,7 +191,7 @@
"ton": "^13.4.1",
"ton-core": "^0.49.0",
"tonapi-sdk-js": "^0.27.0",
"tonweb": "github:troman29/tonweb#3d5e2f3",
"tonweb": "github:troman29/tonweb#8376c1c4eb003412d873dee6600cb9ea91cf6163",
"tonweb-mnemonic": "^1.0.1",
"tweetnacl": "^1.0.3",
"v8-compile-cache": "^2.3.0",
Expand Down
2 changes: 1 addition & 1 deletion public/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.17.2
1.17.4
2 changes: 1 addition & 1 deletion src/api/blockchains/ton/util/CustomHttpProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class CustomHttpProvider extends TonWeb.HttpProvider {
}
const body = JSON.stringify(request);

let message = 'Unknown error';
let message = 'Unknown error.';
let statusCode: number | undefined;

for (let i = 1; i <= ATTEMPTS; i++) {
Expand Down
2 changes: 1 addition & 1 deletion src/api/tonConnect/errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class ManifestContentError extends TonConnectError {
}

export class UnknownError extends TonConnectError {
constructor(message = 'Unknown error') {
constructor(message = 'Unknown error.') {
super(message, 0);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Dialogs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const Dialogs: FC<StateProps> = ({ dialogs }) => {
const [isModalOpen, openModal, closeModal] = useFlag();

const message = dialogs[dialogs.length - 1];
const title = lang('Something went wrong');
const title = lang('Something went wrong.');

useEffect(() => {
if (IS_DELEGATING_BOTTOM_SHEET || IS_DELEGATED_BOTTOM_SHEET) {
Expand Down
21 changes: 15 additions & 6 deletions src/components/auth/Auth.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@
}
}

.titleSmallMargin {
margin-bottom: 0.25rem;
}

.title, .appName {
font-size: 1.6875rem;
font-weight: 800;
Expand Down Expand Up @@ -428,6 +432,11 @@
}
}

.btnHalfWidth {
width: 100%;
max-width: calc((100% - 1rem) / 2) !important;
}

.modalDialog {
height: 35rem;

Expand Down Expand Up @@ -538,16 +547,16 @@
.biometricsError {
align-self: center;

margin-top: 0.25rem;
padding: 0.375rem 0.5rem;
padding: 0.5rem 0.75rem;

font-size: 1.0625rem;
font-weight: 700;
line-height: 1;
font-size: 0.9375rem;
font-weight: 600;
line-height: 1.3125rem;
color: var(--color-transaction-red-text);
text-align: center;

background-color: var(--color-transaction-red-background);
border-radius: var(--border-radius-tiny);
border-radius: var(--border-radius-buttons);
}

.stepTransition {
Expand Down
11 changes: 7 additions & 4 deletions src/components/auth/Auth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import useLastCallback from '../../hooks/useLastCallback';
import SettingsAbout from '../settings/SettingsAbout';
import Transition from '../ui/Transition';
import AuthBackupWalletModal from './AuthBackupWalletModal';
import AuthConfirmBiometrics from './AuthConfirmBiometrics';
import AuthConfirmPin from './AuthConfirmPin';
import AuthCreateBackup from './AuthCreateBackup';
import AuthCreateBiometrics from './AuthCreateBiometrics';
Expand Down Expand Up @@ -76,11 +77,12 @@ const Auth = ({
case AuthState.confirmPin:
return <AuthConfirmPin isActive={isActive} method="createAccount" />;
case AuthState.createBiometrics:
return <AuthCreateBiometrics isActive={isActive} method="createAccount" />;
case AuthState.confirmBiometrics:
return (
<AuthCreateBiometrics
<AuthConfirmBiometrics
isActive={isActive}
isLoading={isLoading}
method="createAccount"
error={error}
biometricsStep={biometricsStep}
/>
Expand Down Expand Up @@ -118,12 +120,13 @@ const Auth = ({
case AuthState.importWalletCreatePassword:
return <AuthCreatePassword isActive={isActive} isLoading={isLoading} method={method} />;
case AuthState.importWalletCreateBiometrics:
return <AuthCreateBiometrics isActive={isActive} method={method} />;
case AuthState.importWalletConfirmBiometrics:
return (
<AuthCreateBiometrics
<AuthConfirmBiometrics
isActive={isActive}
isLoading={isLoading}
error={error}
method={method}
biometricsStep={biometricsStep}
/>
);
Expand Down
Loading

0 comments on commit d1f8edb

Please sign in to comment.