diff --git a/package.json b/package.json index 995f5ec..2a2cf2b 100644 --- a/package.json +++ b/package.json @@ -19,8 +19,8 @@ }, "dependencies": { "@solidjs/router": "^0.13.3", - "@tma.js/sdk-solid": "^2.1.0", - "@tma.js/solid-router-integration": "^2.0.0", + "@tma.js/sdk-solid": "^2.1.3", + "@tma.js/solid-router-integration": "^3.0.0", "@tonconnect/ui": "^2.0.2", "eruda": "^3.0.1", "solid-js": "^1.8.17" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1992fa8..c25b331 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,11 +12,11 @@ importers: specifier: ^0.13.3 version: 0.13.3(solid-js@1.8.17) '@tma.js/sdk-solid': - specifier: ^2.1.0 - version: 2.1.0(solid-js@1.8.17) + specifier: ^2.1.3 + version: 2.1.3(solid-js@1.8.17) '@tma.js/solid-router-integration': - specifier: ^2.0.0 - version: 2.0.0(@solidjs/router@0.13.3(solid-js@1.8.17))(@tma.js/sdk-solid@2.1.0(solid-js@1.8.17))(solid-js@1.8.17) + specifier: ^3.0.0 + version: 3.0.0(@solidjs/router@0.13.3(solid-js@1.8.17))(@tma.js/sdk@2.1.0)(solid-js@1.8.17) '@tonconnect/ui': specifier: ^2.0.2 version: 2.0.2 @@ -44,7 +44,7 @@ importers: version: 8.57.0 eslint-plugin-solid: specifier: ^0.14.0 - version: 0.14.0(eslint@8.57.0)(typescript@5.4.4) + version: 0.14.0(eslint@8.57.0)(typescript@5.4.5) gh-pages: specifier: ^6.1.1 version: 6.1.1 @@ -1035,19 +1035,19 @@ packages: peerDependencies: solid-js: ^1.8.6 - '@tma.js/sdk-solid@2.1.0': - resolution: {integrity: sha512-liIAFqWWDV50pvBzS/Yy9Is5xBzofwxzuk6LX8pD+Rr52gjnFc9vzkWPC+t95XPt5u+PVVp3xLbODFmKCZZJYQ==} + '@tma.js/sdk-solid@2.1.3': + resolution: {integrity: sha512-VC+uXKW5PEP+dkMYLMOFwZ5QMkXKgo7uL+pulUX9mzpOi5FqPpv8Wvpf6gjdmmzwgcIzJLcOVRtNQj9WmIqIpA==} peerDependencies: solid-js: ^1.0.0 - '@tma.js/sdk@2.0.0': - resolution: {integrity: sha512-fj63SpZLONXZAIz+O8UuwxQ/pMxeqyWvjbY6MnefpFETaoqCLPezmlDVreejzGh9zPtLCzLIW2Fjvawtucpd4w==} + '@tma.js/sdk@2.1.0': + resolution: {integrity: sha512-jCHkqoNlEECBCf8ZjoSlHS5Yvs9Z4IrhI0BuJ88i9/RBhmUy/GF87cIQbLUFb5P+4BvsKCLtAM6HPtVVdAkVMQ==} - '@tma.js/solid-router-integration@2.0.0': - resolution: {integrity: sha512-waL06ZoBL/o0QU6pwiUbyKhLwKbH2M6kN06vvIu7ftWODPsaNlJsm3QaKCm/d+ibOKpJvQMhPNcXs7A2jnSvtQ==} + '@tma.js/solid-router-integration@3.0.0': + resolution: {integrity: sha512-DXOU82ZMwtWI6PQk4P+3LxoHzzOqklZw6KqCGrX5t4tYrG3P3DyUFCCbbrn8iXu4wxsncOujn9W/IEMgRW4BVA==} peerDependencies: '@solidjs/router': ^0.13.1 - '@tma.js/sdk-solid': 2.1.0 + '@tma.js/sdk': 2.1.0 solid-js: ^1.8.16 '@tonconnect/isomorphic-eventsource@0.0.2': @@ -1909,8 +1909,8 @@ packages: resolution: {integrity: sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==} engines: {node: '>=10'} - typescript@5.4.4: - resolution: {integrity: sha512-dGE2Vv8cpVvw28v8HCPqyb08EzbBURxDpuhJvTrusShUfGnhHBafDsLdS1EhhxyL6BJQE+2cT3dDPAv+MQ6oLw==} + typescript@5.4.5: + resolution: {integrity: sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==} engines: {node: '>=14.17'} hasBin: true @@ -3060,17 +3060,17 @@ snapshots: dependencies: solid-js: 1.8.17 - '@tma.js/sdk-solid@2.1.0(solid-js@1.8.17)': + '@tma.js/sdk-solid@2.1.3(solid-js@1.8.17)': dependencies: - '@tma.js/sdk': 2.0.0 + '@tma.js/sdk': 2.1.0 solid-js: 1.8.17 - '@tma.js/sdk@2.0.0': {} + '@tma.js/sdk@2.1.0': {} - '@tma.js/solid-router-integration@2.0.0(@solidjs/router@0.13.3(solid-js@1.8.17))(@tma.js/sdk-solid@2.1.0(solid-js@1.8.17))(solid-js@1.8.17)': + '@tma.js/solid-router-integration@3.0.0(@solidjs/router@0.13.3(solid-js@1.8.17))(@tma.js/sdk@2.1.0)(solid-js@1.8.17)': dependencies: '@solidjs/router': 0.13.3(solid-js@1.8.17) - '@tma.js/sdk-solid': 2.1.0(solid-js@1.8.17) + '@tma.js/sdk': 2.1.0 solid-js: 1.8.17 '@tonconnect/isomorphic-eventsource@0.0.2': @@ -3139,7 +3139,7 @@ snapshots: '@typescript-eslint/types@7.8.0': {} - '@typescript-eslint/typescript-estree@7.8.0(typescript@5.4.4)': + '@typescript-eslint/typescript-estree@7.8.0(typescript@5.4.5)': dependencies: '@typescript-eslint/types': 7.8.0 '@typescript-eslint/visitor-keys': 7.8.0 @@ -3148,20 +3148,20 @@ snapshots: is-glob: 4.0.3 minimatch: 9.0.4 semver: 7.6.0 - ts-api-utils: 1.3.0(typescript@5.4.4) + ts-api-utils: 1.3.0(typescript@5.4.5) optionalDependencies: - typescript: 5.4.4 + typescript: 5.4.5 transitivePeerDependencies: - supports-color - '@typescript-eslint/utils@7.8.0(eslint@8.57.0)(typescript@5.4.4)': + '@typescript-eslint/utils@7.8.0(eslint@8.57.0)(typescript@5.4.5)': dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) '@types/json-schema': 7.0.15 '@types/semver': 7.5.8 '@typescript-eslint/scope-manager': 7.8.0 '@typescript-eslint/types': 7.8.0 - '@typescript-eslint/typescript-estree': 7.8.0(typescript@5.4.4) + '@typescript-eslint/typescript-estree': 7.8.0(typescript@5.4.5) eslint: 8.57.0 semver: 7.6.0 transitivePeerDependencies: @@ -3373,9 +3373,9 @@ snapshots: escape-string-regexp@4.0.0: {} - eslint-plugin-solid@0.14.0(eslint@8.57.0)(typescript@5.4.4): + eslint-plugin-solid@0.14.0(eslint@8.57.0)(typescript@5.4.5): dependencies: - '@typescript-eslint/utils': 7.8.0(eslint@8.57.0)(typescript@5.4.4) + '@typescript-eslint/utils': 7.8.0(eslint@8.57.0)(typescript@5.4.5) eslint: 8.57.0 estraverse: 5.3.0 is-html: 2.0.0 @@ -3961,9 +3961,9 @@ snapshots: dependencies: escape-string-regexp: 1.0.5 - ts-api-utils@1.3.0(typescript@5.4.4): + ts-api-utils@1.3.0(typescript@5.4.5): dependencies: - typescript: 5.4.4 + typescript: 5.4.5 tweetnacl-util@0.15.1: {} @@ -3975,7 +3975,7 @@ snapshots: type-fest@0.20.2: {} - typescript@5.4.4: {} + typescript@5.4.5: {} ua-parser-js@1.0.37: {} diff --git a/src/components/App.jsx b/src/components/App.jsx index 2dc8cb1..3435222 100644 --- a/src/components/App.jsx +++ b/src/components/App.jsx @@ -29,14 +29,12 @@ export function App() { }); createEffect(() => { const vp = viewport(); - if (vp) { - onCleanup(bindViewportCSSVars(vp)); - } + vp && onCleanup(bindViewportCSSVars(vp)); }); // Create new application navigator and attach it to the browser history, so it could modify // it and listen to its changes. - const navigator = initNavigator('app-navigator-state', { hashMode: 'default' }); + const navigator = initNavigator('app-navigator-state'); void navigator.attach(); onCleanup(() => {