Skip to content

Commit 3a7c313

Browse files
authored
Docs release for Meta Data fix (#2183)
* [DOCS FIX] - Update meta tags for socials image display (#2182) * Move image to a spot where it is available through an absolute path, add robot.txt, update meta tags
1 parent 8558361 commit 3a7c313

File tree

9 files changed

+22
-20
lines changed

9 files changed

+22
-20
lines changed

docs/src/lib/components/SEO/Twitter.svelte

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
</script>
77

88
<svelte:head>
9-
<meta property="twitter:card" content="summary_large_image" />
10-
<meta property="twitter:title" content={pageTitle} />
11-
<meta property="twitter:description" content={metadescription} />
12-
<meta property="twitter:url" content={url} />
9+
<meta name="twitter:card" content="summary_large_image" />
10+
<meta name="twitter:title" content={pageTitle} />
11+
<meta name="twitter:description" content={metadescription} />
12+
<meta name="twitter:url" content={url} />
1313
{#if image}
1414
<meta name="twitter:image" content={image.url} />
1515
<meta name="twitter:image:alt" content={image.alt} />

docs/src/lib/components/SEO/index.svelte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
<script>
22
import OpenGraph from './OpenGraph.svelte'
33
import Twitter from './Twitter.svelte'
4-
import MetaImage from '$lib/assets/blocknative-onboard-og-image.png'
54
65
export let metadescription
76
export let title
87
export let url
98
109
export let image = {
11-
url: MetaImage,
10+
url: 'https://onboard.blocknative.com/blocknative-onboard-og-image.png',
1211
alt: 'Web3-Onboard Connect Wallet Button'
1312
}
1413

docs/src/routes/docs/[...4]wallets/[...5]capsule/+page.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ type CapsuleInitOptions = {
4242
environment: string
4343
apiKey: string
4444
/** @optional capsule object opts */
45-
constructorOpts?: ConstructorOpts
45+
constructorOpts?: Partial<ConstructorOpts>
4646
appName: string
4747
/** @optional capsule modal props */
48-
modalProps?: CapsuleModalV2Props
48+
modalProps?: Partial<CapsuleModalV2Props>
4949
}
5050
```
5151
## Usage
269 KB
Loading

docs/static/robots.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# https://www.robotstxt.org/robotstxt.html
2+
User-agent: *
3+
Disallow:

docs/yarn.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5183,10 +5183,10 @@
51835183
"@blocto/sdk" "^0.4.6"
51845184
"@web3-onboard/common" "^2.3.1"
51855185

5186-
"@web3-onboard/capsule@^2.0.2-alpha.1":
5187-
version "2.0.2-alpha.1"
5188-
resolved "https://registry.yarnpkg.com/@web3-onboard/capsule/-/capsule-2.0.2-alpha.1.tgz#afb47364766b7e42787a025b75ef3063dc279f65"
5189-
integrity sha512-hbgCTTiPjWkckNTEA3gbaSA6WWIbzSedsl7cxEQzO1fW1eMjQO6XXXmDGwDSfsrOqfcYwiFkuL6M4PxPMGRZRg==
5186+
"@web3-onboard/capsule@^2.0.2":
5187+
version "2.0.2"
5188+
resolved "https://registry.yarnpkg.com/@web3-onboard/capsule/-/capsule-2.0.2.tgz#da13e0d5b63d29e58027b5c9f6339952db07a7ea"
5189+
integrity sha512-U5PSZZg742OB+qKNyPlumsCehpSSqnT+jxnn6NC2vUGcWR1pTnuudJ351s3GAykaCJ1i3uwGsPoz1ZLJm4yK+Q==
51905190
dependencies:
51915191
"@tanstack/react-query" "^5.29.0"
51925192
"@usecapsule/react-sdk" "^2.3.1"
@@ -5380,10 +5380,10 @@
53805380
magic-sdk "^8.1.0"
53815381
rxjs "^7.5.2"
53825382

5383-
"@web3-onboard/metamask@^2.0.6-alpha.1":
5384-
version "2.0.6-alpha.1"
5385-
resolved "https://registry.yarnpkg.com/@web3-onboard/metamask/-/metamask-2.0.6-alpha.1.tgz#f874f73e41a0b9a92ca84613ff2e2400cd48eba2"
5386-
integrity sha512-QGS4d4i9FpwBpkNYXGpvvXnVmnLsA+zyGu2oZ4qZdls0TM/XsDHt5pudI6RPZR9gPEWPtXqOxmzm6Ce1OxE+ng==
5383+
"@web3-onboard/metamask@^2.0.6":
5384+
version "2.0.6"
5385+
resolved "https://registry.yarnpkg.com/@web3-onboard/metamask/-/metamask-2.0.6.tgz#9dd59a88e16fa27754f29b54b4656b31ab6e3159"
5386+
integrity sha512-hxOdsqEtvohkYSisXqq7CizECmT7o+Qt6Z4zFfB7fgxcKa80mMmN0sgS3kAa3jl7nQ/JuJbhpNZsInbNN5HFnA==
53875387
dependencies:
53885388
"@metamask/sdk" "^0.18.6"
53895389
"@web3-onboard/common" "^2.3.3"

packages/capsule/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@web3-onboard/capsule",
3-
"version": "2.0.2",
3+
"version": "2.0.3-alpha.1",
44
"description": "Capsule SDK wallet module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",
55
"module": "dist/index.js",
66
"browser": "dist/index.js",

packages/capsule/src/types.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ import type { ConstructorOpts, Environment, CapsuleModalV2Props } from '@usecaps
1212
export type CapsuleInitOptions = {
1313
environment: Environment
1414
apiKey: string,
15-
constructorOpts?: ConstructorOpts
16-
modalProps?: CapsuleModalV2Props
15+
constructorOpts?: Partial<ConstructorOpts>
16+
modalProps?: Partial<CapsuleModalV2Props>
1717
}

packages/demo/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@web3-onboard/arcana-auth": "^2.0.0",
3131
"@web3-onboard/bitget": "2.0.1",
3232
"@web3-onboard/blocto": "^2.0.1",
33-
"@web3-onboard/capsule": "2.0.2",
33+
"@web3-onboard/capsule": "2.0.3-alpha.1",
3434
"@web3-onboard/cede-store": "^2.2.0",
3535
"@web3-onboard/core": "^2.21.6",
3636
"@web3-onboard/coinbase": "^2.2.7",

0 commit comments

Comments
 (0)