diff --git a/.vscode/settings.json b/.vscode/settings.json index 85c2cbf6..a5caeab2 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -19,9 +19,9 @@ "editor.formatOnSave": true, "editor.defaultFormatter": "esbenp.prettier-vscode", "editor.codeActionsOnSave": { - "source.fixAll.eslint": true, - "source.fixAll.stylelint": true, - "source.fixAll.markdownlint": true + "source.fixAll.eslint": "explicit", + "source.fixAll.stylelint": "explicit", + "source.fixAll.markdownlint": "explicit" }, // === diff --git a/package-lock.json b/package-lock.json index 948cbd42..a65226b3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "0.1.0", "dependencies": { "@arcana/auth": "^0.1.3", - "@arcana/auth-core": "2.0.0-alpha.9", + "@arcana/auth-core": "2.0.0-alpha.15", "@arcana/key-helper": "^2.0.0-beta.3", "@arcana/scw": "^0.0.19", "@ethereumjs/tx": "^3.4.0", @@ -99,7 +99,7 @@ }, "../auth-core": { "name": "@arcana/auth-core", - "version": "2.0.0-alpha.3", + "version": "2.0.0-alpha.12", "extraneous": true, "license": "MIT", "dependencies": { @@ -252,9 +252,9 @@ } }, "node_modules/@arcana/auth-core": { - "version": "2.0.0-alpha.9", - "resolved": "https://registry.npmjs.org/@arcana/auth-core/-/auth-core-2.0.0-alpha.9.tgz", - "integrity": "sha512-WQ4vNfo0yHrXbCKSGVMfkvQ6bRgyXiTMUVj3/T5B3VpmycCBs3zBW48QUPAafGGysIkkI7Rt4l1SJankkov/xQ==", + "version": "2.0.0-alpha.15", + "resolved": "https://registry.npmjs.org/@arcana/auth-core/-/auth-core-2.0.0-alpha.15.tgz", + "integrity": "sha512-WAKGDJDmiUIDz48qlSC2jVXIwJoRf5bVtBECK4YxXR5v0e4auDHHISve+ufqjXWdpi1aCjPvWdCKlgpE6NypFg==", "dependencies": { "@arcana/keystore": "^2.0.0-beta.4", "@stablelib/base64": "^1.0.1", @@ -11309,9 +11309,9 @@ "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==" }, "node_modules/deepmerge": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", - "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", "dev": true, "engines": { "node": ">=0.10.0" @@ -35050,9 +35050,9 @@ } }, "@arcana/auth-core": { - "version": "2.0.0-alpha.9", - "resolved": "https://registry.npmjs.org/@arcana/auth-core/-/auth-core-2.0.0-alpha.9.tgz", - "integrity": "sha512-WQ4vNfo0yHrXbCKSGVMfkvQ6bRgyXiTMUVj3/T5B3VpmycCBs3zBW48QUPAafGGysIkkI7Rt4l1SJankkov/xQ==", + "version": "2.0.0-alpha.15", + "resolved": "https://registry.npmjs.org/@arcana/auth-core/-/auth-core-2.0.0-alpha.15.tgz", + "integrity": "sha512-WAKGDJDmiUIDz48qlSC2jVXIwJoRf5bVtBECK4YxXR5v0e4auDHHISve+ufqjXWdpi1aCjPvWdCKlgpE6NypFg==", "requires": { "@arcana/keystore": "^2.0.0-beta.4", "@stablelib/base64": "^1.0.1", @@ -43539,9 +43539,9 @@ "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==" }, "deepmerge": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.2.2.tgz", - "integrity": "sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==", + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz", + "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==", "dev": true }, "default-gateway": { diff --git a/package.json b/package.json index b5b08624..a4cb604b 100644 --- a/package.json +++ b/package.json @@ -17,8 +17,8 @@ }, "dependencies": { "@arcana/auth": "^0.1.3", - "@arcana/auth-core": "2.0.0-alpha.9", - "@arcana/key-helper": "^2.0.0-beta.3", + "@arcana/auth-core": "2.0.0-alpha.16", + "@arcana/key-helper": "^2.0.0-beta.4", "@arcana/scw": "^0.0.19", "@ethereumjs/tx": "^3.4.0", "@fontsource/montserrat": "^4.5.14", diff --git a/src/App.vue b/src/App.vue index 8d6dd2eb..f371ee29 100644 --- a/src/App.vue +++ b/src/App.vue @@ -12,7 +12,7 @@ import { useAppStore } from '@/store/app' import { useModalStore } from '@/store/modal' import { useParentConnectionStore } from '@/store/parentConnection' import { useRequestStore } from '@/store/request' -import { ChainType } from '@/utils/chainType' +import { useStarterTipsStore } from '@/store/starterTips' import { AUTH_NETWORK } from '@/utils/constants' import { getImage } from '@/utils/getImage' import { initializeOnRampMoney } from '@/utils/onrampmoney.ramp' @@ -24,6 +24,7 @@ const app = useAppStore() const modal = useModalStore() const requestStore = useRequestStore() const parentConnectionStore = useParentConnectionStore() +const starterTipsStore = useStarterTipsStore() const router = useRouter() const { theme, expandWallet, showWallet, compactMode, sdkVersion } = toRefs(app) const route = useRoute() @@ -71,10 +72,14 @@ watch(showWallet, async (newValue) => { watch(expandWallet, setIframeStyle) -watch(compactMode, setIframeStyle) +watch(compactMode, (val) => { + if (val) starterTipsStore.setHideStarterTips() + setIframeStyle() +}) watch(showRequestPage, (newValue) => { if (newValue) { + starterTipsStore.setHideStarterTips() modal.show = false router.push({ name: 'requests', params: { appId: app.id } }) } @@ -162,7 +167,7 @@ const showHeader = computed(() => { /> - +
diff --git a/src/components/WalletHeader.vue b/src/components/WalletHeader.vue index 72530f23..51bc9ba1 100644 --- a/src/components/WalletHeader.vue +++ b/src/components/WalletHeader.vue @@ -7,6 +7,8 @@ import { getChainLogoUrl } from '@/services/chainlist.service' import { useAppStore } from '@/store/app' import { useModalStore } from '@/store/modal' import { useRpcStore } from '@/store/rpc' +import { useStarterTipsStore } from '@/store/starterTips' +import { ChainType } from '@/utils/chainType' import { getImage } from '@/utils/getImage' type ModalState = 'receive' | 'chain-list' | false @@ -17,6 +19,7 @@ const modalStore = useModalStore() const isChainListExpanded = ref(false) const rpcStore = useRpcStore() const hasChainUpdated = ref(true) +const starterTipsStore = useStarterTipsStore() function openReceiveTokens(open) { modalStore.setShowModal(open) @@ -83,10 +86,24 @@ function handleFallbackLogo(event) {
-