From 387740012365137f79515cd092622db980f68f77 Mon Sep 17 00:00:00 2001 From: Alex Stelea Date: Thu, 30 May 2024 11:30:24 +0100 Subject: [PATCH] feat: replace randomUUID with nanoId --- examples/simple-dapp/src/main.ts | 7 - examples/widget/.gitignore | 26 - examples/widget/index.html | 14 - examples/widget/package.json | 22 - examples/widget/public/.well-known/radix.json | 8 - examples/widget/src/main.ts | 85 --- examples/widget/src/sst-env.d.ts | 7 - examples/widget/src/style.css | 108 ---- examples/widget/src/vite-env.d.ts | 1 - examples/widget/sst.config.ts | 41 -- examples/widget/tsconfig.json | 23 - examples/widget/vite.config.ts | 25 - package-lock.json | 484 +----------------- package.json | 3 +- packages/dapp-toolkit/package.json | 5 +- .../wallet-request/session/session.module.ts | 3 +- .../connector-extension.module.ts | 5 +- .../radix-connect-relay/deep-link.module.ts | 2 - .../wallet-request/wallet-request-sdk.ts | 7 +- .../modules/wallet-request/wallet-request.ts | 2 +- .../dapp-toolkit/src/radix-dapp-toolkit.ts | 8 +- 21 files changed, 36 insertions(+), 850 deletions(-) delete mode 100644 examples/widget/.gitignore delete mode 100644 examples/widget/index.html delete mode 100644 examples/widget/package.json delete mode 100644 examples/widget/public/.well-known/radix.json delete mode 100644 examples/widget/src/main.ts delete mode 100644 examples/widget/src/sst-env.d.ts delete mode 100644 examples/widget/src/style.css delete mode 100644 examples/widget/src/vite-env.d.ts delete mode 100644 examples/widget/sst.config.ts delete mode 100644 examples/widget/tsconfig.json delete mode 100644 examples/widget/vite.config.ts diff --git a/examples/simple-dapp/src/main.ts b/examples/simple-dapp/src/main.ts index 5707b9f9..26c58396 100644 --- a/examples/simple-dapp/src/main.ts +++ b/examples/simple-dapp/src/main.ts @@ -29,8 +29,6 @@ content.innerHTML = `
- -

   

   

@@ -127,9 +125,4 @@ setInterval(() => {
   sessionStore.getItemList().map((value: any) => {
     sessions.innerHTML = JSON.stringify({ sessions: value }, null, 2)
   })
-  gatewayApi.status
-    .getCurrent()
-    .then(
-      (status) => (gatewayStatus.innerHTML = JSON.stringify(status, null, 2)),
-    )
 }, 1000)
diff --git a/examples/widget/.gitignore b/examples/widget/.gitignore
deleted file mode 100644
index 4258e810..00000000
--- a/examples/widget/.gitignore
+++ /dev/null
@@ -1,26 +0,0 @@
-# Logs
-logs
-*.log
-npm-debug.log*
-yarn-debug.log*
-yarn-error.log*
-pnpm-debug.log*
-lerna-debug.log*
-
-node_modules
-dist
-dist-ssr
-*.local
-
-# Editor directories and files
-.vscode/*
-!.vscode/extensions.json
-.idea
-.DS_Store
-*.suo
-*.ntvs*
-*.njsproj
-*.sln
-*.sw?
-
-.sst
\ No newline at end of file
diff --git a/examples/widget/index.html b/examples/widget/index.html
deleted file mode 100644
index 22669479..00000000
--- a/examples/widget/index.html
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-  
-    
-    
-    Simple dApp
-  
-  
-    
-
- - - - diff --git a/examples/widget/package.json b/examples/widget/package.json deleted file mode 100644 index 10cf4321..00000000 --- a/examples/widget/package.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "name": "widget", - "private": true, - "version": "0.0.0", - "type": "module", - "scripts": { - "dev": "vite --host", - "build": "tsc && vite build", - "preview": "vite preview", - "deploy": "sst deploy" - }, - "dependencies": { - "@radixdlt/babylon-gateway-api-sdk": "^1.4.1", - "@radixdlt/radix-dapp-toolkit": "*" - }, - "devDependencies": { - "sst": "^2.41.3", - "typescript": "^5.2.2", - "vite": "^5.1.6", - "vite-plugin-ngrok": "^1.0.0" - } -} diff --git a/examples/widget/public/.well-known/radix.json b/examples/widget/public/.well-known/radix.json deleted file mode 100644 index 2a1b0c64..00000000 --- a/examples/widget/public/.well-known/radix.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "callbackPath": "/connect", - "dApps": [ - { - "dAppDefinitionAddress": "account_tdx_2_12yf9gd53yfep7a669fv2t3wm7nz9zeezwd04n02a433ker8vza6rhe" - } - ] -} \ No newline at end of file diff --git a/examples/widget/src/main.ts b/examples/widget/src/main.ts deleted file mode 100644 index b53d5cc9..00000000 --- a/examples/widget/src/main.ts +++ /dev/null @@ -1,85 +0,0 @@ -import { GatewayApiClient } from '@radixdlt/babylon-gateway-api-sdk' -import './style.css' -import { - RadixDappToolkit, - RadixNetwork, - Logger, - DataRequestBuilder, - OneTimeDataRequestBuilder, - LocalStorageModule, - generateRolaChallenge, -} from '@radixdlt/radix-dapp-toolkit' - -const dAppDefinitionAddress = import.meta.env.VITE_DAPP_DEFINITION_ADDRESS -const networkId = RadixNetwork.Stokenet -const storageModule = LocalStorageModule( - `rdt:${dAppDefinitionAddress}:${networkId}`, -) -const requestsStore = storageModule.getPartition('requests') -const sessionStore = storageModule.getPartition('sessions') -const identityStore = storageModule.getPartition('identities') -const stateStore = storageModule.getPartition('state') - -const content = document.getElementById('app')! - -content.innerHTML = ` - -
-

-`
-const resetButton = document.getElementById('reset')!
-const oneTimeRequest = document.getElementById('one-time-request')!
-const sessions = document.getElementById('sessions')!
-const requests = document.getElementById('requests')!
-const logs = document.getElementById('logs')!
-const state = document.getElementById('state')!
-const gatewayStatus = document.getElementById('gatewayStatus')!
-
-const logger = Logger()
-
-logger.attachTransport((logObj) => {
-  const { _meta, ...rest } = logObj
-
-  const logEntry = `[${_meta.name}]
-${JSON.stringify(rest, null, 2)}  
-
-${logs.innerHTML}`
-
-  localStorage.setItem('logs', logEntry)
-
-  logs.innerHTML = logEntry
-})
-
-const dAppToolkit = RadixDappToolkit({
-  dAppDefinitionAddress,
-  networkId,
-  featureFlags: ['ExperimentalMobileSupport'],
-  logger,
-})
-
-const gatewayApi = GatewayApiClient.initialize(
-  dAppToolkit.gatewayApi.clientConfig,
-)
-
-dAppToolkit.walletApi.provideChallengeGenerator(async () => {
-  await new Promise((resolve) => setTimeout(resolve, 1000))
-  return generateRolaChallenge()
-})
-
-dAppToolkit.walletApi.setRequestData(DataRequestBuilder.persona().withProof())
-
-resetButton.onclick = () => {
-  sessionStore.clear()
-  requestsStore.clear()
-  stateStore.clear()
-  identityStore.clear()
-  localStorage.removeItem('logs')
-  window.location.hash = ``
-  window.location.replace(window.location.origin)
-}
-
-oneTimeRequest.onclick = () => {
-  dAppToolkit.walletApi.sendOneTimeRequest(
-    OneTimeDataRequestBuilder.accounts().exactly(1),
-  )
-}
diff --git a/examples/widget/src/sst-env.d.ts b/examples/widget/src/sst-env.d.ts
deleted file mode 100644
index 7696eae3..00000000
--- a/examples/widget/src/sst-env.d.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-/// 
-interface ImportMetaEnv {
-
-}
-interface ImportMeta {
-  readonly env: ImportMetaEnv
-}
\ No newline at end of file
diff --git a/examples/widget/src/style.css b/examples/widget/src/style.css
deleted file mode 100644
index fd067ca3..00000000
--- a/examples/widget/src/style.css
+++ /dev/null
@@ -1,108 +0,0 @@
-:root {
-  font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
-  line-height: 1.5;
-  font-weight: 400;
-
-  color-scheme: light dark;
-  color: rgba(255, 255, 255, 0.87);
-  background-color: #242424;
-
-  font-synthesis: none;
-  text-rendering: optimizeLegibility;
-  -webkit-font-smoothing: antialiased;
-  -moz-osx-font-smoothing: grayscale;
-}
-
-a {
-  font-weight: 500;
-  color: #646cff;
-  text-decoration: inherit;
-}
-a:hover {
-  color: #535bf2;
-}
-
-body {
-  margin: 0;
-  display: flex;
-  place-items: center;
-  min-width: 320px;
-  min-height: 100vh;
-  flex-direction: column;
-}
-
-h1 {
-  font-size: 3.2em;
-  line-height: 1.1;
-}
-
-#app {
-}
-
-.logo {
-  height: 6em;
-  padding: 1.5em;
-  will-change: filter;
-  transition: filter 300ms;
-}
-.logo:hover {
-  filter: drop-shadow(0 0 2em #646cffaa);
-}
-.logo.vanilla:hover {
-  filter: drop-shadow(0 0 2em #3178c6aa);
-}
-
-.card {
-  padding: 2em;
-}
-
-.read-the-docs {
-  color: #888;
-}
-
-button {
-  border-radius: 8px;
-  border: 1px solid transparent;
-  padding: 0.6em 1.2em;
-  font-size: 1em;
-  font-weight: 500;
-  font-family: inherit;
-  background-color: #1a1a1a;
-  cursor: pointer;
-  transition: border-color 0.25s;
-}
-button:hover {
-  border-color: #646cff;
-}
-button:focus,
-button:focus-visible {
-  outline: 4px auto -webkit-focus-ring-color;
-}
-
-@media (prefers-color-scheme: light) {
-  :root {
-    color: #213547;
-    background-color: #ffffff;
-  }
-  a:hover {
-    color: #747bff;
-  }
-  button {
-    background-color: #f9f9f9;
-  }
-}
-
-header {
-  display: flex;
-  align-self: flex-end;
-}
-
-pre {
-  width: 300px;
-  text-align: left;
-  overflow: auto;
-}
-
-.mt-25 {
-  margin-top: 10px;
-}
diff --git a/examples/widget/src/vite-env.d.ts b/examples/widget/src/vite-env.d.ts
deleted file mode 100644
index 11f02fe2..00000000
--- a/examples/widget/src/vite-env.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-/// 
diff --git a/examples/widget/sst.config.ts b/examples/widget/sst.config.ts
deleted file mode 100644
index faed19f5..00000000
--- a/examples/widget/sst.config.ts
+++ /dev/null
@@ -1,41 +0,0 @@
-import type { SSTConfig } from 'sst'
-import { StaticSite } from 'sst/constructs'
-
-import { exec } from 'child_process'
-
-const getBranchName = () =>
-  new Promise((resolve, reject) => {
-    exec('git branch --show-current', (err, stdout) => {
-      if (err) {
-        reject(err)
-      } else {
-        const branchName = stdout.trim().split('/').slice(-1)[0]
-        resolve(branchName)
-      }
-    })
-  })
-
-const branchName = await getBranchName()
-
-export default {
-  config() {
-    return {
-      name: `widget-${branchName}`,
-      region: process.env.AWS_REGION,
-      profile: process.env.AWS_PROFILE,
-      stage: process.env.AWS_STAGE,
-    }
-  },
-  stacks(app) {
-    app.stack(function Site({ stack }) {
-      const site = new StaticSite(stack, 'site', {
-        buildCommand: 'npm run build',
-        buildOutput: 'dist',
-      })
-
-      stack.addOutputs({
-        url: site.url,
-      })
-    })
-  },
-} satisfies SSTConfig
diff --git a/examples/widget/tsconfig.json b/examples/widget/tsconfig.json
deleted file mode 100644
index 38c5bb01..00000000
--- a/examples/widget/tsconfig.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
-  "compilerOptions": {
-    "target": "ES2020",
-    "useDefineForClassFields": true,
-    "module": "ESNext",
-    "lib": ["ES2020", "DOM", "DOM.Iterable"],
-    "skipLibCheck": true,
-
-    /* Bundler mode */
-    "moduleResolution": "bundler",
-    "allowImportingTsExtensions": true,
-    "resolveJsonModule": true,
-    "isolatedModules": true,
-    "noEmit": true,
-
-    /* Linting */
-    "strict": true,
-    "noUnusedLocals": false,
-    "noUnusedParameters": false,
-    "noFallthroughCasesInSwitch": true
-  },
-  "include": ["src"]
-}
diff --git a/examples/widget/vite.config.ts b/examples/widget/vite.config.ts
deleted file mode 100644
index 1bef5d60..00000000
--- a/examples/widget/vite.config.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-import { defineConfig } from 'vite'
-import path from 'path'
-import fs from 'fs'
-import { ngrok } from 'vite-plugin-ngrok'
-
-fs.writeFileSync(
-  path.resolve(__dirname, 'public', '.well-known', 'radix.json'),
-  JSON.stringify(
-    {
-      callbackPath: process.env.VITE_RETURN_URL,
-      dApps: [
-        {
-          dAppDefinitionAddress: process.env.DAPP_DEFINITION_ADDRESS,
-        },
-      ],
-    },
-    null,
-    2,
-  ),
-)
-
-export default defineConfig({
-  // @ts-ignore
-  plugins: [ngrok(process.env.NGROK_AUTH_TOKEN)],
-})
diff --git a/package-lock.json b/package-lock.json
index f110479e..e867ef9f 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -549,6 +549,7 @@
     },
     "examples/widget": {
       "version": "0.0.0",
+      "extraneous": true,
       "dependencies": {
         "@radixdlt/babylon-gateway-api-sdk": "^1.4.1",
         "@radixdlt/radix-dapp-toolkit": "*"
@@ -560,467 +561,6 @@
         "vite-plugin-ngrok": "^1.0.0"
       }
     },
-    "examples/widget/node_modules/@esbuild/aix-ppc64": {
-      "version": "0.20.2",
-      "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.20.2.tgz",
-      "integrity": "sha512-D+EBOJHXdNZcLJRBkhENNG8Wji2kgc9AZ9KiPr1JuZjsNtyHzrsfLRrY0tk2H2aoFu6RANO1y1iPPUCDYWkb5g==",
-      "cpu": [
-        "ppc64"
-      ],
-      "dev": true,
-      "optional": true,
-      "os": [
-        "aix"
-      ],
-      "engines": {
-        "node": ">=12"
-      }
-    },
-    "examples/widget/node_modules/@esbuild/android-arm": {
-      "version": "0.20.2",
-      "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.20.2.tgz",
-      "integrity": "sha512-t98Ra6pw2VaDhqNWO2Oph2LXbz/EJcnLmKLGBJwEwXX/JAN83Fym1rU8l0JUWK6HkIbWONCSSatf4sf2NBRx/w==",
-      "cpu": [
-        "arm"
-      ],
-      "dev": true,
-      "optional": true,
-      "os": [
-        "android"
-      ],
-      "engines": {
-        "node": ">=12"
-      }
-    },
-    "examples/widget/node_modules/@esbuild/android-arm64": {
-      "version": "0.20.2",
-      "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.20.2.tgz",
-      "integrity": "sha512-mRzjLacRtl/tWU0SvD8lUEwb61yP9cqQo6noDZP/O8VkwafSYwZ4yWy24kan8jE/IMERpYncRt2dw438LP3Xmg==",
-      "cpu": [
-        "arm64"
-      ],
-      "dev": true,
-      "optional": true,
-      "os": [
-        "android"
-      ],
-      "engines": {
-        "node": ">=12"
-      }
-    },
-    "examples/widget/node_modules/@esbuild/android-x64": {
-      "version": "0.20.2",
-      "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.20.2.tgz",
-      "integrity": "sha512-btzExgV+/lMGDDa194CcUQm53ncxzeBrWJcncOBxuC6ndBkKxnHdFJn86mCIgTELsooUmwUm9FkhSp5HYu00Rg==",
-      "cpu": [
-        "x64"
-      ],
-      "dev": true,
-      "optional": true,
-      "os": [
-        "android"
-      ],
-      "engines": {
-        "node": ">=12"
-      }
-    },
-    "examples/widget/node_modules/@esbuild/darwin-arm64": {
-      "version": "0.20.2",
-      "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.20.2.tgz",
-      "integrity": "sha512-4J6IRT+10J3aJH3l1yzEg9y3wkTDgDk7TSDFX+wKFiWjqWp/iCfLIYzGyasx9l0SAFPT1HwSCR+0w/h1ES/MjA==",
-      "cpu": [
-        "arm64"
-      ],
-      "dev": true,
-      "optional": true,
-      "os": [
-        "darwin"
-      ],
-      "engines": {
-        "node": ">=12"
-      }
-    },
-    "examples/widget/node_modules/@esbuild/darwin-x64": {
-      "version": "0.20.2",
-      "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.20.2.tgz",
-      "integrity": "sha512-tBcXp9KNphnNH0dfhv8KYkZhjc+H3XBkF5DKtswJblV7KlT9EI2+jeA8DgBjp908WEuYll6pF+UStUCfEpdysA==",
-      "cpu": [
-        "x64"
-      ],
-      "dev": true,
-      "optional": true,
-      "os": [
-        "darwin"
-      ],
-      "engines": {
-        "node": ">=12"
-      }
-    },
-    "examples/widget/node_modules/@esbuild/freebsd-arm64": {
-      "version": "0.20.2",
-      "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.20.2.tgz",
-      "integrity": "sha512-d3qI41G4SuLiCGCFGUrKsSeTXyWG6yem1KcGZVS+3FYlYhtNoNgYrWcvkOoaqMhwXSMrZRl69ArHsGJ9mYdbbw==",
-      "cpu": [
-        "arm64"
-      ],
-      "dev": true,
-      "optional": true,
-      "os": [
-        "freebsd"
-      ],
-      "engines": {
-        "node": ">=12"
-      }
-    },
-    "examples/widget/node_modules/@esbuild/freebsd-x64": {
-      "version": "0.20.2",
-      "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.20.2.tgz",
-      "integrity": "sha512-d+DipyvHRuqEeM5zDivKV1KuXn9WeRX6vqSqIDgwIfPQtwMP4jaDsQsDncjTDDsExT4lR/91OLjRo8bmC1e+Cw==",
-      "cpu": [
-        "x64"
-      ],
-      "dev": true,
-      "optional": true,
-      "os": [
-        "freebsd"
-      ],
-      "engines": {
-        "node": ">=12"
-      }
-    },
-    "examples/widget/node_modules/@esbuild/linux-arm": {
-      "version": "0.20.2",
-      "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.20.2.tgz",
-      "integrity": "sha512-VhLPeR8HTMPccbuWWcEUD1Az68TqaTYyj6nfE4QByZIQEQVWBB8vup8PpR7y1QHL3CpcF6xd5WVBU/+SBEvGTg==",
-      "cpu": [
-        "arm"
-      ],
-      "dev": true,
-      "optional": true,
-      "os": [
-        "linux"
-      ],
-      "engines": {
-        "node": ">=12"
-      }
-    },
-    "examples/widget/node_modules/@esbuild/linux-arm64": {
-      "version": "0.20.2",
-      "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.20.2.tgz",
-      "integrity": "sha512-9pb6rBjGvTFNira2FLIWqDk/uaf42sSyLE8j1rnUpuzsODBq7FvpwHYZxQ/It/8b+QOS1RYfqgGFNLRI+qlq2A==",
-      "cpu": [
-        "arm64"
-      ],
-      "dev": true,
-      "optional": true,
-      "os": [
-        "linux"
-      ],
-      "engines": {
-        "node": ">=12"
-      }
-    },
-    "examples/widget/node_modules/@esbuild/linux-ia32": {
-      "version": "0.20.2",
-      "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.20.2.tgz",
-      "integrity": "sha512-o10utieEkNPFDZFQm9CoP7Tvb33UutoJqg3qKf1PWVeeJhJw0Q347PxMvBgVVFgouYLGIhFYG0UGdBumROyiig==",
-      "cpu": [
-        "ia32"
-      ],
-      "dev": true,
-      "optional": true,
-      "os": [
-        "linux"
-      ],
-      "engines": {
-        "node": ">=12"
-      }
-    },
-    "examples/widget/node_modules/@esbuild/linux-loong64": {
-      "version": "0.20.2",
-      "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.20.2.tgz",
-      "integrity": "sha512-PR7sp6R/UC4CFVomVINKJ80pMFlfDfMQMYynX7t1tNTeivQ6XdX5r2XovMmha/VjR1YN/HgHWsVcTRIMkymrgQ==",
-      "cpu": [
-        "loong64"
-      ],
-      "dev": true,
-      "optional": true,
-      "os": [
-        "linux"
-      ],
-      "engines": {
-        "node": ">=12"
-      }
-    },
-    "examples/widget/node_modules/@esbuild/linux-mips64el": {
-      "version": "0.20.2",
-      "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.20.2.tgz",
-      "integrity": "sha512-4BlTqeutE/KnOiTG5Y6Sb/Hw6hsBOZapOVF6njAESHInhlQAghVVZL1ZpIctBOoTFbQyGW+LsVYZ8lSSB3wkjA==",
-      "cpu": [
-        "mips64el"
-      ],
-      "dev": true,
-      "optional": true,
-      "os": [
-        "linux"
-      ],
-      "engines": {
-        "node": ">=12"
-      }
-    },
-    "examples/widget/node_modules/@esbuild/linux-ppc64": {
-      "version": "0.20.2",
-      "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.20.2.tgz",
-      "integrity": "sha512-rD3KsaDprDcfajSKdn25ooz5J5/fWBylaaXkuotBDGnMnDP1Uv5DLAN/45qfnf3JDYyJv/ytGHQaziHUdyzaAg==",
-      "cpu": [
-        "ppc64"
-      ],
-      "dev": true,
-      "optional": true,
-      "os": [
-        "linux"
-      ],
-      "engines": {
-        "node": ">=12"
-      }
-    },
-    "examples/widget/node_modules/@esbuild/linux-riscv64": {
-      "version": "0.20.2",
-      "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.20.2.tgz",
-      "integrity": "sha512-snwmBKacKmwTMmhLlz/3aH1Q9T8v45bKYGE3j26TsaOVtjIag4wLfWSiZykXzXuE1kbCE+zJRmwp+ZbIHinnVg==",
-      "cpu": [
-        "riscv64"
-      ],
-      "dev": true,
-      "optional": true,
-      "os": [
-        "linux"
-      ],
-      "engines": {
-        "node": ">=12"
-      }
-    },
-    "examples/widget/node_modules/@esbuild/linux-s390x": {
-      "version": "0.20.2",
-      "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.20.2.tgz",
-      "integrity": "sha512-wcWISOobRWNm3cezm5HOZcYz1sKoHLd8VL1dl309DiixxVFoFe/o8HnwuIwn6sXre88Nwj+VwZUvJf4AFxkyrQ==",
-      "cpu": [
-        "s390x"
-      ],
-      "dev": true,
-      "optional": true,
-      "os": [
-        "linux"
-      ],
-      "engines": {
-        "node": ">=12"
-      }
-    },
-    "examples/widget/node_modules/@esbuild/linux-x64": {
-      "version": "0.20.2",
-      "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.20.2.tgz",
-      "integrity": "sha512-1MdwI6OOTsfQfek8sLwgyjOXAu+wKhLEoaOLTjbijk6E2WONYpH9ZU2mNtR+lZ2B4uwr+usqGuVfFT9tMtGvGw==",
-      "cpu": [
-        "x64"
-      ],
-      "dev": true,
-      "optional": true,
-      "os": [
-        "linux"
-      ],
-      "engines": {
-        "node": ">=12"
-      }
-    },
-    "examples/widget/node_modules/@esbuild/netbsd-x64": {
-      "version": "0.20.2",
-      "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.20.2.tgz",
-      "integrity": "sha512-K8/DhBxcVQkzYc43yJXDSyjlFeHQJBiowJ0uVL6Tor3jGQfSGHNNJcWxNbOI8v5k82prYqzPuwkzHt3J1T1iZQ==",
-      "cpu": [
-        "x64"
-      ],
-      "dev": true,
-      "optional": true,
-      "os": [
-        "netbsd"
-      ],
-      "engines": {
-        "node": ">=12"
-      }
-    },
-    "examples/widget/node_modules/@esbuild/openbsd-x64": {
-      "version": "0.20.2",
-      "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.20.2.tgz",
-      "integrity": "sha512-eMpKlV0SThJmmJgiVyN9jTPJ2VBPquf6Kt/nAoo6DgHAoN57K15ZghiHaMvqjCye/uU4X5u3YSMgVBI1h3vKrQ==",
-      "cpu": [
-        "x64"
-      ],
-      "dev": true,
-      "optional": true,
-      "os": [
-        "openbsd"
-      ],
-      "engines": {
-        "node": ">=12"
-      }
-    },
-    "examples/widget/node_modules/@esbuild/sunos-x64": {
-      "version": "0.20.2",
-      "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.20.2.tgz",
-      "integrity": "sha512-2UyFtRC6cXLyejf/YEld4Hajo7UHILetzE1vsRcGL3earZEW77JxrFjH4Ez2qaTiEfMgAXxfAZCm1fvM/G/o8w==",
-      "cpu": [
-        "x64"
-      ],
-      "dev": true,
-      "optional": true,
-      "os": [
-        "sunos"
-      ],
-      "engines": {
-        "node": ">=12"
-      }
-    },
-    "examples/widget/node_modules/@esbuild/win32-arm64": {
-      "version": "0.20.2",
-      "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.20.2.tgz",
-      "integrity": "sha512-GRibxoawM9ZCnDxnP3usoUDO9vUkpAxIIZ6GQI+IlVmr5kP3zUq+l17xELTHMWTWzjxa2guPNyrpq1GWmPvcGQ==",
-      "cpu": [
-        "arm64"
-      ],
-      "dev": true,
-      "optional": true,
-      "os": [
-        "win32"
-      ],
-      "engines": {
-        "node": ">=12"
-      }
-    },
-    "examples/widget/node_modules/@esbuild/win32-ia32": {
-      "version": "0.20.2",
-      "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.20.2.tgz",
-      "integrity": "sha512-HfLOfn9YWmkSKRQqovpnITazdtquEW8/SoHW7pWpuEeguaZI4QnCRW6b+oZTztdBnZOS2hqJ6im/D5cPzBTTlQ==",
-      "cpu": [
-        "ia32"
-      ],
-      "dev": true,
-      "optional": true,
-      "os": [
-        "win32"
-      ],
-      "engines": {
-        "node": ">=12"
-      }
-    },
-    "examples/widget/node_modules/@esbuild/win32-x64": {
-      "version": "0.20.2",
-      "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.20.2.tgz",
-      "integrity": "sha512-N49X4lJX27+l9jbLKSqZ6bKNjzQvHaT8IIFUy+YIqmXQdjYCToGWwOItDrfby14c78aDd5NHQl29xingXfCdLQ==",
-      "cpu": [
-        "x64"
-      ],
-      "dev": true,
-      "optional": true,
-      "os": [
-        "win32"
-      ],
-      "engines": {
-        "node": ">=12"
-      }
-    },
-    "examples/widget/node_modules/esbuild": {
-      "version": "0.20.2",
-      "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.20.2.tgz",
-      "integrity": "sha512-WdOOppmUNU+IbZ0PaDiTst80zjnrOkyJNHoKupIcVyU8Lvla3Ugx94VzkQ32Ijqd7UhHJy75gNWDMUekcrSJ6g==",
-      "dev": true,
-      "hasInstallScript": true,
-      "bin": {
-        "esbuild": "bin/esbuild"
-      },
-      "engines": {
-        "node": ">=12"
-      },
-      "optionalDependencies": {
-        "@esbuild/aix-ppc64": "0.20.2",
-        "@esbuild/android-arm": "0.20.2",
-        "@esbuild/android-arm64": "0.20.2",
-        "@esbuild/android-x64": "0.20.2",
-        "@esbuild/darwin-arm64": "0.20.2",
-        "@esbuild/darwin-x64": "0.20.2",
-        "@esbuild/freebsd-arm64": "0.20.2",
-        "@esbuild/freebsd-x64": "0.20.2",
-        "@esbuild/linux-arm": "0.20.2",
-        "@esbuild/linux-arm64": "0.20.2",
-        "@esbuild/linux-ia32": "0.20.2",
-        "@esbuild/linux-loong64": "0.20.2",
-        "@esbuild/linux-mips64el": "0.20.2",
-        "@esbuild/linux-ppc64": "0.20.2",
-        "@esbuild/linux-riscv64": "0.20.2",
-        "@esbuild/linux-s390x": "0.20.2",
-        "@esbuild/linux-x64": "0.20.2",
-        "@esbuild/netbsd-x64": "0.20.2",
-        "@esbuild/openbsd-x64": "0.20.2",
-        "@esbuild/sunos-x64": "0.20.2",
-        "@esbuild/win32-arm64": "0.20.2",
-        "@esbuild/win32-ia32": "0.20.2",
-        "@esbuild/win32-x64": "0.20.2"
-      }
-    },
-    "examples/widget/node_modules/vite": {
-      "version": "5.2.11",
-      "resolved": "https://registry.npmjs.org/vite/-/vite-5.2.11.tgz",
-      "integrity": "sha512-HndV31LWW05i1BLPMUCE1B9E9GFbOu1MbenhS58FuK6owSO5qHm7GiCotrNY1YE5rMeQSFBGmT5ZaLEjFizgiQ==",
-      "dev": true,
-      "dependencies": {
-        "esbuild": "^0.20.1",
-        "postcss": "^8.4.38",
-        "rollup": "^4.13.0"
-      },
-      "bin": {
-        "vite": "bin/vite.js"
-      },
-      "engines": {
-        "node": "^18.0.0 || >=20.0.0"
-      },
-      "funding": {
-        "url": "https://github.com/vitejs/vite?sponsor=1"
-      },
-      "optionalDependencies": {
-        "fsevents": "~2.3.3"
-      },
-      "peerDependencies": {
-        "@types/node": "^18.0.0 || >=20.0.0",
-        "less": "*",
-        "lightningcss": "^1.21.0",
-        "sass": "*",
-        "stylus": "*",
-        "sugarss": "*",
-        "terser": "^5.4.0"
-      },
-      "peerDependenciesMeta": {
-        "@types/node": {
-          "optional": true
-        },
-        "less": {
-          "optional": true
-        },
-        "lightningcss": {
-          "optional": true
-        },
-        "sass": {
-          "optional": true
-        },
-        "stylus": {
-          "optional": true
-        },
-        "sugarss": {
-          "optional": true
-        },
-        "terser": {
-          "optional": true
-        }
-      }
-    },
     "libs/dapp-toolkit": {
       "version": "0.0.0",
       "extraneous": true,
@@ -33452,10 +32992,6 @@
         "url": "https://github.com/chalk/strip-ansi?sponsor=1"
       }
     },
-    "node_modules/widget": {
-      "resolved": "examples/widget",
-      "link": true
-    },
     "node_modules/wordwrap": {
       "version": "1.0.0",
       "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz",
@@ -33974,6 +33510,7 @@
         "immer": "^10.0.4",
         "lit": "^3.1.2",
         "lit-html": "^3.1.2",
+        "nanoid": "^5.0.7",
         "neverthrow": "^6.1.0",
         "rxjs": "^7.8.1",
         "tslog": ">=4.8.0",
@@ -34712,6 +34249,23 @@
         "url": "https://github.com/sponsors/sindresorhus"
       }
     },
+    "packages/dapp-toolkit/node_modules/nanoid": {
+      "version": "5.0.7",
+      "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-5.0.7.tgz",
+      "integrity": "sha512-oLxFY2gd2IqnjcYyOXD8XGCftpGtZP2AbHbOkthDkvRywH5ayNtPVy9YlOPcHckXzbLTCHpkb7FB+yuxKV13pQ==",
+      "funding": [
+        {
+          "type": "github",
+          "url": "https://github.com/sponsors/ai"
+        }
+      ],
+      "bin": {
+        "nanoid": "bin/nanoid.js"
+      },
+      "engines": {
+        "node": "^18 || >=20"
+      }
+    },
     "packages/dapp-toolkit/node_modules/node-emoji": {
       "version": "2.1.3",
       "resolved": "https://registry.npmjs.org/node-emoji/-/node-emoji-2.1.3.tgz",
diff --git a/package.json b/package.json
index b4e9ddcb..b1fa676c 100644
--- a/package.json
+++ b/package.json
@@ -9,8 +9,7 @@
     "lint": "turbo lint",
     "format": "prettier --write \"**/*.{ts,tsx,md}\"",
     "deploy": "turbo deploy",
-    "deploy:simple-dapp": "turbo deploy --filter simple-dapp",
-    "deploy:widget": "turbo deploy --filter widget"
+    "deploy:simple-dapp": "turbo deploy --filter simple-dapp"
   },
   "devDependencies": {
     "prettier": "^3.2.5",
diff --git a/packages/dapp-toolkit/package.json b/packages/dapp-toolkit/package.json
index 979ff755..c5f0dbdf 100644
--- a/packages/dapp-toolkit/package.json
+++ b/packages/dapp-toolkit/package.json
@@ -65,6 +65,7 @@
     "immer": "^10.0.4",
     "lit": "^3.1.2",
     "lit-html": "^3.1.2",
+    "nanoid": "^5.0.7",
     "neverthrow": "^6.1.0",
     "rxjs": "^7.8.1",
     "tslog": ">=4.8.0",
@@ -72,10 +73,10 @@
   },
   "devDependencies": {
     "@radixdlt/connect-button": "*",
-    "semantic-release": "^23.0.0",
     "@saithodev/semantic-release-backmerge": "^3.2.1",
     "@semantic-release/exec": "^6.0.3",
     "radix-connect-common": "*",
+    "semantic-release": "^23.0.0",
     "semantic-release-replace-plugin": "^1.2.7",
     "tsup": "^8.0.2",
     "typescript": "^5.4.4",
@@ -89,4 +90,4 @@
   "publishConfig": {
     "registry": "https://registry.npmjs.org"
   }
-}
\ No newline at end of file
+}
diff --git a/packages/dapp-toolkit/src/modules/wallet-request/session/session.module.ts b/packages/dapp-toolkit/src/modules/wallet-request/session/session.module.ts
index 28fc2229..7c3a3213 100644
--- a/packages/dapp-toolkit/src/modules/wallet-request/session/session.module.ts
+++ b/packages/dapp-toolkit/src/modules/wallet-request/session/session.module.ts
@@ -2,6 +2,7 @@ import type { ResultAsync } from 'neverthrow'
 import { errAsync, okAsync } from 'neverthrow'
 import type { IdentityModule } from '../identity/identity.module'
 import { StorageModule } from '../../storage/local-storage.module'
+import { nanoid } from 'nanoid'
 
 type Status = (typeof Status)[keyof typeof Status]
 const Status = { Pending: 'Pending', Active: 'Active' } as const
@@ -52,7 +53,7 @@ export const SessionModule = (input: {
     storageModule.getItemById(sessionId)
 
   const createSession = (): ResultAsync => {
-    const sessionId = crypto.randomUUID()
+    const sessionId = nanoid()
     const newSession: PendingSession = {
       sessionId,
       status: Status.Pending,
diff --git a/packages/dapp-toolkit/src/modules/wallet-request/transport/connector-extension/connector-extension.module.ts b/packages/dapp-toolkit/src/modules/wallet-request/transport/connector-extension/connector-extension.module.ts
index 0561f988..6f765115 100644
--- a/packages/dapp-toolkit/src/modules/wallet-request/transport/connector-extension/connector-extension.module.ts
+++ b/packages/dapp-toolkit/src/modules/wallet-request/transport/connector-extension/connector-extension.module.ts
@@ -33,6 +33,7 @@ import { RequestItemModule } from '../../request-items'
 import { StorageModule } from '../../../storage'
 import { SdkError } from '../../../../error'
 import { TransportProvider } from '../../../../_types'
+import { nanoid } from 'nanoid'
 
 export type ConnectorExtensionModule = ReturnType<
   typeof ConnectorExtensionModule
@@ -108,7 +109,7 @@ export const ConnectorExtensionModule = (input: {
         interaction.items.discriminator === 'authorizedRequest'
 
       const sessionId = isAuthorizedRequest
-        ? state?.sessionId || crypto.randomUUID()
+        ? state?.sessionId || nanoid()
         : state?.sessionId
 
       const wrappedRequest = {
@@ -272,7 +273,7 @@ export const ConnectorExtensionModule = (input: {
   const extensionStatus$ = of(true).pipe(
     tap(() => {
       subjects.outgoingMessageSubject.next({
-        interactionId: crypto.randomUUID(),
+        interactionId: nanoid(),
         discriminator: 'extensionStatus',
       })
     }),
diff --git a/packages/dapp-toolkit/src/modules/wallet-request/transport/radix-connect-relay/deep-link.module.ts b/packages/dapp-toolkit/src/modules/wallet-request/transport/radix-connect-relay/deep-link.module.ts
index f7d1cc58..54924169 100644
--- a/packages/dapp-toolkit/src/modules/wallet-request/transport/radix-connect-relay/deep-link.module.ts
+++ b/packages/dapp-toolkit/src/modules/wallet-request/transport/radix-connect-relay/deep-link.module.ts
@@ -27,8 +27,6 @@ export const DeepLinkModule = (input: {
     values: Record,
   ): ResultAsync => {
     const outboundUrl = new URL(walletUrl)
-    const currentUrl = new URL(window.origin)
-    currentUrl.hash = callBackPath
 
     Object.entries(values).forEach(([key, value]) => {
       outboundUrl.searchParams.append(key, value)
diff --git a/packages/dapp-toolkit/src/modules/wallet-request/wallet-request-sdk.ts b/packages/dapp-toolkit/src/modules/wallet-request/wallet-request-sdk.ts
index 23bf7c6a..f6038856 100644
--- a/packages/dapp-toolkit/src/modules/wallet-request/wallet-request-sdk.ts
+++ b/packages/dapp-toolkit/src/modules/wallet-request/wallet-request-sdk.ts
@@ -10,6 +10,7 @@ import {
 } from '../../schemas'
 import { parse } from 'valibot'
 import { SdkError } from '../../error'
+import { nanoid } from 'nanoid'
 
 export type WalletRequestSdkInput = {
   networkId: number
@@ -49,7 +50,7 @@ export const WalletRequestSdk = (input: WalletRequestSdkInput) => {
 
   const createWalletInteraction = (
     items: WalletInteractionItems,
-    interactionId = crypto.randomUUID(),
+    interactionId = nanoid(),
   ): WalletInteraction => ({
     items,
     interactionId,
@@ -81,7 +82,7 @@ export const WalletRequestSdk = (input: WalletRequestSdkInput) => {
 
   const request = (
     {
-      interactionId = crypto.randomUUID(),
+      interactionId = nanoid(),
       items,
     }: Pick & { interactionId?: string },
     callbackFns: Partial = {},
@@ -100,7 +101,7 @@ export const WalletRequestSdk = (input: WalletRequestSdkInput) => {
 
   const sendTransaction = (
     {
-      interactionId = crypto.randomUUID(),
+      interactionId = nanoid(),
       items,
     }: { interactionId?: string; items: WalletInteraction['items'] },
     callbackFns: Partial = {},
diff --git a/packages/dapp-toolkit/src/modules/wallet-request/wallet-request.ts b/packages/dapp-toolkit/src/modules/wallet-request/wallet-request.ts
index 2c432a3c..e370ff9c 100644
--- a/packages/dapp-toolkit/src/modules/wallet-request/wallet-request.ts
+++ b/packages/dapp-toolkit/src/modules/wallet-request/wallet-request.ts
@@ -100,7 +100,7 @@ export const WalletRequestModule = (input: {
     transports.push(
       RadixConnectRelayModule({
         logger,
-        walletUrl: 'https://d1rxdfxrfmemlj.cloudfront.net',
+        walletUrl: 'https://dr6vsuukf8610.cloudfront.net',
         baseUrl:
           'https://radix-connect-relay-dev.rdx-works-main.extratools.works',
         providers: {
diff --git a/packages/dapp-toolkit/src/radix-dapp-toolkit.ts b/packages/dapp-toolkit/src/radix-dapp-toolkit.ts
index ddf28a47..10e4cd1c 100644
--- a/packages/dapp-toolkit/src/radix-dapp-toolkit.ts
+++ b/packages/dapp-toolkit/src/radix-dapp-toolkit.ts
@@ -42,9 +42,7 @@ export const RadixDappToolkit = (
     featureFlags = [],
   } = options || {}
 
-  const enableExperimentalMobileSupport = featureFlags.includes(
-    'ExperimentalMobileSupport',
-  )
+  const isMobileSupported = !featureFlags.includes('DisableMobileSupport')
 
   const storageModule =
     providers?.storageModule ??
@@ -80,7 +78,7 @@ export const RadixDappToolkit = (
       networkId,
       dAppDefinitionAddress,
       requestInterceptor: options.requestInterceptor,
-      enableMobile: enableExperimentalMobileSupport,
+      enableMobile: isMobileSupported,
       providers: {
         stateModule,
         storageModule,
@@ -94,7 +92,7 @@ export const RadixDappToolkit = (
       logger,
       networkId,
       explorer: options.explorer,
-      enableMobile: enableExperimentalMobileSupport,
+      enableMobile: isMobileSupported,
       onDisconnect,
       dAppDefinitionAddress,
       providers: {